/* ═══════════════════════════════════════════════════════════
   AdSoul  ·  Full Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --grid-color: rgba(0, 0, 0, 0.08); /* Sharper grid */
  --fg: #000000; /* Stark black */
  --muted: #525252; /* Digital slate */
  --accent1: #0066FF; /* Electric Tech Blue */
  --accent2: #7000FF; /* Deep Tech Purple */
  --accent3: #10B981; /* Matrix Green */
  --card-bg: #fdfdfd;
  --card-border: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px; /* Sharper corners for tech feel */
  --radius-md: 8px;
  --radius-lg: 12px;
  --nav-h: 72px;
  --font-main: 'Host Grotesk', sans-serif;
  --font-sec: 'IBM Plex Mono', monospace;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent1);
  border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: clamp(56px, 8vw, 72px); /* Significantly larger logo */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover .logo-img {
  transform: scale(1.1) rotate(-2deg);
}

.logo-slogan-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid rgba(0, 0, 0, 0.12); /* Thicker divider */
  padding-left: 20px;
  margin-left: 4px;
}

.logo-slogan {
  font-family: var(--font-sec);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem); /* Scalable larger text */
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3); 
  white-space: nowrap;
}

.footer-logo-img {
  height: 60px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  padding: 8px 16px;
  font-family: var(--font-sec); /* Monospace Tech Item */
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.25s;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent1);
  background: rgba(108, 99, 255, 0.07);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent1);
}

/* CTA */
.cta-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45);
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-cta {
  display: none;
}

@media (max-width: 991px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.mobile-active {
    left: 0;
  }

  .nav-item {
    font-size: 1.5rem;
    padding: 12px 24px;
  }

  #getStartedBtn {
    display: none;
  }

  .mobile-cta {
    display: block;
    margin-top: 10px;
  }
}


/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  padding-top: calc(var(--nav-h) + clamp(20px, 4vw, 40px));
  padding-bottom: clamp(60px, 10vw, 120px); /* Clean fluid bottom gap */
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1.2fr; /* Give more space to the cards */
  }
}

/* Global Architectural Grid Background (Unified) */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* Soft radial glows */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 80px);
  width: 100%;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr 1.2fr;
  }
}

.hero-left {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px); /* Fluid gap */
  padding: 0 clamp(20px, 5vw, 80px); /* Fluid padding */
}

.hero-right-ui {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-scene {
  position: relative;
  width: 100%;
  height: 880px;
  max-width: 760px;
  display: block; 
  perspective: 2000px;
  transform-style: preserve-3d;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .ui-scene {
    transform: scale(0.45);
    transform-origin: center center;
    max-width: 100%;
    margin-top: -150px;
    margin-bottom: -150px;
  }
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .ui-scene {
    transform: scale(0.85);
    transform-origin: center right;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .ui-scene {
    transform: scale(0.65);
  }
}

/* ── Glass Cards ── */
.glass-card-wrapper {
  position: absolute;
  transition: transform 0.2s ease-out;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  will-change: transform;
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(34px) saturate(200%);
  -webkit-backdrop-filter: blur(34px) saturate(200%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 
    inset 0 0 30px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(108, 99, 255, 0.18);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  user-select: none;
  -webkit-user-drag: none;
}

.glass-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 40%, transparent 60%, rgba(255,255,255,0.2));
  opacity: 0.4;
  pointer-events: none;
}

.glass-card-wrapper:hover .glass-card {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
}

/* ── HUGE ZERO-OVERLAP CARD ARRANGEMENT ── */
.ui-glow-backdrop {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(14, 14, 34, 0.08) 0%, rgba(108, 99, 255, 0.06) 30%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* Hard pixel placements to guarantee reading size and zero-overlap (2x2 Grid) universally */
.card-2 { width: 350px; top: 0px;    left: 0px;   z-index: 3; animation: floatCard2 10s ease-in-out infinite; }
.card-3 { width: 330px; top: 20px;   left: 390px; z-index: 6; animation: floatCard3 9s ease-in-out infinite; }
.card-4 { width: 340px; top: 390px;  left: 10px;  z-index: 4; animation: floatCard4 11s ease-in-out infinite; }
.card-5 { width: 350px; top: 480px;  left: 390px; z-index: 7; animation: floatCard5 12s ease-in-out infinite; }

@keyframes floatCard1 { 
  0%, 100% { transform: translateY(0) rotate(-4deg); } 
  50% { transform: translateY(-20px) rotate(-2deg); } 
}
@keyframes floatCard2 { 
  0%, 100% { transform: translateY(0) rotate(6deg); } 
  50% { transform: translateY(-15px) rotate(8deg); } 
}
@keyframes floatCard3 { 
  0%, 100% { transform: translateY(0) rotate(-2deg); } 
  50% { transform: translateY(-25px) rotate(0deg); } 
}
@keyframes floatCard4 { 
  0%, 100% { transform: translateY(0) rotate(4deg); } 
  50% { transform: translateY(-18px) rotate(6deg); } 
}
@keyframes floatCard5 { 
  0%, 100% { transform: translateY(0) rotate(-6deg); } 
  50% { transform: translateY(-22px) rotate(-4deg); } 
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .hero-left {
    text-align: center;
    align-items: center;
  }
  
  .hero-motto {
    margin: 0 auto;
  }

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

  .hero-stats {
    flex-wrap: wrap; /* Prevent stats compression */
    justify-content: center;
    padding: clamp(16px, 4vw, 24px);
    width: 100%;
    margin-top: 16px;
  }
}

.hero-logo-img {
  width: auto;
  height: clamp(100px, 18vw, 180px); /* Larger, more impactful size */
  object-fit: contain;
  margin-bottom: -10px; /* Pull the title closer to the logo */
  margin-left: -12px; /* Fine-tune horizontal alignment to match text-starting optical edge */
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3));
  animation: fadeInDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2) both;
  user-select: none;
  -webkit-user-drag: none;
  align-self: flex-start;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  animation: fadeInUp 0.7s 0.15s ease both;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-motto {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
  animation: fadeInUp 0.7s 0.25s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  animation: fadeInUp 0.7s 0.35s ease both;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.40);
  transition: transform 0.22s, box-shadow 0.22s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.50);
}

.btn-ghost {
  padding: 13px 28px;
  border-radius: 50px;
  background: transparent;
  border: 1.5px solid rgba(108, 99, 255, 0.30);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s;
}

.btn-ghost:hover {
  background: rgba(108, 99, 255, 0.06);
  border-color: var(--accent1);
}

.play-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.glass-stats {
  background: rgba(16, 185, 129, 0.12); /* Leaf Green Glass */
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(16, 185, 129, 0.4); /* Green Tinted Border */
  border-radius: 24px;
  padding: 24px 40px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.08),
    inset 0 0 30px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(16, 185, 129, 0.15); /* Green Glow */
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  z-index: 5;
}

.glass-stats:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 20px 50px rgba(108, 99, 255, 0.15),
    inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.7s 0.45s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--fg);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--grid-color);
}

/* Keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


/* ════════════════════════════════════════════════════════════
   3-D CAMERA  (Left side)
   ════════════════════════════════════════════════════════════ */
