@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #0B0D17;
  /* Deeper space black */
  --bg-card: rgba(25, 27, 40, 0.7);
  /* Translucent for glassmorphism */
  --accent-pink: #E81A5C;
  --accent-cyan: #06B8C9;
  --text-main: #FFFFFF;
  --text-muted: #8F95A4;
  --font-main: 'Poppins', sans-serif;
  --spacing-section: 16rem;
  --glow-pink: 0 0 20px rgba(232, 26, 92, 0.4);
  --glow-cyan: 0 0 20px rgba(6, 184, 201, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;

  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 140px 170px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 250px 160px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 390px 40px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 430px 280px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1.5px 1.5px at 560px 120px, #ddd, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 600px 600px;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
  transform: translate(-50%, -50%);
}

.custom-cursor.hovering {
  background-color: var(--accent-cyan);
}

.typography-base,
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: 1px;
}

.text-pink {
  color: var(--accent-pink);
}

.text-cyan {
  color: var(--accent-cyan);
}

.section-title {
  text-align: center;
  margin-bottom: 6rem;
  padding-top: 2rem;
}

.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.title-line {
  display: inline-block;
  width: 150px;
  height: 2px;
  background-color: var(--text-muted);
  opacity: 0.3;
  margin-top: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: var(--spacing-section) 0;
  scroll-margin-top: 80px;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 13, 23, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.nav-logo a {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.btn-primary {
  padding: 0.8rem 2rem;
  background: var(--accent-pink);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: var(--glow-pink);
}

.btn-primary:hover {
  background: #ff2a70;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 26, 92, 0.6);
}

.btn-secondary {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

.hero-text {
  flex: 1.2;
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

@keyframes float {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }

    to {
        transform: translateY(0)
    }
}

.floating {
    animation: float 4s ease-in-out infinite
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.sub-tagline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.1rem;
  max-width: 600px;
}

#about {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  margin: 4rem 2rem;
  padding: 6rem 4rem;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.about-text {
  flex: 1.5;
}

.about-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 400px;
}

.about-text h2 {
  font-size: 3rem;
  color: var(--accent-pink);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  opacity: 0.9;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.experience-item {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.experience-item:hover {
  border-color: var(--accent-pink);
  transform: translateY(-5px);
}

.role-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.company-date {
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.role-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
  line-height: 1.6;
}

.experience-duties {
  list-style: none;
  margin-bottom: 2rem;
}

.experience-duties li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.95rem;
}

.experience-duties li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.experience-apps {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.2rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent-cyan);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.experience-apps strong {
  color: var(--accent-cyan);
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.experience-stats {
    display: flex;
    justify-content: space-between;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 4rem
}

.exp-stat-item {
    flex: 1;
    text-align: left;
    border-left: 1px solid rgba(255, 255, 255, .1);
    padding-left: 2.5rem
}

.exp-stat-item:first-child {
    border-left: none;
    padding-left: 0
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent-pink);
    line-height: 1;
    margin-bottom: .5rem
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px
}

.skill-pill:hover {
    transform: translateY(-3px)
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.workflow-step {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-number {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.service-title {
  min-width: 300px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.service-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
}

/* Gallery Marquee (Infinite Scroll) */
.gallery-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 2rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gallery-marquee-content {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-gallery 35s linear infinite;
}

.gallery-marquee-wrapper:hover .gallery-marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-gallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  flex-shrink: 0;
  width: 350px;
  aspect-ratio: 1 / 1;
}

.gallery-item:hover .item-overlay {
  opacity: 1 !important;
}

.gallery-item .item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item .item-overlay span {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#why-choose {
  position: relative;
  background-image: linear-gradient(rgba(11, 13, 23, 0.6), rgba(11, 13, 23, 0.6)), url('/images/Assets/Asset-34x.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 10rem 0;
}

.why-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 100%;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.why-card {
  background: rgba(25, 27, 40, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.why-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-10px);
}

.why-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.why-card:hover .why-card-icon {
  background: rgba(6, 184, 201, 0.1);
  border-color: rgba(6, 184, 201, 0.3);
  transform: scale(1.05);
}

.why-card-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.why-card-desc {
  color: #e0e2e8;
  /* Increased contrast for readability over background */
  font-size: 1rem;
  line-height: 1.6;
}


.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, .1)
}

.skills-grid.animated-rings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto
}

.skill-ring-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 120px
}

.progress-ring {
    transform: rotate(-90deg)
}

.progress-ring__backdrop {
    stroke: #1f2334
}

.progress-ring__circle {
    stroke-dasharray: 326.726;
    stroke-dashoffset: 326.726
}

.progress-text {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff
}

.skill-label {
    margin-top: 1rem;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4
}

/* Skills Pills */
.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.skill-pill {
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.skill-pill:hover {
  transform: translateY(-3px);
}

.pill-pink {
  background: rgba(232, 26, 92, 0.12);
  border: 2px solid var(--accent-pink);
  color: var(--accent-pink);
}

.pill-pink:hover {
  box-shadow: var(--glow-pink);
}

.pill-cyan {
  background: rgba(6, 184, 201, 0.12);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.pill-cyan:hover {
  box-shadow: var(--glow-cyan);
}

/* Hidden by default on desktop, shown via media query */
.hamburger-btn {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* Client Logo Image */
.client-logo-image {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-logo-img {
  display: flex;
  align-items: center;
}

.client-logo-img:hover .client-logo-image {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* Modal Cursor Fix */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: auto;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay * {
  cursor: auto;
}

.modal-overlay .close-btn {
  cursor: pointer;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 800px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content .close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-content .close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-pink);
}

.modal-section-title {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-list {
  list-style: none;
  padding: 0;
}

.modal-list li {
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
}

.modal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
  }

  .hamburger-btn span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 11, 14, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1500;
  }

  .mobile-menu-overlay.active {
    right: 0;
  }

  /* Mobile Menu Close Button */
  .mobile-menu-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
  }

  .mobile-menu-close:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    transform: rotate(90deg);
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .mobile-menu-links a {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .mobile-menu-links a:hover {
    color: var(--accent-pink);
  }

  /* Tablet Grids */
  .work-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


@media (max-width: 768px) {

  /* ===== CURSOR FIX ===== */
  .custom-cursor {
    display: none;
  }

  body {
    cursor: auto;
  }

  /* ===== 8-POINT GRID SYSTEM & SPACING ===== */
  /* 16-24px side margins */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Section spacing: 48-64px between sections */
  section {
    padding: 48px 0;
  }

  /* Reduce section title bottom margin */
  .section-title {
    margin-bottom: 32px;
    padding-top: 8px;
  }

  .section-title h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 8px;
  }

  .title-line {
    width: 80px;
    margin-top: 8px;
  }

  /* ===== TYPOGRAPHY ===== */
  /* Base font 16px, line-height 1.5 */
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-text h1,
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .sub-tagline {
    font-size: 0.95rem;
    margin-top: 16px;
    gap: 8px;
  }

  .credibility-line {
    margin-top: 16px !important;
    font-size: 0.85rem !important;
  }

  /* ===== HERO SECTION ===== */
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
    padding-top: 16px;
  }

  .hero-illustration {
    margin-bottom: 8px;
  }

  .custom-hero-anim {
    max-width: 70% !important;
    margin: 0 auto 16px !important;
  }

  /* Hero buttons stack on mobile - thumb-friendly */
  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }

  /* ===== TOUCH TARGETS (48dp minimum) ===== */
  .btn-primary,
  .btn-secondary,
  .btn-nav,
  a.btn-primary,
  a.btn-secondary {
    min-height: 48px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  /* ===== ABOUT SECTION ===== */
  #about {
    margin: 16px 8px;
    padding: 32px 16px;
    border-radius: 24px;
  }

  .about-inner {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .about-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .about-img {
    max-width: 60%;
    margin: 0 auto;
  }

  /* ===== EXPERIENCE SECTION ===== */
  .experience-grid {
    gap: 3rem;
    grid-template-columns: 1fr !important;
  }
  .experience-item {
    border-bottom: 1px solid #ffffff0d !important;
  }
  .experience-stats {
    flex-direction: column;
    gap: 3rem;
  }
  .exp-stat-item {
    border-left: none;
    padding-left: 0;
  }
  
  .role-title {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .company-date {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .role-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .experience-duties li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
  }

  .experience-apps {
    font-size: 0.85rem;
    padding: 12px;
  }

  .experience-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
  }

  .stat-number {
    font-size: 2.5rem !important;
  }

  /* ===== SKILLS SECTION ===== */
  /* Skills Ring Fix (mobile) */
  .skills-grid.animated-rings {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem 1rem !important;
    max-width: 100% !important;
  }

  .skill-ring-wrapper {
    width: auto !important;
    align-items: center;
  }

  .skill-ring-wrapper .progress-ring {
    width: 120px !important;
    height: 120px !important;
    transform: rotate(-90deg) scale(0.72);
    transform-origin: center center;
  }

  .progress-text {
    font-size: 0.85rem !important;
    top: 43px !important;
  }

  .skill-label {
    font-size: 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }

  .skill-pill {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  /* ===== SERVICES SECTION ===== */
  .service-item {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .service-title {
    min-width: unset;
    font-size: 1.3rem;
  }

  .service-desc {
    font-size: 0.95rem;
  }

  .service-number {
    font-size: 1rem;
  }

  /* ===== WORKFLOW SECTION ===== */
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workflow-step {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .workflow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .workflow-step p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* ===== WHY CHOOSE ME SECTION ===== */
  #why-choose {
    padding: 48px 0;
    background-attachment: scroll; /* fix iOS background-attachment: fixed */
  }

  .why-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .why-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
  }

  .why-card-icon svg {
    width: 28px;
    height: 28px;
  }

  .why-card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .why-card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* ===== CASE STUDIES ===== */
  .case-study {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .case-studies-list {
    gap: 24px !important;
  }

  .case-study h3 {
    font-size: 1.5rem !important;
  }

  .case-study h4 {
    font-size: 1rem !important;
  }

  .case-study p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  /* ===== VISUAL EXPLORATION (Gallery Marquee) ===== */
  .gallery-marquee-wrapper {
    padding: 16px 0;
  }

  .gallery-item {
    width: 260px;
  }

  .gallery-item img {
    height: 100%;
  }

  /* ===== CREDIBILITY STATS ===== */
  .stats-wrapper {
    flex-direction: column !important;
    gap: 24px !important;
  }

  .stat-item h2 {
    font-size: 3rem !important;
  }

  .stat-item p {
    font-size: 0.9rem !important;
  }

  /* ===== BLOG/INSIGHTS ===== */
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .blog-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  .blog-card h4 {
    font-size: 1.1rem !important;
  }

  .blog-card p {
    font-size: 0.9rem !important;
  }

  /* ===== TESTIMONIALS ===== */
  #testimonials > div {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }

  #testimonials p:first-child {
    font-size: 1.1rem !important;
  }

  /* ===== CLIENTS MARQUEE ===== */
  .marquee-wrapper {
    padding: 24px 0;
  }

  .client-logo {
    font-size: 1.2rem;
  }

  .client-logo-image {
    height: 28px;
  }

  .marquee-content {
    gap: 3rem;
  }

  /* ===== CONTACT SECTION ===== */
  .contact-container {
    padding: 0 16px;
  }

  .contact-info h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .contact-info p {
    font-size: 1rem !important;
    margin: 16px auto !important;
  }

  .hire-badge {
    padding: 12px 16px !important;
    font-size: 0.9rem;
  }

  /* ===== FOOTER ===== */
  footer {
    padding: 32px 16px !important;
  }

  .footer-links {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center;
  }

  .seo-links {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center;
  }

  .service-areas p:last-child {
    font-size: 0.7rem !important;
    line-height: 1.8 !important;
  }

  /* ===== GRID OVERRIDE: Single column on phone ===== */
  .work-grid,
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Tools grid stays 2-col on mobile */
  .tool-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Mobile menu font size tweak */
  .mobile-menu-links a {
    font-size: 1.8rem;
  }

  /* Reduce section padding on sub-pages */
  main.container {
    padding-top: 80px;
  }

  /* Nav padding fix for small phones */
  nav {
    padding: 8px 16px;
  }

  /* Sub-page hero adjustments */
  .hero-sub h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

  /* ===== MODAL MOBILE ===== */
  .modal-content {
    width: 95%;
    padding: 24px 16px;
    border-radius: 16px;
    max-height: 85vh;
  }

  .modal-content .close-btn {
    top: 12px;
    right: 12px;
  }

  #modal-title {
    font-size: 1.4rem !important;
  }

  #modal-desc {
    font-size: 0.95rem !important;
  }
}

/* Marquee Logic */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 4rem 0;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  gap: 6rem;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

.client-logo {
  font-size: 1.8rem;
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--text-main);
  transform: scale(1.1);
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Gallery Lightbox */
.gallery-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9998; /* Under custom cursor */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  line-height: 1;
}

.gallery-lightbox-close:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: rotate(90deg);
}
/* --- Consolidated Styles from index.html & main.js --- */

/* Hero Animation */
.custom-hero-anim {
  animation: heroEntrance 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, float 4s ease-in-out infinite 1.5s;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.3));
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-slow {
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .custom-hero-anim {
    max-width: 80%;
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-illustration {
    margin-bottom: 1rem;
  }

  
}

/* Revealed elements (Intersection Observer) */
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
