:root {
  --bg: #f4f4f4;
  --muted: #dedede;
  --accent: #de07d0;
  --accent-2: #a800a6;
  --card: #000000;
  --glass: rgba(207, 103, 103, 0.04);
  --max-width: 1200px;
  --gap: 1.5rem;
  --radius: 14px;
  /* Default header height (desktop). Adjusted in media queries below. */
  --header-height: 72px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #181818 60%, #232323 100%);
  color: var(--muted);
  font-family: 'Rubik', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* Make anchor/link scrolling account for header height */
  scroll-padding-top: var(--header-height);
  scrollbar-width: none;
}
html::-webkit-scrollbar { width:0; height:0; }

/* --- Generic reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.22,.8,.32,1), transform .8s cubic-bezier(.22,.8,.32,1);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.panels-grid .panel:nth-child(1){ transition-delay:.05s; }
.panels-grid .panel:nth-child(2){ transition-delay:.15s; }
.panels-grid .panel:nth-child(3){ transition-delay:.25s; }
.feature-card.reveal { transition-delay:.25s; }

/* --- Hero title shimmer --- */
.hero-title {
  position: relative;
  background-size: 200% 100%;
  animation: gradientShift 8s linear infinite;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Hover polish --- */
.panel.glow-border {
  transition: transform .35s cubic-bezier(.22,.8,.32,1), box-shadow .4s, border-color .4s;
}
.panel.glow-border:hover {
  transform: translateY(-10px) scale(1.025);
  border-color: var(--accent);
}
.feature-card {
  transition: transform .6s cubic-bezier(.22,.8,.32,1), box-shadow .6s;
}
.feature-card:hover {
  transform: translateY(-14px);
  box-shadow:0 30px 90px -30px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.05);
}
.tech-icon {
  transition: transform .5s cubic-bezier(.22,.8,.32,1), filter .4s;
}
.tech-icon:hover {
  filter: saturate(1.8) drop-shadow(0 0 8px rgba(222,7,208,.45));
  transform: translateY(-6px) scale(1.18) rotate(-8deg);
}
.cta-secondary:hover { border-color: var(--accent); color:#fff; }

/* --- Subtle floating for panels (loop) --- */
@keyframes slowFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}
.panel.glow-border:nth-child(odd){ animation: slowFloat 11s ease-in-out infinite; }
.panel.glow-border:nth-child(even){ animation: slowFloat 13s ease-in-out reverse infinite; }

/* --- Parallax layer hint (hero orbs) --- */
.glow-orb {
  transition: transform 1.2s cubic-bezier(.22,.8,.32,1);
  will-change: transform;
}

/* --- Focus ring refine on dark --- */
a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* --- Reduced motion preference --- */
@media (prefers-reduced-motion: reduce){
  .glow-orb, .panel.glow-border, .feature-card, .hero-title, .panel.glow-border:nth-child(odd), .panel.glow-border:nth-child(even), .hero-logo-container, .hero-logo-container::after{
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity:1 !important; transform:none !important; }
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.97), rgba(18,18,18,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.03);
  z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  position: relative;
}
.logo-img { 
  height: 44px; 
  width: auto;
  display: block; 
  filter: drop-shadow(0 2px 8px rgba(222, 7, 208, 0.2));
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 4px 12px rgba(222, 7, 208, 0.4));
}
.nav-links { 
  list-style: none; 
  display: flex; 
  gap: 1.5rem; 
  margin: 0; 
  padding: 0; 
  align-items: center;
}
.nav-social { display: none; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: .65rem 1.15rem;
  font-size: .78rem;
  letter-spacing: .09em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2d4f6;
  background: linear-gradient(145deg, rgba(222,7,208,0.14), rgba(168,0,166,0.10));
  border: 1px solid rgba(222,7,208,0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 6px 18px -8px rgba(0,0,0,0.7);
  transition: background .4s, box-shadow .45s, transform .4s, color .35s, border-color .4s;
  overflow: hidden;
}
.nav-link:before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,rgba(222,7,208,0) 0%,rgba(222,7,208,.35) 50%,rgba(222,7,208,0) 100%);
  transform: translateX(-60%);
  transition: transform .7s cubic-bezier(.22,.8,.32,1);
  mix-blend-mode: screen;
}
.nav-link:hover, .nav-link:focus {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(222,7,208,0.28), rgba(168,0,166,0.22));
  border-color: var(--accent);
  box-shadow: 0 10px 34px -14px rgba(222,7,208,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  color: #fff;
}
.nav-link:hover:before { transform: translateX(60%); }
.nav-link.is-active {
  background: linear-gradient(145deg, rgba(222,7,208,0.28), rgba(168,0,166,0.22));
  color: #fff;
  border-color: var(--accent);
}

/* Burger Menu Button */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
  transform-origin: center;
}

.burger-menu.burger-active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.burger-active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.burger-menu.burger-active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  /* Reserve space for fixed header and fine-tune height on mobile */
  :root { --header-height: 64px; }
  body { padding-top: var(--header-height); }

  .burger-menu {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(18,18,18,0.98), rgba(25,25,30,0.95));
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.22, 0.8, 0.32, 1);
    border-left: 1px solid rgba(222,7,208,0.2);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.nav-open {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  /* Show social icons only on mobile inside the open menu */
  .nav-social { display: block; }
  .nav-social-row { display: flex; }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 1.1rem;
    border-radius: 12px;
    background: rgba(222,7,208,0.05);
    border: 1px solid rgba(222,7,208,0.1);
    transition: all 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
  }
  
  .nav-link:hover,
  .nav-link:focus,
  .nav-link.is-active {
    background: var(--accent);
    color: #fff;
    transform: translateX(8px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(222,7,208,0.3);
  }
  
  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }
  
  /* Overlay for mobile menu */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(222,7,208,0.1), transparent 60%);
    pointer-events: none;
    z-index: -1;
  }
  /* Social + particles in mobile menu */
  .nav-social { margin-top: 1.5rem; }
  .nav-social-row { display: flex; gap: .75rem; justify-content: center; margin-bottom: 1rem; }
  .nav-social-icon { display:inline-flex; width:40px; height:40px; border-radius:10px; align-items:center; justify-content:center; background: rgba(222,7,208,0.12); border:1px solid rgba(222,7,208,0.25); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
  .nav-social-icon img { width:20px; height:20px; filter: brightness(0) invert(1); }
  .nav-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
}