.scene-left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px 40px;
  animation: fadeInLeft 1s 0.3s ease both;
}

@media (max-width: 768px) {
  .scene-left {
    transform: scale(0.7);
    transform-origin: center center;
    padding: 20px 0;
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.camera-3d {
  position: relative;
  width: 220px;
  height: 160px;
  transform-style: preserve-3d;
  animation: camFloat 5s ease-in-out infinite, camRotate 12s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(108, 99, 255, 0.25));
}

@keyframes camFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(8deg) rotateY(-20deg);
  }

  50% {
    transform: translateY(-18px) rotateX(8deg) rotateY(-15deg);
  }
}

@keyframes camRotate {

  0%,
  100% {
    transform: translateY(0) rotateX(6deg) rotateY(-25deg);
  }

  30% {
    transform: translateY(-12px) rotateX(10deg) rotateY(-10deg);
  }

  70% {
    transform: translateY(-6px) rotateX(4deg) rotateY(-30deg);
  }
}

/* Camera body */
.cam-body {
  position: relative;
  width: 220px;
  height: 145px;
  transform-style: preserve-3d;
}

.cam-face {
  position: absolute;
  border-radius: 4px;
}

/* Front face */
.cam-front {
  width: 220px;
  height: 145px;
  background: linear-gradient(145deg, #2d2d3a, #1a1a28);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.06);
  transform: translateZ(28px);
}

/* Back face */
.cam-back {
  width: 220px;
  height: 145px;
  background: linear-gradient(145deg, #1a1a28, #13131e);
  border-radius: 12px;
  transform: translateZ(-28px) rotateY(180deg);
}

/* Left */
.cam-left {
  width: 56px;
  height: 145px;
  background: linear-gradient(to right, #13131e, #25253a);
  left: -28px;
  top: 0;
  transform: rotateY(-90deg) translateZ(0);
  transform-origin: right center;
}

/* Right */
.cam-right {
  width: 56px;
  height: 145px;
  background: linear-gradient(to left, #13131e, #25253a);
  right: -28px;
  top: 0;
  transform: rotateY(90deg) translateZ(0);
  transform-origin: left center;
}

/* Top */
.cam-top {
  width: 220px;
  height: 56px;
  background: linear-gradient(to bottom, #2a2a3e, #1d1d2e);
  top: -28px;
  left: 0;
  transform: rotateX(90deg) translateZ(0);
  transform-origin: center bottom;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

/* Bottom */
.cam-bottom {
  width: 220px;
  height: 56px;
  background: #13131e;
  bottom: -28px;
  left: 0;
  transform: rotateX(-90deg) translateZ(0);
  transform-origin: center top;
}

/* Lens ring */
.cam-lens-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a4e, #1a1a2a);
  border: 3px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), inset 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  left: 20px;
}

.cam-lens {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a40, #0a0a1a);
  border: 2px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cam-lens-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3068, #070714);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(108, 99, 255, 0.4);
}

.cam-lens-core {
  position: absolute;
  inset: 8px;
  background: radial-gradient(circle at 30% 25%, rgba(108, 99, 255, 0.5), rgba(0, 0, 0, 0.9));
  border-radius: 50%;
}

.cam-lens-reflection {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  top: 6px;
  left: 8px;
  filter: blur(3px);
}

/* Viewfinder */
.cam-viewfinder {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 48px;
  height: 28px;
  background: #0a0a14;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 6px rgba(108, 99, 255, 0.3);
}

/* Flash */
.cam-flash {
  position: absolute;
  top: -8px;
  left: 30px;
  width: 30px;
  height: 14px;
  background: linear-gradient(135deg, #4a4a5e, #2e2e42);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shutter button */
.cam-shutter-btn {
  position: absolute;
  top: -14px;
  right: 50px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff6584, #cc4466);
  box-shadow: 0 0 8px rgba(255, 101, 132, 0.5);
}

/* Grip texture */
.cam-grip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  background: repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px,
      transparent 1px, transparent 6px);
  border-radius: 0 12px 12px 0;
}

/* Camera strap */
.cam-strap-left,
.cam-strap-right {
  position: absolute;
  width: 8px;
  height: 40px;
  background: linear-gradient(to bottom, #6C63FF, #5550cc);
  border-radius: 4px;
  top: -20px;
  z-index: 5;
  transform: translateZ(28px);
}

.cam-strap-left {
  left: 20px;
  transform-origin: bottom center;
  transform: translateZ(28px) rotate(-12deg);
}

.cam-strap-right {
  right: 20px;
  transform-origin: bottom center;
  transform: translateZ(28px) rotate(12deg);
}

/* Lens barrel */
.cam-lens-barrel {
  position: absolute;
  top: 22px;
  left: -26px;
  transform: translateZ(28px);
  display: flex;
  align-items: center;
  z-index: 10;
}

.lens-barrel-ring {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #2a2a3a, #13131e);
}

.r1 {
  width: 90px;
  height: 90px;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.4);
}

.r2 {
  width: 80px;
  height: 80px;
  margin-left: -45px;
}

.r3 {
  width: 70px;
  height: 70px;
  margin-left: -40px;
}

.cam-lens-tip {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a2e, #07070f);
  border: 2px solid rgba(108, 99, 255, 0.3);
  margin-left: -35px;
  box-shadow: inset 0 0 16px rgba(108, 99, 255, 0.4), 0 0 12px rgba(108, 99, 255, 0.2);
}

/* Top accessories */
.cam-hotshoe {
  width: 36px;
  height: 8px;
  background: linear-gradient(to right, #3a3a4e, #2a2a3a);
  border-radius: 2px;
}

.cam-dial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #4a4a5e, #2a2a3a);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Glow ring */
.cam-glow-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Shadow */
.cam-shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}


/* ════════════════════════════════════════════════════════════
   3-D COMPUTER  (Right side)
   ════════════════════════════════════════════════════════════ */
.scene-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 60px 20px;
  animation: fadeInRight 1s 0.3s ease both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.computer-3d {
  position: relative;
  transform-style: preserve-3d;
  animation: compFloat 5.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(67, 232, 216, 0.15));
}

@keyframes compFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(4deg) rotateY(18deg);
  }

  50% {
    transform: translateY(-16px) rotateX(6deg) rotateY(14deg);
  }
}

/* Monitor */
.monitor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-frame {
  width: 280px;
  background: linear-gradient(145deg, #1e1e2e, #141420);
  border-radius: 14px 14px 4px 4px;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.monitor-screen {
  width: 100%;
  background: #0d0d1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Screen Header */
.screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1a1a28;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.tab-bar {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.tab {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Courier New', monospace;
}

.active-tab {
  background: rgba(108, 99, 255, 0.2);
  color: rgba(108, 99, 255, 0.9);
}

/* Code Area */
.code-area {
  padding: 12px 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  line-height: 1.75;
  min-height: 200px;
}

.code-line {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.ln {
  color: rgba(255, 255, 255, 0.2);
  min-width: 16px;
  text-align: right;
  user-select: none;
}

.kw {
  color: #c792ea;
}

.str {
  color: #c3e88d;
}

.fn {
  color: #82aaff;
}

.var {
  color: #eeffff;
}

.pun {
  color: #89ddff;
}

.tag {
  color: #f07178;
}

.attr {
  color: #ffcb6b;
}

.cursor {
  color: var(--accent1);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Monitor Bezel bottom */
.monitor-bezel-bottom {
  width: 100%;
  padding: 6px;
  display: flex;
  justify-content: center;
  background: linear-gradient(145deg, #1e1e2e, #141420);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.monitor-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

/* Neck and base */
.monitor-neck {
  width: 28px;
  height: 30px;
  background: linear-gradient(to bottom, #252535, #1a1a28);
  margin: 0 auto;
  clip-path: polygon(30% 0%, 70% 0%, 90% 100%, 10% 100%);
}

.monitor-base {
  width: 110px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2a3a, #1a1a28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Keyboard */
.keyboard {
  margin-top: 14px;
  width: 240px;
  background: linear-gradient(145deg, #1e1e2e, #141420);
  border-radius: 10px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.key-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.key {
  height: 16px;
  min-width: 24px;
  background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.1s;
}

.key.wide {
  min-width: 36px;
}

.key.wider {
  min-width: 50px;
}

.key.space-bar {
  min-width: 140px;
}

/* Typing animation */
.key.typing {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

/* Computer glow */
.comp-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 232, 216, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: compGlow 3s ease-in-out infinite;
}

@keyframes compGlow {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

.comp-shadow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 16px;
  background: radial-gradient(ellipse, rgba(67, 232, 216, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}


/* ════════════════════════════════════════════════════════════
   PARTICLES
   ════════════════════════════════════════════════════════════ */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.p1 {
  width: 10px;
  height: 10px;
  background: var(--accent1);
  top: 15%;
  left: 18%;
  animation: drift1 7s ease-in-out infinite;
}

.p2 {
  width: 6px;
  height: 6px;
  background: var(--accent2);
  top: 25%;
  right: 22%;
  animation: drift2 9s ease-in-out infinite;
}

.p3 {
  width: 14px;
  height: 14px;
  background: var(--accent3);
  top: 60%;
  left: 12%;
  animation: drift3 8s ease-in-out infinite;
  opacity: 0.3;
}

.p4 {
  width: 8px;
  height: 8px;
  background: var(--accent1);
  bottom: 25%;
  right: 14%;
  animation: drift1 11s ease-in-out infinite reverse;
}

.p5 {
  width: 5px;
  height: 5px;
  background: var(--accent2);
  bottom: 35%;
  left: 30%;
  animation: drift2 6s ease-in-out infinite;
}

.p6 {
  width: 12px;
  height: 12px;
  background: var(--accent3);
  top: 42%;
  right: 10%;
  animation: drift3 10s ease-in-out infinite reverse;
  opacity: 0.25;
}

@keyframes drift1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(12px, -18px);
  }

  66% {
    transform: translate(-8px, 12px);
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-16px, -12px);
  }
}

@keyframes drift3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(10px, -20px);
  }

  80% {
    transform: translate(-12px, 8px);
  }
}


/* ════════════════════════════════════════════════════════════
   MARQUEE / FLOATING FLEX CONTAINERS
   ════════════════════════════════════════════════════════════ */
.marquee-section {
  position: relative;
  padding: 12px 0 24px; /* Drastically reduced to create a clean 'strip' look */
  overflow: hidden;
  background: #f5f7ff;
  border-top: 1px solid rgba(108, 99, 255, 0.1);
  border-bottom: 1px solid rgba(108, 99, 255, 0.05);
}

.marquee-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #f5f7ff;
}

.matrix-layer {
  position: absolute;
  inset: -100px; /* Oversized for smooth parallax drift */
}

/* Layer: Premium Kinetic Circuitry (Inline SVG) */
.layer-circuit-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.trace {
  fill: none;
  stroke: rgba(108, 99, 255, 0.22);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.pulse {
  fill: none;
  stroke: var(--accent1);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 400, 2000; /* Increased to ensure visibility across different path lengths */
  stroke-dashoffset: 400;
  animation: tracePulse 8s linear infinite;
  filter: drop-shadow(0 0 5px var(--accent1));
}

/* Moving Node Styles (Physical traversal along paths) */
.moving-node {
  fill: var(--accent1);
  filter: drop-shadow(0 0 6px var(--accent1));
}

.mn1 { offset-path: path("M0,75 H200 L250,25 H450 L500,100 H700 L750,50 H1000"); animation: nodeMove 12s linear infinite; }
.mn2 { offset-path: path("M100,0 V50 H300 L350,100 H550 L600,150"); animation: nodeMove 10s linear infinite 2s; }
.mn3 { offset-path: path("M800,150 V100 H600 L550,50 H350 L300,0"); animation: nodeMove 14s linear infinite 4s; }
.mn4 { offset-path: path("M0,75 H200 L250,25 H450 L500,100 H700 L750,50 H1000"); animation: nodeMove 12s linear infinite 6s; }

@keyframes nodeMove {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.pulse-yellow {
  stroke: var(--accent3);
  filter: drop-shadow(0 0 5px var(--accent3));
  animation-duration: 10s;
}

/* Staggered starts for "one by one" effect */
.p1 { animation-delay: 0s; }
.p2 { animation-delay: 2.5s; }
.p3 { animation-delay: 5s; }

.node {
  fill: var(--accent1);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--accent1));
  animation: nodeGlow 3s ease-in-out infinite alternate;
}

.node-yellow {
  fill: var(--accent3);
  filter: drop-shadow(0 0 8px var(--accent3));
}

@keyframes tracePulse {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes nodeGlow {
  0% { transform: scale(1); opacity: 0.5; filter: drop-shadow(0 0 4px var(--accent1)); }
  100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 12px var(--accent1)); }
}

/* Layer: Subtle Tech Nodes (Legacy cleanup) */
.layer-nodes {
  display: none;
}

/* Layer: Atmospheric Clouds (VISIBLE BLOBS) */
.layer-clouds {
  background: 
    radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(67, 232, 216, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(200, 150, 255, 0.1) 0%, transparent 55%);
  filter: blur(60px);
  animation: cloudPulse 20s ease-in-out infinite alternate;
  opacity: 1;
}

/* Layer: Floating Glass Bubbles */
.layer-bubbles {
  z-index: 2; /* Sits above circuitry but below text */
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 45px rgba(108, 99, 255, 0.25);
  animation: bubbleFloat 15s ease-in-out infinite alternate;
}

.b1 { width: 80px; height: 80px; top: 5%; left: 15%; animation-duration: 20s; }
.b2 { width: 60px; height: 60px; top: 40%; left: 75%; animation-duration: 25s; }
.b3 { width: 45px; height: 45px; top: 20%; left: 85%; animation-duration: 18s; }

/* Gradient Fade Overlay (Lightened for visibility) */
.marquee-bg-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(245, 247, 255, 0.4) 95%);
  z-index: 3;
}

@keyframes cloudPulse {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(10px, 10px); }
}

@keyframes bubbleFloat {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(-30px) rotate(10deg); }
}

@keyframes matrixDrift {
  from { transform: translate(-20px, -20px); }
  to { transform: translate(20px, 20px); }
}

@keyframes pulseMove {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

.marquee-track {
  overflow: hidden;
  padding: 10px 0;
  position: relative;
}

/* Fade edges */
.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-track::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-track::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
}

.scroll-left {
  animation: scrollLeft 30s linear infinite;
}

.scroll-right {
  animation: scrollRight 30s linear infinite;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

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

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

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

/* Pills */
.marquee-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.marquee-pill:hover {
  transform: translateY(-2px);
}

.marquee-pill.projects {
  background: #fff;
  border: 1.5px solid rgba(108, 99, 255, 0.18);
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.08);
}

.marquee-pill.projects:hover {
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.18);
}

.marquee-pill.stack {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(67, 232, 216, 0.06));
  border: 1.5px solid rgba(67, 232, 216, 0.22);
  color: var(--fg);
  box-shadow: 0 2px 12px rgba(67, 232, 216, 0.07);
}

.marquee-pill.stack:hover {
  box-shadow: 0 6px 20px rgba(67, 232, 216, 0.18);
}

/* Label between marquees */
.marquee-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 4px 0 8px;
}


/* ════════════════════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════════════════════ */
.about-section {
  padding: clamp(60px, 8vw, 100px) 0; /* Fluid section gaps */
  background: var(--card-bg);
  position: relative;
  overflow: visible;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.services-section {
  padding: 80px 0; /* Reduced from 100px */
  background: var(--bg);
  position: relative;
  overflow: visible;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.about-wide-container {
  max-width: 1550px;
  padding: 0 80px; /* Increased side padding for better 'inward shift' */
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 102, 255, 0.04);
  border: 1px solid rgba(0, 102, 255, 0.1);
  font-family: var(--font-sec);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 24px;
  position: relative;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent3); /* Leaf Green dot accent */
  border-radius: 50%;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem); /* Larger title */
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--fg);
}

