/* .box{
  animation: fadeUp linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
} */

@keyframes fadeUp{
  from{
    opacity: 0;
    transform: translateY(40px) scale(0.5);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

:root {
  --primary: #d6940f;
  --secondary: #ff4d4d;
  --dark: #121212;
  --dark-gray: #1e1e1e;
  --medium-gray: #3e3d3d;
  --light-gray: #d0cfca;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  background: radial-gradient(ellipse at top, #60552d, #000000);
  position: relative;
  animation: fadeIn 1s ease-in-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23ffcc00" stroke-width="1" opacity="0.1" stroke-dasharray="5,5"/></svg>') repeat;
  opacity: 0.05;
  pointer-events: none;
}

.hero .bg-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse 8s infinite alternate;
}

.hero img {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  z-index: 2;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  border: 3px solid var(--primary);
  cursor: pointer;
}

.hero img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.hero h1 .greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--light-gray);
  margin-bottom: 0.5rem;
}

.hero h1 .greetings {
  display: block;
  font-family: "NotoSans", sans-serif;
  background-image: url(../Assets/freelancing.png);
  background-size: cover;
  background-clip: text;
  color: transparent;
  animation: animate 20s linear infinite;
  font-size: 12rem;
  /* font-weight: 600;
  color: var(--light-gray);
  margin-bottom: 0.5rem; */
}
@keyframes animate {
  to{
    background-position-x:-500px;
  }
  /* 100% {
    background-position: 100% center;
  } */
}

.hero p {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.hero p a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Projects Modal */
.interactive-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  
  animation: fadeUp linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.interactive-page.active {
  display: block;
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1001;
}

.close-btn:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.interactive-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--dark-gray);
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  text-align: center;
  padding: 1.5rem;
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.3rem;
  margin: 1rem 0;
  color: var(--primary);
}

.card p {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 3rem 0 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.dots-divider {
  text-align: center;
  font-size: 1.8rem;
  margin: 2rem 0;
  color: var(--secondary);
  letter-spacing: 0.5rem;
}

/* About Sections */
.about-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-columns section {
  flex: 1 1 300px;
  background: var(--dark-gray);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.about-columns section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.about-columns section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-columns section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.about-columns ul {
  list-style-type: none;
}

.about-columns li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--light-gray);
}