/* Enhanced mobile responsiveness */
@media (max-width: 860px) {
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
  }
  .footer-col { text-align: center; }
}



@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
  }
  
  .footer-grid {
    gap: 2rem;
  }
  
  .footer-logo {
    font-size: 1.5rem;
  }
  
  .footer-tagline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    gap: 0.6rem;
  }
  
  .footer-link-btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }
  
  .social-row {
    gap: 0.6rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  /* Smaller header on very small screens */
  :root { --header-height: 56px; }

  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-img {
    height: 38px;
    filter: drop-shadow(0 1px 6px rgba(222, 7, 208, 0.15));
  }
  
  .nav-links {
    width: 100%;
    right: -100%;
    padding: 5rem 1.5rem 2rem;
  }
  
  .nav-link {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }
  
  .site-footer {
    padding: 2.5rem 1rem 1.5rem;
    margin-top: 2.5rem;
  }
  
  .footer-grid {
    gap: 1.8rem;
  }
  
  .footer-logo {
    font-size: 1.4rem;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-links {
    gap: 0.5rem;
  }
  
  .footer-link-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 0.6rem;
  }
}
.bg-scene, #heroCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Scroll wheel indicator */
.scroll-mouse {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  opacity: .85;
  z-index: 3;
  transition: opacity .4s ease, transform .4s ease;
}
.scroll-wheel {
  width: 4px; height: 10px;
  background: #fff;
  border-radius: 2px;
  margin: 8px auto 0;
  animation: wheel 1.6s cubic-bezier(.22,.8,.32,1) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: .2; }
  100% { transform: translateY(0); opacity: 0; }
}
.scroll-mouse.hide { opacity: 0; transform: translateX(-50%) translateY(10px); }
@media (max-width: 768px){ .scroll-mouse { display: none; } }

/* Sections head */
.section-head { text-align:center; max-width: 900px; margin: 0 auto 1.25rem; padding: 0 1rem; }
.section-head .section-sub { color: var(--muted); margin: .25rem 0 0; }