.section-desc {
  font-size: 1.15rem; /* Slightly larger */
  color: var(--muted);
  max-width: 720px; /* Wider for expanded content */
  line-height: 1.8;
  margin-bottom: 60px;
  font-weight: 450;
}

/* ════════════════════════════════════════════════════════════
   PORTFOLIO / OUR WORK SECTION
   ════════════════════════════════════════════════════════════ */
.portfolio-section {
  padding: 80px 0; /* Reduced from 140px 0 180px */
  background: #ffffff;
  position: relative;
  overflow: hidden; /* For atmospheric glows */
}

/* 🧪 Elite Architectural Atmosphere Container */
.portfolio-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* Keep it above the section background but below section-container (z-1) */
}

/* 1. Kinetic Scrolling Watermarks (Diagonal Elite System) */
.kinetic-scrollers {
  position: absolute;
  inset: -20% -50%; /* Large overflow for diagonal rotation */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1;
  transform: rotate(-12deg); /* The 'Tedhe-Medhe' (Diagonal) Look */
  pointer-events: none;
}

.kinetic-row {
  position: absolute;
  top: var(--top);
  left: 0;
  width: 200%; /* Extra width for rotation coverage */
  white-space: nowrap;
  display: flex;
  font-size: clamp(4rem, 8vw, 9rem); /* Slightly smaller for density */
  font-weight: 900;
  color: rgba(0, 0, 0, 0.035); /* Precisely tuned to 3.5% visibility */
  text-transform: uppercase;
  letter-spacing: 1.2rem;
  opacity: 0.8; /* More defined texture */
}