.about-columns li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.about-columns a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.about-columns a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Team Section */
.about-column {
  display: flex;
  justify-content: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-column section {
  flex: 1 1 100%;
  background: var(--dark-gray);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-column section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-column section p {
  color: var(--light-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-column section .highlight {
  color: var(--primary);
  font-weight: 600;
}

.about-column section .quote {
  font-style: italic;
  color: var(--secondary);
  margin: 2rem 0;
  position: relative;
}

.about-column section .quote::before,
.about-column section .quote::after {
  content: '"';
  color: var(--secondary);
}

.about-column section .divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--medium-gray), transparent);
  margin: 2rem 0;
}

/* Tools Section */
.tools-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tools-section h2 {
  margin-bottom: 2rem;
}

.logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 2rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.logos img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
  padding: 10px;
  background: var(--dark-gray);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.logos img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

.tool-name {
  color: var(--light-gray);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog Section */
.blog-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog-card {
  background: var(--dark-gray);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-card h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.blog-posts {
  margin-bottom: 2rem;
}

.blog-post {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
}

.blog-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-post h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.blog-post p {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-post a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-post a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.blog-loader {
  text-align: center;
  color: var(--light-gray);
  padding: 2rem 0;
}

/* Achievements Section */
.achievements-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-content {
  background: var(--dark-gray);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 15px;
  height: 15px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -32.5px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -32.5px;
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--light-gray);
  font-size: 0.9rem;
}

.loader {
  text-align: center;
  color: var(--light-gray);
  padding: 2rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  color: var(--white);
  background-color: var(--dark-gray);
  position: relative;
  margin-top: 3rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--medium-gray);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
  background: var(--dark);
}

.footer p {
  margin-top: 1.5rem;
  color: var(--light-gray);
}

.footer .emoji {
  font-size: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem;
    min-height: 90vh;
  }
  
  .hero img {
    width: 160px;
    height: 240px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
    max-width: 90%;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .about-columns {
    padding: 1rem;
    flex-direction: column;
  }
  
  .about-columns section {
    flex: 1 1 100%;
    margin-bottom: 2rem;
  }
  
  .about-column {
    margin-bottom: 2rem;
  }
  
  .logos {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logos img {
    width: 60px;
    height: 60px;
  }
  
  .card {
    max-width: 100%;
  }
  
  .blog-card {
    padding: 1.5rem;
  }
  
  .blog-posts {
    gap: 1.5rem;
  }
  
  .timeline::before {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-content::before {
    left: -32.5px !important;
  }
  
  .footer {
    padding: 2rem 1rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    min-height: 85vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 0.9rem;
    max-width: 95%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .about-columns {
    padding: 0.8rem;
  }
  
  .about-columns section {
    padding: 1rem;
  }
  
  .about-columns h2 {
    font-size: 1.3rem;
  }
  
  .about-columns ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .logos {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .logos img {
    width: 45px;
    height: 45px;
  }
  
  .tool-name {
    font-size: 0.8rem;
  }
  
  .blog-card {
    padding: 1rem;
  }
  
  .blog-card h3 {
    font-size: 1.2rem;
  }
  
  .blog-post h4 {
    font-size: 1rem;
  }
  
  .blog-post p {
    font-size: 0.85rem;
  }
  
  .timeline-item {
    padding-left: 60px;
    padding-right: 15px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-content::before {
    left: -27.5px !important;
    width: 12px;
    height: 12px;
  }
  
  .footer {
    padding: 1.5rem 0.8rem;
  }
  
  .footer h2 {
    font-size: 1.2rem;
  }
  
  .social-links {
    gap: 0.8rem;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Additional Blog Styles */
.blog-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-excerpt {
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--medium-gray);
}

/* Additional Responsive Improvements */
@media (max-width: 1024px) {
  .hero {
    padding: 5rem 2rem;
  }
  
  .about-columns {
    padding: 2rem;
  }
  
  .logos {
    gap: 2rem;
  }
  
  .logos img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .about-columns {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .logos {
    gap: 1.5rem;
  }
  
  .logos img {
    width: 55px;
    height: 55px;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }
  
  .admin-item-actions button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .project-actions .btn {
    min-height: 44px;
  }
}

/* -- Need My Service button styles & animations -- */
.service-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  z-index: 30;
}

#needServiceBtn {
  --btn-bg-1: #ffd27f;
  --btn-bg-2: #ff78a1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--btn-bg-1), var(--btn-bg-2));
  color: #0f1720;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(255, 120, 163, 0.18), inset 0 -2px 6px rgba(0,0,0,0.12);
  border: 0;
  font-weight: 700;
  font-size: 1.05rem;
  transform-origin: center;
  transition: transform 250ms cubic-bezier(.2,.9,.3,1), box-shadow 250ms ease, filter 200ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

#needServiceBtn::before {
  /* moving shine */
  content: '';
  position: absolute;
  top: -25%;
  left: -40%;
  width: 40%;
  height: 150%;
  background: rgba(255,255,255,0.28);
  transform: skewX(-25deg) translateX(-120%);
  transition: transform 0.9s cubic-bezier(.2,.9,.2,1);
  filter: blur(6px);
}

#needServiceBtn:hover::before {
  transform: skewX(-25deg) translateX(260%);
}

@keyframes serviceFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

#needServiceBtn {
  animation: serviceFloat 3.8s ease-in-out infinite;
}

#needServiceBtn:hover {
  transform: translateY(-6px) scale(1.03) rotate(-0.6deg);
  box-shadow: 0 20px 40px rgba(255,120,163,0.22), 0 6px 18px rgba(0,0,0,0.35);
  animation-play-state: paused; /* pause float while hovering */
}

#needServiceBtn:active {
  transform: translateY(-2px) scale(0.99);
}

.service-icon {
  display: inline-block;
  transition: transform 300ms ease;
  font-size: 1.1rem;
}

#needServiceBtn:hover .service-icon {
  transform: translateY(-3px) rotate(-8deg) scale(1.06);
}

.service-text {
  display: inline-block;
  letter-spacing: 0.3px;
}

#needServiceBtn:focus {
  outline: 3px solid rgba(255, 120, 163, 0.25);
  outline-offset: 4px;
}

/* Small screens: full width comfortable button */
@media (max-width: 600px) {
  #needServiceBtn {
    width: calc(100% - 48px);
    max-width: 420px;
    justify-content: center;
  }
}