/* Featured Projects Carousel */
.featured-projects { max-width: 1200px; margin: 4rem auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.carousel { position: relative; overflow: hidden; border-radius: 18px; }
.carousel-track { display: flex; gap: 1.25rem; transition: transform .6s cubic-bezier(.22,.8,.32,1); will-change: transform; }
.carousel-slide { min-width: clamp(260px, 80vw, 360px); background: rgba(25,25,30,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.carousel-media { width: 100%; height: 180px; object-fit: contain; padding: 1rem; filter: drop-shadow(0 10px 30px rgba(222,7,208,.2)); background: radial-gradient(circle at 30% 30%, #2a1230, #141014 70%); }
.carousel-body { padding: 1rem 1rem 1.25rem; }
.carousel-title { margin: 0 0 .35rem; color: #fff; font-size: 1.25rem; }
.carousel-desc { margin: 0 0 .75rem; color: var(--muted); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(25,25,30,0.6); color: #fff; border: 1px solid rgba(222,7,208,0.25); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.carousel-btn:hover { background: rgba(25,25,30,0.85); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

@media (min-width: 900px){
  /* Hide controls and keep static layout on desktop */
  .carousel-btn { display:none; }
  .carousel { overflow: visible; }
}

@media (max-width: 768px) {
  .carousel-slide { min-width: 80%; }
}

/* Home services */
.services-overview-home { max-width: 1200px; margin: 4rem auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.home-grid .service-item { position: relative; overflow: hidden; }
.svc-icon { width: 64px; height: 64px; margin: 0 auto 1rem; filter: drop-shadow(0 10px 30px rgba(222,7,208,.25)); animation: bob 6s ease-in-out infinite; }
.svc-icon img { width: 100%; height: 100%; object-fit: contain; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }

/* Why choose */
.why-choose { max-width: 1200px; margin: 4rem auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.why-card { padding: 1.25rem 1rem; }

/* Testimonials */
.testimonials { max-width: 1200px; margin: 4rem auto; padding: 0 1.25rem; position: relative; z-index: 2; }
.t-slider { overflow: hidden; position: relative; }
.t-track { display: flex; gap: 1.25rem; transition: transform .6s cubic-bezier(.22,.8,.32,1); will-change: transform; }
.t-card { min-width: clamp(280px, 80vw, 520px); padding: 1.5rem; background: rgba(25,25,30,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; }
.t-quote { font-size: 1.05rem; color: #fff; margin: 0 0 .75rem; }
.t-author { margin: 0; color: var(--muted); }

@media (min-width: 900px) {
  .t-track { gap: 1.25rem; }
  .t-card { flex: 0 0 calc(50% - 0.625rem); min-width: auto; }
}

/* Floating background shapes */
.float-decor { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.float-decor .shape { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(222,7,208,0.35); filter: blur(2px); animation: drift 60s linear infinite; }
@keyframes drift { to { transform: translateY(-120vh) translateX(40vw) rotate(360deg);} }


/* --- Hero split & glow --- */
.hero {
  position: relative;
  padding: 7rem 1.5rem 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Mobile hero optimizations */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 1rem 3rem;
    min-height: 85vh;
  }
  
  .hero-content {
    padding: 2rem 1.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 16px;
  }
  
  .hero-logo {
    max-width: 160px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .cta-button,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 5.5rem 0.75rem 2.5rem;
    min-height: 80vh;
  }
  
  .hero-content {
    padding: 1.5rem 1rem 1rem;
    margin: 0 0.25rem;
  }
  
  .hero-logo {
    max-width: 140px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .cta-button,
  .cta-secondary {
    max-width: 100%;
    padding: 0.9rem 1.2rem;
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: 0 auto;
  max-width: 1240px;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.02,.67,.98);
}

/* Hero Logo */
.hero-logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: logoFloat 6s ease-in-out infinite;
  position: relative;
}

.hero-logo-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(222, 7, 208, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: logoGlow 8s ease-in-out infinite;
}

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

.hero-logo {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(222, 7, 208, 0.3));
  transition: all 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(222, 7, 208, 0.5));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
.hero-sub {
  color: #dedede;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(222,7,208,0.12);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.cta-button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px rgba(222,7,208,0.18);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.cta-secondary {
  color: var(--muted);
  background: transparent;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
}
.hero-glow-bg { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.glow-orb {
  position:absolute;
  width:480px; height:480px;
  background: radial-gradient(circle,#de07d0 0%,rgba(222,7,208,0.07) 65%, transparent 70%);
  filter: blur(120px) brightness(1.15);
  opacity:0.55;
  mix-blend-mode:screen;
  animation: float 22s ease-in-out infinite;
}
.orb-a { top:-140px; left:-120px; animation-delay:0s;}
.orb-b { bottom:-160px; right:-140px; animation-delay:5s;}
.orb-c { top:40%; left:55%; width:360px; height:360px; animation-delay:10s;}
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) scale(1);}
  50% { transform: translate3d(40px,-30px,0) scale(1.15);}
}

/* --- Panels background scene area --- */
.info-panels {
  position: relative;
  margin:4.5rem auto 2rem;
  max-width:1200px;
  padding:0 1.2rem;
  padding-top: 2.2rem;
}

/* Mobile panels optimization */
@media (max-width: 768px) {
  .info-panels {
    margin: 3rem auto 1.5rem;
    padding: 0 1rem;
    padding-top: 1.5rem;
  }
  
  .panels-grid {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  
  .panels-grid .panel {
    max-width: 100%;
    padding: 1.4rem 1.2rem 1.2rem;
  }
  
  .panel h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .panel p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .info-panels {
    margin: 2.5rem auto 1rem;
    padding: 0 0.75rem;
    padding-top: 1rem;
  }
  
  .panels-grid {
    gap: 1.2rem;
  }
  
  .panels-grid .panel {
    padding: 1.2rem 1rem 1rem;
    border-radius: 16px;
  }
  
  .panel h2 {
    font-size: 1.2rem;
  }
  
  .panel p {
    font-size: 0.9rem;
  }
}
.panels-canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  background: radial-gradient(circle at 60% 40%, rgba(222,7,208,0.07), transparent 70%);
}
.panels-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.panels-grid .panel {
  flex: 1 1 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 780px) {
  .panels-grid {
    flex-direction: column;
    gap: 1.2rem;
    align-items: stretch;
  }
  .panels-grid .panel {
    max-width: 100%;
  }
}
.glow-border {
  position:relative;
  background:#16161a;
  border:1px solid rgba(222,7,208,0.18);
  border-radius:18px;
  padding:1.6rem 1.3rem 1.4rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02),
              0 6px 24px -10px rgba(0,0,0,0.65),
              0 0 25px -6px rgba(222,7,208,0.28);
  transition: box-shadow .3s, transform .25s;
}
.glow-border:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05),
              0 12px 42px -12px rgba(0,0,0,0.7),
              0 0 32px -4px rgba(222,7,208,0.45);
}

/* --- Tech Strip --- */
.tech-strip {
  background: linear-gradient(90deg, #181818 60%, #232323 100%);
  padding: 1.2rem 0;
  border-radius: 12px;
  margin: 2rem 0;
}

.tech-head { max-width: var(--max-width); margin: 0 auto 0.5rem; padding: 0 1.25rem; display:flex; align-items:center; justify-content: space-between; }
.tech-heading { margin: 0; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: #f2d4f6; opacity: .85; }
.tap-indicator { position: relative; width: 46px; height: 28px; display:flex; align-items:center; justify-content:center; }
.tap-img { width: 28px; height: 28px; opacity: .9; animation: tapPulse 1.8s ease-out infinite; }
@keyframes tapPulse { 0%{ transform: scale(1); opacity:.9;} 70%{ transform: scale(1.15); opacity:.4;} 100%{ opacity:.7;} }

.tech-inner {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}

.tech-icon {
  height: 48px;
  filter: grayscale(0.1) saturate(1.2);
  opacity: 0.95;
  transition: transform 0.2s;
}

.tech-icon:hover {
  transform: scale(1.12) rotate(-6deg);
}

/* Tech tooltip */
.tech-tooltip {
  position: absolute;
  z-index: 30;
  min-width: 240px;
  max-width: 320px;
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.18);
  border-radius: 14px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  padding: 0.9rem 1rem 0.95rem;
  color: #f2d4f6;
  transform-origin: top left;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.8,.32,1);
  pointer-events: none;
}

.tech-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tech-tooltip .tt-name {
  margin: 0 0 .25rem;
  font-weight: 700;
  color: #fff;
}

.tech-tooltip .tt-desc {
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

/* Mobile tech strip optimization */
@media (max-width: 768px) {
  .tech-strip {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-radius: 10px;
  }
  
  .tech-inner { gap: 1rem; display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 1rem; }
  .tech-icon { height: 36px; justify-self: center; }
}

@media (max-width: 480px) {
  .tech-strip {
    margin: 1rem 0;
    padding: 0.8rem 0;
  }
  
  .tech-inner { gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 0.75rem; }
  .tech-icon { height: 32px; }
}

/* --- Featured Project --- */
.featured-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 5rem auto 4rem;
  padding: 0 1.25rem;
  align-items: stretch;
  height: 100%;
}
.featured-row .feature-card {
  flex: 1 1 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.featured-row .feature-card .proj-summary {
  flex-grow: 1;
}
@media (max-width: 820px) {
  .featured-row {
    flex-direction: column;
    gap: 2rem;
  }
  .featured-row .feature-card {
    margin: 0;
  }
}

/* Hide featured-row on mobile */
@media (max-width: 768px){
  .featured-row { display: none; }
}
.feature-card {
  position:relative;
  max-width:900px;
  margin:4.5rem auto;
  padding:3rem 2rem 2.6rem;
  background:#16161a;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 22px 70px -25px rgba(0,0,0,0.75),0 0 0 1px rgba(255,255,255,0.03);
}
.feature-glow {
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 35%, rgba(222,7,208,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(168,0,166,0.28), transparent 60%);
  filter: blur(40px);
  opacity:.65;
  mix-blend-mode: screen;
  pointer-events:none;
}
.feature-card h2 { margin-top:0; }
.proj-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent-2);
  transition: color 0.2s;
}
.proj-link:hover {
  color: var(--accent-2);
}

/* --- Projects Page --- */
.projects-main { position: relative; }
.projects-heading {
  margin: 7rem auto 2.5rem;
  max-width: 1200px;
  padding: 0 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.5px;
}
.projects-grid {
  display: grid;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.25rem;
}
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: 2.3rem;
  align-items: stretch;
  background: rgba(25,25,30,0.55);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 26px;
  padding: 1.8rem 1.8rem 1.9rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 12px 50px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform .6s cubic-bezier(.22,.8,.32,1), box-shadow .6s, border-color .5s;
}
.project-card:before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 85% 20%, rgba(222,7,208,0.25), transparent 60%),
    radial-gradient(circle at 25% 80%, rgba(168,0,166,0.18), transparent 65%);
  mix-blend-mode: screen;
  opacity:.55;
  pointer-events:none;
}
.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 26px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,0.06);
  border-color: rgba(222,7,208,0.45);
}
.project-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #2a1230, #141014 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 40px -8px rgba(222,7,208,0.35);
}
.proj-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
}
.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg,#de07d0,#a800a6);
  padding: .4rem .75rem .42rem;
  font-size: .72rem;
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 18px -6px rgba(222,7,208,.55);
}
.project-badge.alt {
  background: linear-gradient(135deg,#7326ff,#de07d0);
}
.project-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.project-title {
  margin: 0 0 .6rem;
  font-size: 1.65rem;
  letter-spacing: -.5px;
  color: #fff;
}
.project-desc {
  margin: 0 0 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}
.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0 0 1.25rem;
}
.project-tags li {
  font-size: .68rem;
  letter-spacing: .08em;
  font-weight:600;
  text-transform: uppercase;
  background: rgba(222,7,208,0.12);
  color: #f2d4f6;
  padding: .35rem .6rem .33rem;
  border-radius: 999px;
  border: 1px solid rgba(222,7,208,0.25);
  backdrop-filter: blur(6px);
}
.proj-visit {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-2);
  padding-bottom: 2px;
  transition: color .35s, border-color .35s;
}
.proj-visit:hover {
  color: #fff;
  border-color: var(--accent);
}
.mini-canvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
}
.project-card:hover .mini-canvas {
  filter: brightness(1.08) saturate(1.15);
}
@media (max-width: 1000px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.4rem 1.7rem;
  }
  .project-media {
    min-height: 220px;
  }
  .proj-canvas-wrap { min-height: 220px; }
  .project-title { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .projects-heading { margin: 3rem auto 2rem; }
  .projects-grid { gap: 2.2rem; }
  .project-card { padding: 1.4rem 1.2rem 1.5rem; }
  .project-media { border-radius: 16px; }
}