.kinetic-row span {
  display: inline-block;
  padding-right: 4rem;
  will-change: transform;
}

/* Animations: Opposite Directions */
.row-left span { animation: marqueeLeft var(--dur) linear infinite; }
.row-right span { animation: marqueeRight var(--dur) linear infinite; }

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* 🎨 Tri-Color Glow System (Subtle Elite Version) */
.orange-glow { 
  text-shadow: 0 0 40px rgba(255, 140, 0, 0.08); 
  color: rgba(255, 140, 0, 0.05) !important;
}
.purple-glow { 
  text-shadow: 0 0 40px rgba(108, 99, 255, 0.08); 
  color: rgba(108, 99, 255, 0.05) !important;
}
.red-glow { 
  text-shadow: 0 0 40px rgba(255, 69, 0, 0.1); 
  color: rgba(255, 69, 0, 0.05) !important;
}

/* 2. Vertical Margin Guides + Technical Coordinates */
.atmosphere-guides {
  position: absolute;
  inset: 40px 60px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.guide-left, .guide-right {
  writing-mode: vertical-rl;
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(108, 99, 255, 0.6); /* Much more visible */
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.8;
}

.guide-left::before, .guide-right::after {
  content: '';
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(108, 99, 255, 0.4), transparent);
}

/* 3. Global Grid Alignment (Linear) */
.atmosphere-grid {
  display: none; /* Replaced by global .grid-bg for consistency */
}

/* 4. Ambient Cinematic Glow Orbs (Breathing) */
.atmosphere-glows .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  animation: orbBreathe 15s ease-in-out infinite alternate;
  z-index: 1;
}

#glow1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1), transparent 75%);
  top: -15%;
  right: -10%;
}

#glow2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(67, 232, 216, 0.08), transparent 75%);
  bottom: -5%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes orbBreathe {
  from { transform: scale(1) translate(0, 0); opacity: 0.3; }
  to { transform: scale(1.15) translate(20px, 10px); opacity: 0.5; }
}


/* 2. Portfolio Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr; /* Force 1x1 on mobile */
    gap: 24px;
  }
  .section-container {
    padding: 0 24px;
  }
}

/* ── Premium Project Card ── */
.portfolio-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Multi-layered soft shadow for elite depth */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.15);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.08),
    0 10px 20px -5px rgba(108, 99, 255, 0.03);
}

.pf-info {
  padding: 32px;
}

.pf-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.pf-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 24px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ── Card ── */
.portfolio-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s, border-color 0.4s;
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.22), 0 0 30px rgba(255, 101, 132, 0.12);
  border-color: rgba(108, 99, 255, 0.4);
}

/* ── Browser chrome ── */
.pf-browser {
  width: 100%;
  border-bottom: 1px solid rgba(108, 99, 255, 0.1);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pf-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #f3f3f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pf-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.pf-url {
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Screen preview ── */
.pf-screen {
  background: var(--pf-bg, #f4f4fb);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: filter 0.4s;
}

.pf-screen-img {
  background: none;
  padding: 0;
}

.pf-screenshot {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
  filter: brightness(0.97);
}

.portfolio-card:hover .pf-screenshot {
  transform: scale(1.05) translateY(-4px);
  filter: brightness(1.04);
}

.pf-brand-word {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--pf-color, #6C63FF);
  letter-spacing: 2px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.4s;
  display: inline-block;
}

.portfolio-card:hover .pf-brand-word {
  transform: scale(1.06) translateY(-3px);
  letter-spacing: 5px;
}

/* ── Info block ── */
.pf-info {
  padding: 24px 28px 28px;
}

.pf-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pf-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(108, 99, 255, 0.07);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(108, 99, 255, 0.14);
}

.pf-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: var(--fg);
}

.pf-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent1);
  letter-spacing: 0.2px;
  transition: gap 0.25s, color 0.25s;
  text-decoration: none;
}

.pf-link:hover {
  gap: 10px;
  color: var(--accent2);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr; /* Provide more weight to the monitor side */
  align-items: flex-start;
  gap: 12vw; /* Elegant flexible gap */
  justify-content: space-between;
}

.about-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
}

.about-right {
  position: sticky;
  top: 140px;
  display: flex;
  justify-content: flex-end; /* Pin monitor to the far right */
  align-items: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-wide-container {
    padding: 0 24px; /* Reduced from 80px to prevent card cutting */
  }
  .about-right {
    position: static;
    order: 2; /* Place visual under text */
  }
}

.about-card {
  background: linear-gradient(165deg, #ffffff, #fdfdff);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.04),
    0 8px 10px -6px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s, border-color 0.5s;
  position: relative;
  overflow: visible;
}

/* Subtle corner glow hints */
.about-card::before,
.about-card::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.5s, transform 0.5s;
}

.about-card::before {
  top: -10px;
  left: -10px;
  background: var(--accent1);
}

.about-card::after {
  bottom: -10px;
  right: -10px;
  background: var(--accent2);
}

.about-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(108, 99, 255, 0.15);
  box-shadow: 
    0 30px 60px -12px rgba(108, 99, 255, 0.18),
    0 18px 36px -18px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.about-card:hover::before {
  opacity: 0.4;
  transform: scale(1.5);
}

.about-card:hover::after {
  opacity: 0.4;
  transform: scale(1.5);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-card:hover .card-icon {
  transform: scale(1.15) translateY(-4px);
  animation: iconFloat 2s ease-in-out infinite alternate;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════
   SERVICES (HIGH-END ARCHITECTURE LAYOUT)
   ════════════════════════════════════════════════════════════ */
.services-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 12vw, 160px); /* Clean responsive gaps */
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.architecture-blocks {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Reduced from 120px for better vertical density */
}

.arch-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end; /* Bottom alignment for same end-point */
  gap: 80px;
}

@media (max-width: 991px) {
  .arch-block {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center; /* Center alignment for mobile */
    text-align: center;
  }

  .arch-block:nth-child(even) .arch-text {
    order: 1;
  }
  .arch-block:nth-child(even) .arch-visual {
    order: 2;
  }

  .arch-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .arch-btn {
    margin-left: auto;
    margin-right: auto;
  }

  .architecture-blocks {
    gap: 80px;
  }
}

/* 🔄 Criss-Cross Alternating Logic */
.arch-block:nth-child(even) .arch-text {
  order: 2;
}
.arch-block:nth-child(even) .arch-visual {
  order: 1;
}

.arch-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arch-meta {
  font-family: var(--font-sec);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent1);
  text-transform: uppercase;
  opacity: 0.8;
}

.arch-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--fg);
}

.arch-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 8px;
}

/* 📋 Technical Checklist */
.arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.arch-list li::before {
  content: '+';
  font-family: var(--font-sec);
  color: var(--accent1);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 📥 iOS Glass Button */
.arch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: rgba(0, 102, 255, 0.05); /* Very light glass tint */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 12px;
  color: var(--accent1);
  font-family: var(--font-sec);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  margin-top: 12px;
  box-shadow: 0 4px 24px -1px rgba(0, 102, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-btn:hover {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px -4px rgba(0, 102, 255, 0.2);
  color: var(--fg);
}

/* 🖼️ Architecture Visual Canvas (The Screenshot Card) */
.arch-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.arch-visual-card {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.04);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.08); /* High-end depth shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-visual-card:hover {
  transform: translateY(-10px) rotate(1deg);
}

/* Inner Illustration / SVG Container */
.arch-screen-content {
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-screen-content svg {
  width: 100%;
  height: auto;
  max-width: 240px;
  filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.15));
}

/* 🎬 Service Media Box: Image + Hover-to-Play Video */
.svc-media-box {
  position: relative;
  cursor: pointer;
}

.svc-img,
.svc-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  transition: opacity 0.5s ease;
}

/* Image is always on top by default */
.svc-img {
  opacity: 1;
  z-index: 2;
}

/* Video sits below, invisible by default */
.svc-vid {
  opacity: 0;
  z-index: 1;
}

/* On hover: cross-fade — video appears, image hides */
.svc-media-box:hover .svc-img {
  opacity: 0;
}

.svc-media-box:hover .svc-vid {
  opacity: 1;
  z-index: 3;
}

/* Hover hint badge */
.svc-play-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-sec);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.svc-media-box:hover .svc-play-hint {
  opacity: 0;
}


/* ════════════════════════════════════════════════════════════
   MEET OUR EXPERTS
   ════════════════════════════════════════════════════════════ */
.experts-section {
  padding: clamp(60px, 8vw, 120px) 0 30px; /* Reduced bottom padding */
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.experts-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Grid */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

/* ── Card flip container ── */
.expert-card {
  perspective: 900px;
  height: 380px;
  cursor: pointer;
}

.expert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: var(--radius-md);
}

.expert-card:hover .expert-inner {
  transform: rotateY(180deg);
}

/* ── FRONT face ── */
.expert-front,
.expert-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.expert-front {
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.expert-card:hover .expert-front {
  box-shadow: var(--shadow-md);
}

/* Photo */
.expert-img-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.expert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

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

.expert-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

/* Front name strip */
.expert-front-info {
  padding: 16px 20px 8px;
  background: #fff;
}

.expert-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--fg);
  margin-bottom: 2px;
}

.expert-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent1);
  text-transform: uppercase;
}

/* Hover hint */
.hover-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  padding: 6px 0 12px;
  opacity: 0.7;
  letter-spacing: 0.3px;
}

/* ── BACK face ── */
.expert-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, var(--card-accent, #6C63FF), color-mix(in srgb, var(--card-accent, #6C63FF) 70%, #000));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  gap: 10px;
  text-align: center;
}

/* Avatar initials */
.expert-back-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  margin-bottom: 4px;
}

.expert-back-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.expert-back-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Skills list */
.expert-skills {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.expert-skills li {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.expert-skills li:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Experience badge */
.expert-exp-badge {
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}


/* ════════════════════════════════════════════════════════════
   CONTACT SECTION
   ════════════════════════════════════════════════════════════ */
.contact-section {
  padding: 30px 0 clamp(60px, 8vw, 120px); /* Reduced top padding */
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start; /* Perfectly align tops */
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 40px; /* Space from logo header */
  }
}

.contact-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px; /* Reduced space below logo header */
  position: relative;
  z-index: 2;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-logo-box {
  /* Logo now centered in header */
  text-align: center;
}

@media (max-width: 767px) {
  .contact-header {
    margin-bottom: 20px;
  }

  .contact-left {
    align-items: center;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }
}

.contact-section-logo {
  height: clamp(140px, 25vw, 280px); /* Big size with responsive scaling */
  width: auto;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.3));
  transition: filter 0.3s ease;
}

.contact-section-logo:hover {
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.5));
}