/* --- Contact Page Styles --- */
.contact-main {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Hero Section */
.contact-hero-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  border-radius: 18px;
  padding: 3rem 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: 0 auto;
  max-width: 900px;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.02,.67,.98);
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  backdrop-filter: blur(14px);
}

.contact-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.contact-hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Form Section */
.contact-form-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.contact-form-container {
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}

.contact-form-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.contact-form-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f2d4f6;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(222,7,208,0.2);
  border-radius: 12px;
  background: rgba(25,25,30,0.8);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
  backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(222,7,208,0.1);
  background: rgba(25,25,30,0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(242,212,246,0.5);
}

.contact-submit-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
  margin-top: 1rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(222,7,208,0.3);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* Social Media Section */
.social-media-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.social-content {
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}

.social-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.social-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.social-card {
  text-decoration: none;
  color: inherit;
  background: rgba(222,7,208,0.05);
  border: 1px solid rgba(222,7,208,0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(222,7,208,0.1), rgba(168,0,166,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  transform: translateY(-8px);
  border-color: rgba(222,7,208,0.3);
  box-shadow: 0 15px 40px rgba(222,7,208,0.15);
}

.social-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(222,7,208,0.1);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.social-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.social-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Instagram specific styling */
.instagram-card:hover {
  border-color: #e4405f;
  box-shadow: 0 15px 40px rgba(228,64,95,0.2);
}

.instagram-card:hover .social-icon-container {
  background: rgba(228,64,95,0.2);
}

/* Twitter specific styling */
.twitter-card:hover {
  border-color: #1da1f2;
  box-shadow: 0 15px 40px rgba(29,161,242,0.2);
}

.twitter-card:hover .social-icon-container {
  background: rgba(29,161,242,0.2);
}

/* WhatsApp specific styling */
.whatsapp-card:hover {
  border-color: #25d366;
  box-shadow: 0 15px 40px rgba(37,211,102,0.2);
}

.whatsapp-card:hover .social-icon-container {
  background: rgba(37,211,102,0.2);
}

/* Contact Info Section */
.contact-info-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.contact-info-container {
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}

.contact-info-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

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

.contact-info-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(222,7,208,0.05);
  border: 1px solid rgba(222,7,208,0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
}

.contact-info-item:hover {
  transform: translateY(-5px);
  border-color: rgba(222,7,208,0.3);
  background: rgba(222,7,208,0.08);
}

.contact-info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.contact-info-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(222,7,208,0.2), rgba(168,0,166,0.15));
  color: #f2d4f6;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(222,7,208,0.3);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
}