.animated-logo {
  animation: floatLogo 5s ease-in-out infinite;
  display: inline-block;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.section-badge-green {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent3);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.green-gradient {
  background: linear-gradient(135deg, var(--accent3) 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.cinfo-item {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.4) 0%, transparent 100%);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent3); /* Matrix Green border */
  background: rgba(16, 185, 129, 0.04); /* Light green background */
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s;
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent3);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), 0 0 20px rgba(16, 185, 129, 0.1);
}

.submit-btn {
  align-self: flex-start;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent3) 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, var(--accent3) 100%);
}

@media (max-width: 767px) {
  .submit-btn {
    align-self: center;
    width: 100%;
  }
}


/* ════════════════════════════════════════════════════════════
   FOOTER (Deep Tech Redesign)
   ════════════════════════════════════════════════════════════ */
.footer {
  padding: 60px 0 30px; /* More minimal padding */
  background: #050510; 
  position: relative;
  overflow: hidden;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px; /* Reduced gap for compact feel */
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-img {
  height: clamp(60px, 10vw, 80px); 
  background: #ffffff; /* Solid White for maximum visibility */
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  width: fit-content;
}

.footer-logo-img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

/* Footer Headings */
.footer-h {
  font-family: var(--font-sec);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent1);
  margin-bottom: 10px;
}

/* Links */
.f-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.f-links a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Contact Items */
.f-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.f-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.f-contact-item:hover {
  color: #fff;
}

.f-icon {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Footer Bottom Section (Centered & Minimal) */
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column; /* Stacks copyright and icons vertically */
  align-items: center; /* Centers items horizontally */
  justify-content: center;
  text-align: center;
  gap: 20px; /* Space between copyright and icons */
  width: 100%;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  white-space: nowrap; /* Forces text to stay on one line on desktop */
  max-width: 100%;
}

/* Socials centered bottom */
.footer-socials-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px; /* High-end premium spacing */
  position: relative;
  z-index: 5;
  flex-wrap: nowrap; /* Keeps icons in one row on desktop */
}

.f-social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.f-social-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.f-social-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px) rotate(5deg);
  border-color: var(--accent1);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.f-social-item:hover img {
  filter: drop-shadow(0 0 8px var(--accent1));
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .footer-copy {
    white-space: normal; /* Allows text to wrap neatly on mobile */
    line-height: 1.6;
    padding: 0 20px;
  }
  
  .footer-socials-centered {
    gap: 24px; /* Slightly tighter on mobile */
    flex-wrap: wrap; /* Allows wrapping if narrow screen */
  }
}



/* ------------------------------------------------------------
   PC UNIVERSE + ULTRA MONITOR + FLYING WORDS
   ------------------------------------------------------------ */
.scene-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 60px 20px;
  animation: fadeInRight 1s 0.3s ease both;
  overflow: visible;
}

@media (max-width: 768px) {
  .scene-right {
    transform: scale(0.65);
    transform-origin: center center;
    padding: 20px 0;
    margin-top: -60px;
    margin-bottom: -60px;
  }
}

.pc-universe {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Words atmosphere: centred on the monitor screen so words
   originate from inside the screen and fly outward */
.words-atmosphere {
  position: absolute;
  /* Centred on the pc-universe */
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

/* ════════════════════════════════════════════════════════
   ULTRA PREMIUM iMAC-STYLE MONITOR
   ════════════════════════════════════════════════════════ */
.ultra-monitor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: monitorFloat 6s ease-in-out infinite;
  filter:
    drop-shadow(0 40px 80px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 60px rgba(108, 99, 255, 0.18)) drop-shadow(0 0 30px rgba(67, 232, 216, 0.10));
  transform-style: preserve-3d;
}

@keyframes monitorFloat {

  0%,
  100% {
    transform: translateY(0) rotateX(2deg) rotateY(-4deg);
  }

  50% {
    transform: translateY(-14px) rotateX(3deg) rotateY(-2deg);
  }
}

/* ── Outer body (brushed aluminium frame) ── */
.um-body {
  width: 460px;
  background:
    linear-gradient(180deg,
      #3a3a4e 0%,
      #26263a 18%,
      #1c1c2e 55%,
      #141422 100%);
  border-radius: 22px 22px 8px 8px;
  padding: 16px 16px 0;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    /* outer rim highlight */
    0 0 0 1px rgba(255, 255, 255, 0.05),
    /* top edge shine */
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    /* inner bottom shadow */
    inset 0 -2px 6px rgba(0, 0, 0, 0.5),
    /* main depth shadow */
    0 32px 90px rgba(0, 0, 0, 0.65),
    /* soft purple ambient */
    0 0 80px rgba(108, 99, 255, 0.12);
  position: relative;
}

/* Side specular highlights to give 3-D depth */
.um-body::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: calc(100% - 24px);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.07), transparent);
  border-radius: 22px 0 0 0;
  pointer-events: none;
}

.um-body::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 0;
  width: 6px;
  height: calc(100% - 24px);
  background: linear-gradient(to left, rgba(255, 255, 255, 0.04), transparent);
  border-radius: 0 22px 0 0;
  pointer-events: none;
}

/* ── Black glass bezel ── */
.um-bezel {
  background: #04040e;
  border-radius: 12px 12px 6px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.04);
  position: relative;
}

/* Glass reflection layer over the whole bezel */
.um-bezel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 40%,
      transparent 70%,
      rgba(255, 255, 255, 0.02) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 50;
}

/* ── Webcam dot ── */
.um-cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(60, 60, 100, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin: 10px auto 6px;
  box-shadow:
    0 0 6px rgba(67, 232, 216, 0.5),
    0 0 2px rgba(67, 232, 216, 0.9);
}

/* ── Main screen ── */
.um-screen {
  width: 100%;
  height: 280px;
  background: radial-gradient(ellipse at 50% 40%, #0e0e2a 0%, #040410 100%);
  position: relative;
  overflow: hidden;
}

/* Coloured ambient glow on screen BG */
.um-screen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 45%, rgba(108, 99, 255, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 72% 55%, rgba(67, 232, 216, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 101, 132, 0.10) 0%, transparent 55%);
  animation: bgPulse 5s ease-in-out infinite;
}

@keyframes bgPulse {

  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

/* Scanline effect for extra realism */
.um-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px);
  pointer-events: none;
  z-index: 10;
}

/* ── Cycling big word (Refined) ── */
.um-big-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #0066FF 0%, #7000FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite;
  white-space: nowrap;
  z-index: 5;
  font-family: var(--font-sec); /* Technical */
  text-shadow: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
  /* Crisp deep glow */
  filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.4));
}

.um-big-word.word-exit {
  opacity: 0;
  transform: translate(-50%, -58%) scale(0.80);
  filter: drop-shadow(0 0 0px transparent);
}

.um-big-word.word-enter {
  animation: wordEnterAnim 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    gradientShift 3s linear infinite;
}