.contact-link:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222,7,208,0.3);
}

/* Mobile Responsiveness for Contact Page */
@media (max-width: 768px) {
  .contact-main {
    padding: 1.5rem 1rem;
  }
  
  .contact-hero-content,
  .contact-form-container,
  .social-content,
  .contact-info-container {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }
  
  .contact-form-title,
  .social-title,
  .contact-info-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding: 1rem 0.8rem;
  }
  
  .contact-hero-content,
  .contact-form-container,
  .social-content,
  .contact-info-container {
    padding: 1.5rem 1rem;
  }
  
  .social-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-info-item {
    padding: 1.5rem 1rem;
  }
  
  .contact-submit-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* Performance optimizations for contact page */
@media (max-width: 768px) {
  .contact-hero-content,
  .contact-form-container,
  .social-content,
  .contact-info-container {
    backdrop-filter: blur(8px);
  }
  
  .social-card:hover {
    transform: translateY(-4px);
  }
  
  .contact-info-item:hover {
    transform: translateY(-3px);
  }
}

/* Accessibility improvements for contact page */
@media (prefers-reduced-motion: reduce) {
  .contact-hero-content,
  .social-card,
  .contact-info-item {
    animation: none;
    transition: none;
  }
  
  .social-card:hover,
  .contact-info-item:hover {
    transform: none;
  }
}

/* Dark mode support for contact page */
@media (prefers-color-scheme: dark) {
  .contact-form-container,
  .social-content,
  .contact-info-container {
    background: rgba(15,15,20,0.75);
    border-color: rgba(222,7,208,0.2);
  }
  
  .form-group input,
  .form-group textarea {
    background: rgba(15,15,20,0.9);
  }
  
  .social-card {
    background: rgba(222,7,208,0.08);
  }
  
  .contact-info-item {
    background: rgba(222,7,208,0.08);
  }
}

/* --- New Footer Layout --- */
.site-footer {
  --footer-bg: #0f0f11;
  position: relative;
  background: radial-gradient(circle at 40% 20%, rgba(222,7,208,0.08), transparent 70%) var(--footer-bg);
  padding: 4rem 1.5rem 3rem;
  margin-top: 0rem;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer:before,
.site-footer:after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}
.site-footer:before {
  background:
    linear-gradient(180deg, rgba(222,7,208,0.15), transparent 55%),
    linear-gradient(90deg, rgba(222,7,208,0.08), transparent 30%, transparent 70%, rgba(168,0,166,0.08));
  mix-blend-mode:screen;
  opacity:.55;
}
.site-footer:after {
  background: radial-gradient(circle at 80% 75%, rgba(168,0,166,0.18), transparent 70%);
  filter: blur(40px);
  opacity:.6;
  mix-blend-mode:screen;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  align-items: start;
}
.footer-col { position: relative; z-index: 1; }
.footer-logo {
  margin: 0 0 .6rem;
  font-size: 1.65rem;
  letter-spacing: -.5px;
  background: linear-gradient(90deg,#fff,#dedede);
  -webkit-background-clip: text;
  color: transparent;
}
.footer-logo .accent-frag {
  background: linear-gradient(90deg,#de07d0,#a800a6);
  -webkit-background-clip: text;
  color: transparent;
}
.footer-tagline {
  margin: 0 0 1.2rem;
  font-size: .9rem;
  color: #bbb;
}
.footer-copy {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  opacity: .75;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.footer-link-btn {
  position: relative;
  display: inline-block;
  padding: .65rem 1.15rem;
  font-size: .78rem;
  letter-spacing: .09em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #f2d4f6;
  background: linear-gradient(145deg, rgba(222,7,208,0.14), rgba(168,0,166,0.10));
  border: 1px solid rgba(222,7,208,0.35);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 6px 18px -8px rgba(0,0,0,0.7);
  transition: background .4s, box-shadow .45s, transform .4s, color .35s, border-color .4s;
  overflow: hidden;
}
.footer-link-btn:before {
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,rgba(222,7,208,0) 0%,rgba(222,7,208,.35) 50%,rgba(222,7,208,0) 100%);
  transform: translateX(-60%);
  transition: transform .7s cubic-bezier(.22,.8,.32,1);
  mix-blend-mode: screen;
}
.footer-link-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(222,7,208,0.28), rgba(168,0,166,0.22));
  border-color: var(--accent);
  box-shadow: 0 10px 34px -14px rgba(222,7,208,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  color: #fff;
}
.footer-link-btn:hover:before {
  transform: translateX(60%);
}
.footer-link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.footer-heading {
  margin: 0 0 1rem;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #f2d4f6;
  opacity: .85;
}
.footer-link-inline {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  margin-bottom: 1.2rem;
  transition: color .35s;
}
.footer-link-inline:hover { color: #fff; }
.social-row {
  display: flex;
  justify-content: center;
  gap: .7rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  font-size: .7rem;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color:#fbe9ff;
  background: linear-gradient(135deg, rgba(222,7,208,0.22), rgba(168,0,166,0.18));
  border:1px solid rgba(222,7,208,0.4);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 6px 20px -10px rgba(222,7,208,0.35);
  transition: transform .5s cubic-bezier(.22,.8,.32,1), box-shadow .5s, background .5s;
  position: relative;
  overflow:hidden;
}
.social-icon:after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%);
  opacity:0;
  transition: opacity .6s;
  mix-blend-mode: overlay;
}
.social-icon:hover {
  transform: translateY(-5px) scale(1.08);
  background: linear-gradient(135deg, rgba(222,7,208,0.38), rgba(168,0,166,0.32));
  box-shadow: 0 14px 42px -18px rgba(222,7,208,0.6);
}
.social-icon:hover:after { opacity:.6; }
.social-icon:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-col { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-link-btn, .social-icon { transition: none !important; }
  .footer-link-btn:hover, .social-icon:hover { transform:none; }
}

/* --- Services Page --- */
.services-main {
  position: relative;
  min-height: 90vh;
  padding: 6rem 1.5rem 3rem;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
#servicesCanvas.bg-scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Services Hero Section */
.services-hero-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  border-radius: 18px;
  padding: 3rem 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: 0 auto;
  max-width: 900px;
  animation: fadeInUp 1.2s cubic-bezier(.23,1.02,.67,.98);
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  backdrop-filter: blur(14px);
}

.services-logo-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: logoFloat 6s ease-in-out infinite;
  position: relative;
}

.services-logo-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(222, 7, 208, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: logoGlow 8s ease-in-out infinite;
}

.services-logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(222, 7, 208, 0.3));
  transition: all 0.3s cubic-bezier(0.22, 0.8, 0.32, 1);
}

.services-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(222, 7, 208, 0.5));
}

.services-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.services-hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Overview Section */
.services-overview {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 4rem;
  text-align: center;
}

.overview-content {
  background: rgba(25,25,30,0.45);
  border: 1px solid rgba(222,7,208,0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
}

.overview-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 2rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.overview-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.overview-feature {
  text-align: center;
  padding: 1.5rem;
  background: rgba(222,7,208,0.05);
  border: 1px solid rgba(222,7,208,0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
}

.overview-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(222,7,208,0.3);
  background: rgba(222,7,208,0.08);
}

.overview-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.overview-feature p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Packages Section */
.packages-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.packages-heading {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 3rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.packages-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}

.package-card {
  flex: 1 1 0;
  background: rgba(25,25,30,0.65);
  border: 1.5px solid rgba(222,7,208,0.13);
  border-radius: 22px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  padding: 2.2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .4s cubic-bezier(.22,.8,.32,1), box-shadow .4s, border-color .4s;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  animation: floatText 1.2s cubic-bezier(.22,.8,.32,1) both;
  animation-delay: var(--delay, 0s);
}

.package-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 18px 60px -18px rgba(222,7,208,0.22), 0 0 0 1.5px var(--accent);
}

.package-card.featured-package {
  border-color: rgba(222,7,208,0.4);
  box-shadow: 0 15px 50px -15px rgba(222,7,208,0.3), 0 0 0 1px rgba(222,7,208,0.2);
  transform: scale(1.05);
}

.package-card.featured-package:hover {
  transform: translateY(-12px) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 25px 70px -20px rgba(222,7,208,0.4), 0 0 0 2px var(--accent);
}

.package-header {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.package-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.package-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(222,7,208,0.15);
  color: #f2d4f6;
  border: 1px solid rgba(222,7,208,0.3);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.package-badge.featured {
  background: linear-gradient(135deg, rgba(222,7,208,0.3), rgba(168,0,166,0.2));
  color: #fff;
  border-color: rgba(222,7,208,0.5);
  box-shadow: 0 4px 20px rgba(222,7,208,0.3);
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  color: #f2d4f6;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.package-features li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.package-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1em;
}

.package-cta {
  margin-top: auto;
  width: 100%;
}

.package-button {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, rgba(222,7,208,0.2), rgba(168,0,166,0.15));
  color: #f2d4f6;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(222,7,208,0.3);
  text-align: center;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
  backdrop-filter: blur(8px);
}

.package-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(222,7,208,0.3);
}

.package-button.featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(222,7,208,0.3);
}

.package-button.featured:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(222,7,208,0.4);
}

/* Additional Services Section */
.additional-services {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0rem;
}

.additional-content {
  background: rgba(25,25,30,0.45);
  border: 1px solid rgba(222,7,208,0.08);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
}