@keyframes wordEnterAnim {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(1.2);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Screen vignette & bottom glow overlay */
.um-screen-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(108, 99, 255, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 8;
}

/* ── Chin bar (below screen, above neck) ── */
.um-chin {
  width: 100%;
  height: 34px;
  background: linear-gradient(180deg, #20203a 0%, #18182a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 8px 8px;
}

.um-logo {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 6px rgba(108, 99, 255, 0.25);
}

/* ── Neck ── */
.um-neck {
  width: 50px;
  height: 40px;
  background: linear-gradient(180deg, #232338 0%, #191926 100%);
  clip-path: polygon(20% 0%, 80% 0%, 94% 100%, 6% 100%);
  margin-top: -1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ── Base ── */
.um-base {
  width: 190px;
  height: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2c2c42 0%, #1c1c2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Flying Words — spawn from screen centre, radiate outward ── */
.fly-word {
  position: absolute;
  font-family: var(--font-sec); /* Data-driven Mono */
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: wordFly var(--dur, 4s) linear forwards;
}

@keyframes wordFly {

  /* 0s — born inside, tiny */
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    filter: blur(4px);
  }

  /* ~0.4s — snaps clear, starts moving */
  10% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.05), calc(-50% + var(--dy) * 0.05)) scale(0.6);
    filter: blur(0px);
  }

  /* ~1.2s — steadily drifting outward */
  30% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx) * 0.3), calc(-50% + var(--dy) * 0.3)) scale(1.5);
    filter: blur(0px);
  }

  /* ~2.4s — clearly outside screen, growing */
  60% {
    opacity: 0.9;
    transform: translate(calc(-50% + var(--dx) * 0.6), calc(-50% + var(--dy) * 0.6)) scale(3.5);
    filter: blur(0px);
  }

  /* ~3.2s — very large, starts fading */
  80% {
    opacity: 0.4;
    transform: translate(calc(-50% + var(--dx) * 0.85), calc(-50% + var(--dy) * 0.85)) scale(6);
    filter: blur(2px);
  }

  /* ~4s — fully faded, maximum size */
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(8.5);
    filter: blur(8px);
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
/* Mobile (768px) */
@media (max-width: 768px) {
  .navbar { 
    padding: 0 20px; 
    height: 60px;
  }
  .nav-links {
    display: none !important; 
  }
  .hamburger {
    display: flex !important; 
  }
  .cta-btn {
    display: none !important; 
  }
  .section-container { padding: 0 16px !important; }
  .about-wide-container { 
    padding: 0 12px !important; 
  }
  
  .about-title {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 24px;
  }

  .about-card {
    padding: 24px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px;
  }

  /* Improved Hero Layout at 768px */
  .ui-scene { transform: scale(0.45) !important; height: 400px !important; min-height: auto !important; }
  .about-right { 
    transform: scale(0.48) !important; 
    height: 350px !important;
    min-height: auto !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    order: 1 !important;
  }
  .hero-stats {
    order: 2 !important;
    margin-top: 40px !important;
    width: 100% !important;
  }

  .arch-visual {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  }
}

/* Mobile Consistency & Massive Ghost-Gap Elimination */
@media (max-width: 1024px) {
  .hero, .portfolio-section, .about-section, .services-section, .experts-section, .contact-section {
    padding: 60px 0 !important;
    min-height: auto !important;
  }
  .architecture-blocks { gap: 60px !important; }
  
  /* CRITICAL: Force layout height to match scaled visual height */
  .ui-scene, .ultra-monitor { height: 420px !important; min-height: auto !important; }
}

@media (max-width: 768px) {
  .hero { padding-top: 80px !important; padding-bottom: 20px !important; }
  .section-title { font-size: 1.8rem !important; }
  
  .portfolio-grid { 
    grid-template-columns: 1fr !important; 
    gap: 30px !important; 
  }
}

/* Small Mobile (320px - 480px): ULTIMATE FIX FOR GAPS & CUTTING */
@media (max-width: 480px) {
  /* 1. Eliminate Global Ghost Space */
  .hero, .portfolio-section, .about-section, .services-section, .experts-section, .contact-section {
    padding: 25px 0 !important;
    margin: 0 !important;
  }
  .section-container { padding: 0 16px !important; }
  .architecture-blocks { gap: 40px !important; }

  /* 2. Zero-Width Text & Card Fixes */
  .about-wide-container { padding: 0 10px !important; }
  .about-card { 
    padding: 20px 16px !important; 
    width: 100% !important; 
    max-width: 100% !important;
    margin: 0 0 12px 0 !important; 
    box-sizing: border-box !important;
  }
  
  .section-title, .about-title, .hero-title, .arch-title { 
    font-size: 1.35rem !important; 
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  p, .section-desc, .hero-desc, .about-left p, .arch-desc {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  /* 3. Scaled Container Layout Height (Fixed Source of 800px Gap) */
  .ui-scene { 
    transform: scale(0.58) !important; 
    height: 240px !important; 
    width: 100% !important;
    margin: 0 auto !important;
  }
  .about-right { 
    transform: scale(0.62) !important; 
    height: 220px !important; 
    margin-top: -50px !important;
    margin-bottom: -110px !important; /* Pull up next section */
  }
  .hero-right-ui { min-height: auto !important; height: auto !important; margin-top: 10px !important; }

  /* 4. Portfolio & Services 1x1 Enforced */
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .arch-block { margin-bottom: 25px !important; }
  .arch-text { order: 1 !important; text-align: center !important; }
  .arch-visual { order: 2 !important; width: 100% !important; }
  
  /* Disable video-hover for pure mobile clarity */
  .svc-vid, .svc-play-hint { display: none !important; }
  .svc-img { opacity: 1 !important; position: relative !important; height: auto !important; width: 100% !important; }
  .arch-visual-card { height: auto !important; aspect-ratio: auto !important; border: none !important; }

  /* 5. Misc cleanup */
  .hero-stats { margin-top: 0 !important; width: 100% !important; }
  .stat-item { padding: 10px !important; }
  .kinetic-scrollers { display: none !important; }
}


/* ════════════════════════════════════════════════════════════
   iOS GLASSMORPHISM PACKAGES MODAL
   ════════════════════════════════════════════════════════════ */
.packages-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.packages-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1100px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 48px;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 24px 20px;
    width: 95%;
  }
}

.packages-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
  font-family: var(--font-sec);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.3s, transform 0.3s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* ── Billing Toggle ── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s;
}

.toggle-label.active {
  color: var(--accent1);
}

.toggle-switch {
  position: relative;
  width: 54px;
  height: 28px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-switch.active {
  background: var(--accent1);
}

.toggle-switch.active::after {
  transform: translateX(26px);
}

/* ── Price Switching Logic ─ */
.pkg-price .monthly-price {
  display: none;
}

.is-monthly .pkg-price .one-time-price {
  display: none;
}

.is-monthly .pkg-price .monthly-price {
  display: inline;
}

.monthly-feature {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(16, 185, 129, 0.08); /* Green tint for perks/offers */
  border: 1px dashed rgba(16, 185, 129, 0.3);
  color: #065f46;
  padding: 16px 12px;
  border-radius: 12px;
  margin-top: 15px;
  list-style: none !important;
  position: relative;
  gap: 8px;
}

.monthly-feature.shoot-box {
  background: rgba(108, 99, 255, 0.05); /* Soft Blue/Indigo tint for location shoot */
  border: 1px dashed rgba(108, 99, 255, 0.25);
  color: #433e9d;
}

.monthly-feature.shoot-box .m-feat-label {
  color: #6C63FF;
}

.monthly-feature.bundle-offer {
  background: rgba(255, 165, 0, 0.06); /* Soft Gold/Orange for bundle value */
  border: 1px dashed rgba(255, 165, 0, 0.3);
  color: #8b5700;
}

.monthly-feature.bundle-offer .m-feat-label {
  color: #d48806;
}

.monthly-feature::before {
  display: none !important;
}

.m-feat-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: #047857;
}