.additional-content h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(222,7,208,0.05);
  border: 1px solid rgba(222,7,208,0.1);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(.22,.8,.32,1);
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: rgba(222,7,208,0.3);
  background: rgba(222,7,208,0.08);
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.service-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile Responsiveness for Services Page */
@media (max-width: 900px) {
  .packages-grid {
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
  }
  
  .package-card {
    padding: 1.8rem 1.3rem 1.5rem;
  }
  
  .package-card.featured-package {
    transform: scale(1.02);
  }
  
  .package-card.featured-package:hover {
    transform: translateY(-8px) scale(1.05);
  }
  
  .overview-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .services-main {
    padding: 5rem 1rem 2rem;
    min-height: 85vh;
  }
  
  .services-hero-content {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 16px;
    margin: 0 0.5rem 3rem;
  }
  
  .services-logo {
    max-width: 140px;
  }
  
  .services-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 0.75rem;
  }
  
  .services-hero-sub {
    font-size: 1rem;
    margin-bottom: 0;
  }
  
  .overview-content,
  .additional-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin: 0 0.5rem 3rem;
  }
  
  .overview-title,
  .packages-heading,
  .additional-content h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
  }
  
  .packages-section {
    margin: 0 auto 3rem;
  }
  
  .packages-heading {
    margin-bottom: 2rem;
  }
  
  .package-card {
    padding: 1.5rem 1.2rem 1.3rem;
    border-radius: 18px;
  }
  
  .package-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .package-features {
    font-size: 0.9rem;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }
  
  .package-button {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
  }
  
  .overview-features {
    gap: 1.2rem;
  }
  
  .overview-feature {
    padding: 1.2rem;
  }
  
  .overview-feature h3 {
    font-size: 1.1rem;
  }
  
  .overview-feature p {
    font-size: 0.9rem;
  }
  
  .service-item {
    padding: 1.2rem;
  }
  
  .service-item h3 {
    font-size: 1rem;
  }
  
  .service-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-main {
    padding: 4.5rem 0.75rem 1.5rem;
    min-height: 80vh;
  }
  
  .services-hero-content {
    padding: 2rem 1rem 1.5rem;
    margin: 0 0.25rem 2.5rem;
  }
  
  .services-logo {
    max-width: 120px;
  }
  
  .services-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  
  .services-hero-sub {
    font-size: 0.95rem;
  }
  
  .overview-content,
  .additional-content {
    padding: 1.5rem 1rem;
    margin: 0 0.25rem 2.5rem;
  }
  
  .overview-title,
  .packages-heading,
  .additional-content h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 1.2rem;
  }
  
  .packages-section {
    margin: 0 auto 2.5rem;
  }
  
  .packages-heading {
    margin-bottom: 1.5rem;
  }
  
  .package-card {
    padding: 1.3rem 1rem 1.1rem;
    border-radius: 16px;
  }
  
  .package-card h3 {
    font-size: 1.2rem;
  }
  
  .package-features {
    font-size: 0.85rem;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  
  .package-button {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .overview-features {
    gap: 1rem;
  }
  
  .overview-feature {
    padding: 1rem;
  }
  
  .overview-feature h3 {
    font-size: 1rem;
  }
  
  .overview-feature p {
    font-size: 0.85rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-item {
    padding: 1rem;
  }
  
  .service-item h3 {
    font-size: 0.95rem;
  }
  
  .service-item p {
    font-size: 0.8rem;
  }
}

/* Performance optimizations for services page */
@media (max-width: 768px) {
  .services-logo-container::after {
    width: 200px;
    height: 200px;
  }
  
  .package-card {
    transition: transform .3s ease-out, box-shadow .3s ease-out;
  }
  
  .package-card:hover {
    transform: translateY(-5px) scale(1.02);
  }
  
  .package-card.featured-package:hover {
    transform: translateY(-6px) scale(1.03);
  }
}

/* Accessibility improvements for services page */
@media (prefers-reduced-motion: reduce) {
  .services-logo-container,
  .services-logo-container::after {
    animation: none !important;
  }
  
  .package-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Dark mode support for services page */
@media (prefers-color-scheme: dark) {
  .services-hero-content,
  .overview-content,
  .additional-content {
    background: rgba(15,15,20,0.75);
  }
  
  .package-card {
    background: rgba(15,15,20,0.75);
  }
}

/* --- Utility Classes --- */
.gradient-text {
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}
.reveal-float {
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  animation: floatLogo 1.5s cubic-bezier(.22,.8,.32,1) .1s both;
}
.reveal-float-right {
  opacity: 0;
  transform: translateY(60px) translateX(60px) scale(0.96);
  animation: floatText 1.5s cubic-bezier(.22,.8,.32,1) .35s both;
}
@keyframes floatLogo {
  from { opacity: 0; transform: translateY(60px) scale(0.92);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
@keyframes floatText {
  from { opacity: 0; transform: translateY(60px) translateX(60px) scale(0.96);}
  to   { opacity: 1; transform: none;}
}

/* Mobile feature card optimization */
@media (max-width: 768px) {
  .feature-card {
    margin: 3rem auto;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 20px;
  }
  
  .feature-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .feature-card p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .featured-row {
    flex-direction: column;
    gap: 2rem;
    margin: 3rem auto 2.5rem;
    padding: 0 1rem;
  }
  
  .featured-row .feature-card {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .feature-card {
    margin: 2.5rem auto;
    padding: 2rem 1.2rem 1.5rem;
    border-radius: 18px;
  }
  
  .feature-card h2 {
    font-size: 1.6rem;
  }
  
  .feature-card p {
    font-size: 0.95rem;
  }
  
  .featured-row {
    margin: 2.5rem auto 2rem;
    padding: 0 0.75rem;
    gap: 1.5rem;
  }
}

/* Mobile contact page optimization */
@media (max-width: 768px) {
  .contact-main {
    padding: 3rem 1rem 2rem;
    min-height: 75vh;
  }
  
  .contact-hero {
    max-width: 100%;
  }
  
  .contact-card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .contact-card h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    gap: 1rem;
  }
  
  .contact-form label {
    font-size: 0.95rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .contact-form button.cta-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding: 2.5rem 0.75rem 1.5rem;
    min-height: 70vh;
  }
  
  .contact-card {
    padding: 1.5rem 1rem 1rem;
    border-radius: 16px;
  }
  
  .contact-card h1 {
    font-size: 1.6rem;
  }
  
  .contact-card p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .contact-form {
    gap: 0.9rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .contact-form button.cta-button {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
  }
}

/* Mobile services page optimization */
@media (max-width: 768px) {
  .services-main {
    padding: 5rem 1rem 2rem;
    min-height: 85vh;
  }
  
  .services-hero-content {
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 16px;
    margin: 0 0.5rem 3rem;
  }
  
  .services-logo {
    max-width: 140px;
  }
  
  .services-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 0.75rem;
  }
  
  .services-hero-sub {
    font-size: 1rem;
  }
  
  .overview-content,
  .additional-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    margin: 0 0.5rem 3rem;
  }
  
  .overview-title,
  .packages-heading,
  .additional-content h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 1.5rem;
  }
  
  .packages-section {
    margin: 0 auto 3rem;
  }
  
  .packages-heading {
    margin-bottom: 2rem;
  }
  
  .package-card {
    padding: 1.5rem 1.2rem 1.3rem;
    border-radius: 18px;
  }
  
  .package-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .package-features {
    font-size: 0.9rem;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  
  .package-button {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
  }
  
  .overview-features {
    gap: 1.2rem;
  }
  
  .overview-feature {
    padding: 1.2rem;
  }
  
  .overview-feature h3 {
    font-size: 1.1rem;
  }
  
  .overview-feature p {
    font-size: 0.9rem;
  }
  
  .service-item {
    padding: 1.2rem;
  }
  
  .service-item h3 {
    font-size: 1rem;
  }
  
  .service-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .services-main {
    padding: 4.5rem 0.75rem 1.5rem;
    min-height: 80vh;
  }
  
  .services-hero-content {
    padding: 2rem 1rem 1.5rem;
    margin: 0 0.25rem 2.5rem;
  }
  
  .services-logo {
    max-width: 120px;
  }
  
  .services-hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  
  .services-hero-sub {
    font-size: 0.95rem;
  }
  
  .overview-content,
  .additional-content {
    padding: 1.5rem 1rem;
    margin: 0 0.25rem 2.5rem;
  }
  
  .overview-title,
  .packages-heading,
  .additional-content h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 1.2rem;
  }
  
  .packages-section {
    margin: 0 auto 2.5rem;
  }
  
  .packages-heading {
    margin-bottom: 1.5rem;
  }
  
  .package-card {
    padding: 1.3rem 1rem 1.1rem;
    border-radius: 16px;
  }
  
  .package-card h3 {
    font-size: 1.2rem;
  }
  
  .package-features {
    font-size: 0.85rem;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  
  .package-button {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .overview-features {
    gap: 1rem;
  }
  
  .overview-feature {
    padding: 1rem;
  }
  
  .overview-feature h3 {
    font-size: 1rem;
  }
  
  .overview-feature p {
    font-size: 0.85rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-item {
    padding: 1rem;
  }
  
  .service-item h3 {
    font-size: 0.95rem;
  }
  
  .service-item p {
    font-size: 0.8rem;
  }
}

/* Additional mobile optimizations and touch-ups */
@media (max-width: 768px) {
  /* Improve touch targets */
  .cta-button,
  .cta-secondary,
  .nav-link,
  .footer-link-btn,
  .social-icon {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Optimize spacing for mobile */
  .hero,
  .info-panels,
  .tech-strip,
  .featured-row,
  .projects-heading,
  .projects-grid,
  .contact-main,
  .services-main {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  /* Improve text readability on mobile */
  body {
    font-size: 16px; /* Prevent zoom on iOS */
    line-height: 1.6;
  }
  
  /* Optimize canvas performance on mobile */
  .bg-scene,
  #heroCanvas,
  #infoPanelsCanvas,
  #servicesCanvas {
    opacity: 0.8; /* Reduce opacity for better performance */
  }
  
  /* Improve form usability on mobile */
  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none;
    border-radius: 10px;
  }
  
  /* Better button feedback on mobile */
  .cta-button:active,
  .cta-secondary:active,
  .nav-link:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
}

@media (max-width: 480px) {
  /* Further optimize for very small screens */
  .hero-title {
    line-height: 1.2;
  }
  
  .panel h2,
  .feature-card h2,
  .project-title {
    line-height: 1.3;
  }
  
  /* Improve card shadows for mobile */
  .panel.glow-border,
  .feature-card,
  .project-card,
  .package-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  }
  
  /* Optimize animations for mobile */
  .reveal {
    transition: opacity .6s ease-out, transform .6s ease-out;
  }
  
  /* Reduce floating animations on mobile for better performance */
  .panel.glow-border:nth-child(odd),
  .panel.glow-border:nth-child(even) {
    animation: none;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .tech-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 70vh;
    padding: 5rem 1rem 2rem;
  }
  
  .nav-links {
    padding: 4rem 2rem 2rem;
  }
  
  .contact-main,
  .services-main {
    min-height: 60vh;
  }
}

/* --- Thank You Page --- */
.thankyou-main {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
  background: none;
}

.thankyou-hero {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  background: rgba(25,25,30,0.65);
  border: 1px solid rgba(222,7,208,0.13);
  border-radius: 24px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(14px);
  animation: cardIn .9s cubic-bezier(.22,.8,.32,1) .1s both;
}

.thankyou-hero h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.1rem;
  background: linear-gradient(90deg,#de07d0,#a800a6 55%,#de07d0);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.thankyou-hero p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.thankyou-hero .cta-secondary {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s ease;
}

.thankyou-hero .cta-secondary:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(222,7,208,0.1);
  transform: translateY(-2px);
}

/* Mobile thankyou page optimization */
@media (max-width: 768px) {
  .thankyou-main {
    padding: 3rem 1rem 2rem;
    min-height: 75vh;
  }
  
  .thankyou-hero {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    margin: 0 0.5rem;
  }
  
  .thankyou-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }
  
  .thankyou-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .thankyou-hero .cta-secondary {
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .thankyou-main {
    padding: 2.5rem 0.75rem 1.5rem;
    min-height: 70vh;
  }
  
  .thankyou-hero {
    padding: 1.5rem 1rem 1rem;
    border-radius: 16px;
    margin: 0 0.25rem;
  }
  
  .thankyou-hero h1 {
    font-size: 1.6rem;
  }
  
  .thankyou-hero p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .thankyou-hero .cta-secondary {
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Final touch-ups and optimizations */
@media (max-width: 768px) {
  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
  }
  
  /* Better focus states for mobile */
  .nav-link:focus-visible,
  .cta-button:focus-visible,
  .cta-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  /* Improve button accessibility */
  .burger-menu:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
  
  /* Better spacing for mobile content */
  .hero-content,
  .panel,
  .feature-card,
  .project-card,
  .package-card,
  .contact-card,
  .thankyou-hero {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Optimize images for mobile */
  .logo-img,
  .tech-icon {
    max-width: 100%;
    height: auto;
  }
  
  /* Improve form field spacing on mobile */
  .contact-form label {
    margin-bottom: 0.4rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    margin-bottom: 0.5rem;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  /* Reduce complex animations on mobile */
  .glow-orb {
    animation-duration: 30s;
  }
  
  /* Optimize shadows for mobile */
  .panel.glow-border,
  .feature-card,
  .project-card,
  .package-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }
  
  /* Reduce backdrop-filter usage on mobile for better performance */
  .site-header,
  .contact-card,
  .thankyou-hero {
    backdrop-filter: blur(8px);
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none !important;
  }
  
  .burger-line {
    transition: none !important;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    transform: none !important;
  }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(10,10,10,0.85));
  }
  
  .nav-links {
    background: linear-gradient(135deg, rgba(10,10,10,0.98), rgba(15,15,15,0.95));
  }
}

@media screen and (max-width: 768px) {
  .logo-img {
    width: 15rem;
  }
}