.m-feat-text {
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 500;
  max-width: 200px; /* Force line break if needed for narrow cards */
}

.monthly-feature strong {
  color: #047857;
}

.monthly-only-disclaimer {
  display: block;
  font-size: 0.72rem;
  color: #b91c1c; /* Reddish notice */
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.is-monthly .monthly-only-disclaimer {
  display: none;
}

.monthly-promo {
  font-size: 0.78rem;
  color: var(--accent1);
  background: rgba(0, 102, 255, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 5px;
  border: 1px solid rgba(0, 102, 255, 0.15);
  display: block;
  width: fit-content;
}

/* ── Add-on Price Switching ── */
.addon-price-mo {
  display: none;
  color: #10B981; /* Success Green for discount */
  font-weight: 800;
}

.addon-price-ot {
  display: inline;
}

.is-monthly .addon-price-ot {
  display: none;
}

.is-monthly .addon-price-mo {
  display: inline;
}

/* ── Page Count Switching ── */
.mo-pages {
  display: none;
}

.ot-pages {
  display: inline;
}

.is-monthly .ot-pages {
  display: none;
}

.is-monthly .mo-pages {
  display: inline;
}

.addon-price-mo small {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #10B981;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* ── One-time Mode Adjustments (Web Modal Only) ── */
#webModal .modal-content:not(.is-monthly) .premium-pkg {
  display: none;
}

#webModal .modal-content:not(.is-monthly) .pricing-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  #webModal .modal-content:not(.is-monthly) .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: #fdfdfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.popular {
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.08);
  transform: translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent1);
  color: #fff;
  font-family: var(--font-sec);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pkg-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pkg-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pkg-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent1);
  margin-bottom: 8px;
}

.pkg-price span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pkg-target {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pkg-body {
  flex-grow: 1;
}

.pkg-label {
  font-family: var(--font-sec);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.pkg-label.mt-4 {
  margin-top: 24px;
}

.pkg-body .arch-list {
  gap: 8px;
}

.pkg-body .arch-list li {
  font-size: 0.85rem;
  gap: 8px;
}

.pkg-client-role {
  font-size: 0.82rem; /* Shrunk slightly to fit 1x3 comfortably */
  color: var(--muted);
  line-height: 1.5;
  background: rgba(108, 99, 255, 0.04);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

.pkg-btn {
  margin-top: 32px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: rgba(0, 102, 255, 0.05);
  color: var(--accent1);
  font-family: var(--font-sec);
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 102, 255, 0.2);
  transition: all 0.3s;
  text-transform: uppercase;
  cursor: none;
}

.pkg-btn.popular {
  background: var(--accent1);
  color: #ffffff;
  border-color: var(--accent1);
}

.pkg-btn:hover {
  background: var(--accent1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}

.addons-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.addons-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.addons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.addon-item {
  background: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.addon-item span {
  color: var(--accent1);
  margin-left: 8px;
}

/* ─── Modernizing AdSoul Contact Experience ─── */

/* ─── Contact Section Redesign ─── */
.contact-section {
  background: var(--bg);
  padding: clamp(80px, 12vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.contact-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 4vw, 40px); /* Reduced from 40-80px */
}

.contact-section-logo {
  height: clamp(120px, 20vw, 220px);
  width: auto;
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3));
}

.animated-logo-loop {
  animation: logoPulse 4s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 60px rgba(16, 185, 129, 0.5)); }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 10vw, 120px);
  align-items: start;
}

@media (max-width: 1024px) {
  .contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
}

.section-badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.green-gradient {
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cinfo-item {
  font-family: var(--font-sec);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1024px) {
  .contact-info {
    align-items: center;
  }
}

/* Refined Form Styling */
.contact-form-refined {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-row-refined {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .form-row-refined {
    grid-template-columns: 1fr;
  }
}

.form-group-refined {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-label-connector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-label-text {
  font-family: var(--font-sec);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent3);
  white-space: nowrap;
}

.connector-line {
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, rgba(16, 185, 129, 0.5), transparent);
}

.input-glow-wrapper {
  position: relative;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08); /* Slightly more opaque light green */
  border: 1px solid rgba(16, 185, 129, 0.4); /* Stronger green border */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.input-glow-wrapper:focus-within {
  border-color: var(--accent3);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.12);
}

.refined-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  font-family: var(--font-sec); /* Use Mono/Sec font for that tech feel */
  font-size: 1rem;
  color: #064e3b; /* Darker green text for readability */
  outline: none;
  font-weight: 600;
}

.refined-input::placeholder {
  color: rgba(6, 78, 59, 0.4);
  font-style: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.refined-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn-refined {
  margin-top: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  transition: all 0.3s;
}

.submit-btn-refined:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* ─── iOS Glassmorphic Booking Modal ─── */
#bookingModal.packages-modal {
  display: flex;
}

#bookingModal .modal-content {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 95%;
}

.booking-modal-form .form-label {
  font-family: var(--font-sec);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
  color: var(--muted);
}

.booking-modal-form .form-input {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.booking-modal-form .form-input:focus {
  background: #fff;
  border-color: var(--accent1);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.1);
}

.whatsapp-connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: #25D366;
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  transition: all 0.3s;
  text-decoration: none;
  margin-top: 10px;
}

.whatsapp-connect-btn:hover {
  background: #22c35e;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

/* ─── UNIFIED BOOKING MODAL REFINEMENTS ───── */
.service-template-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 15px;
  font-family: var(--font-sec);
  font-size: 0.9rem;
  color: #064e3b;
  line-height: 1.6;
  margin-top: 8px;
  position: relative;
  min-height: 60px;
}

.service-template-box::before {
  content: 'AUTOMATED PREVIEW';
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--accent3);
  color: white;
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.submit-btn-refined {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.submit-btn-refined .btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.submit-btn-refined:hover .btn-icon {
  transform: rotate(15deg) scale(1.2);
}

.booking-modal-form .form-label {
  font-family: var(--font-sec);
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 1px;
}

.booking-modal-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.booking-modal-form .form-input:focus {
  border-color: var(--accent3);
  background: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  outline: none;
}

/* ─── NESTED MODAL BLUR & DEPTH ───── */
#bookingModal {
  z-index: 20000; /* Always on top of service modals (10000) */
}

/* When a service modal remains open in the background */
.packages-modal.is-underneath {
  pointer-events: none; /* Ignore clicks while blurred */
}

.packages-modal.is-underneath .modal-content {
  transform: translateY(-20px) scale(0.95);
  filter: blur(10px) brightness(0.8);
  opacity: 0.5;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.packages-modal.is-underneath .modal-backdrop {
  opacity: 0.3; /* Soften the background backdrop to avoid double-stacking */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}