/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors */
    --bg-color: #0E0F13;
    --bg-alt-color: #151821;
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --text-primary: #EAEAEA;
    --text-secondary: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.08);
    --error-color: #EF4444;
    --success-color: #10B981;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 8rem;

    /* Borders & Shadows */
    --border-radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Anti-copy */
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
.inquiry-details {
    user-select: auto;
    -webkit-user-select: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-padding {
    padding: var(--spacing-2xl) 0;
}

.alt-bg {
    background-color: transparent;
}

/* ==========================================================================
   Section Transitions — seamless gradient blending between sections
   ========================================================================== */

/* Soft tinted background only for alt sections (no hard edge) */
.services.alt-bg,
.pricing.alt-bg {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(21, 24, 33, 0.6) 15%,
        rgba(21, 24, 33, 0.6) 85%,
        transparent 100%
    );
}

/* Ensure all main sections establish a stacking context */
.hero, .about, .services, .projects, .pricing, .contact {
    position: relative;
}

/* Bottom fade — each section melts into the next */
.hero::after,
.about::after,
.services::after,
.projects::after,
.pricing::after,
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #0E0F13 100%
    );
    pointer-events: none;
    z-index: 3;
}

/* Top fade — each section receives the previous section's bleed */
.about::before,
.services::before,
.projects::before,
.pricing::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to top,
        transparent 0%,
        #0E0F13 100%
    );
    pointer-events: none;
    z-index: 3;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none !important;
}

[data-scroll] {
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    background-color: rgba(14, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.desktop-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .mobile-hidden {
        display: none !important;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below navbar */
        left: 0;
        width: 100%;
        background-color: rgba(14, 15, 19, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
        text-align: center;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .desktop-hidden {
        display: inline-flex !important;
        margin-top: var(--spacing-md);
        justify-content: center;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset for nav */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Asymmetrical Graphic Elements & Animation */
.hero-graphic {
    position: relative;
    height: 500px;
    display: none;
    perspective: 1200px;
}

@media (min-width: 992px) {
    .hero-graphic {
        display: block;
    }
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

/* Glowing Orbs for background depth */
.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    animation: float-orb 12s infinite ease-in-out alternate;
    will-change: transform, opacity;
}

.orb-1 {
    top: 50px;
    left: 20%;
    background: rgba(59, 130, 246, 0.4);
    /* Blue glow */
}

.orb-2 {
    bottom: 50px;
    right: 10%;
    background: rgba(147, 51, 234, 0.3);
    /* Purple glow */
    animation-delay: -6s;
}

.orb-3 {
    top: 40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(16, 185, 129, 0.2);
    /* Green glow */
    animation-delay: -3s;
}

/* Floating Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    width: 100%;
}

.card-line.short {
    width: 60%;
}

.card-line.short-2 {
    width: 80%;
}

/* Specific Card Positioning and Animation */
.card-1 {
    top: 10%;
    left: 0%;
    width: 240px;
    animation: float-card-1 8s infinite ease-in-out;
}

.card-2 {
    top: 45%;
    right: -10%;
    width: 260px;
    animation: float-card-2 9s infinite ease-in-out;
    animation-delay: -2s;
    background: rgba(255, 255, 255, 0.04);
}

.card-2 .card-header i {
    color: #10B981;
    /* Success Green */
}

.card-3 {
    bottom: 5%;
    left: 10%;
    width: 220px;
    animation: float-card-3 10s infinite ease-in-out;
    animation-delay: -4s;
}

.card-3 .card-header i {
    color: #9333EA;
    /* Purple */
}

/* Floating Animations */
@keyframes float-orb {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.2) translate(30px, -30px);
    }
}

@keyframes float-card-1 {

    0%,
    100% {
        transform: translateZ(20px) translateY(0) rotateX(5deg) rotateY(-5deg);
    }

    50% {
        transform: translateZ(60px) translateY(-15px) rotateX(10deg) rotateY(-10deg);
        box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
    }
}

@keyframes float-card-2 {

    0%,
    100% {
        transform: translateZ(10px) translateY(0) rotateX(-5deg) rotateY(10deg);
    }

    50% {
        transform: translateZ(40px) translateY(-20px) rotateX(-10deg) rotateY(15deg);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.3);
    }
}

@keyframes float-card-3 {

    0%,
    100% {
        transform: translateZ(30px) translateY(0) rotateX(10deg) rotateY(5deg);
    }

    50% {
        transform: translateZ(80px) translateY(-10px) rotateX(15deg) rotateY(10deg);
        box-shadow: 0 20px 40px rgba(147, 51, 234, 0.15);
        border-color: rgba(147, 51, 234, 0.3);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        grid-template-columns: 1fr 1.2fr;
    }
}

.about-image-wrapper {
    position: relative;
    max-width: 420px;
    margin: 30px 0 0 30px;
    /* Shifted right and down */
    isolation: isolate;
    z-index: 10;
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    filter: grayscale(20%);
    transition: filter var(--transition-normal);
}

.about-image-wrapper:hover .about-img {
    filter: grayscale(0%);
}

.img-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: 3;
    /* Move to top to act as a frame */
    pointer-events: none;
    /* Let clicks pass through to image if needed */
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.about-image-wrapper:hover .img-accent {
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section-header {
    max-width: 600px;
    margin-bottom: var(--spacing-xl);
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Asymmetrical grid alignment */
    .services-grid .service-card:nth-child(2) {
        transform: translateY(20px);
    }

    .services-grid .service-card:nth-child(3) {
        transform: translateY(40px);
    }

    .services-grid .service-card:nth-child(4) {
        transform: translateY(-20px);
    }

    .services-grid .service-card:nth-child(5) {
        transform: translateY(0);
    }
}

.service-card {
    background-color: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px) !important;
    /* Override asymmetrical transform on hover */
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
#projects {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
}

#projects .container {
  position: relative;
  z-index: 5;
}

#projects .section-header {
  text-align: left;
  margin-bottom: 56px;
  max-width: none;
}

#projects h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0;
}

#projects .header-accent {
  width: 40px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  margin: 12px 0 0 0;
}

#projects .section-header p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* --- Carousel / Marquee --- */
.projects-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0 40px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  padding-right: 24px;
  animation: marqueeScroll 28s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

#projects.paused .marquee-group {
  animation-play-state: paused;
}

/* --- Project Card --- */
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.4s ease, 
              box-shadow 0.4s ease,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(59, 130, 246, 0.15);
  transform: translateY(-6px);
}

.project-preview-wrapper {
  position: relative;
  width: 100%;
  height: 240px; /* Modern balanced height */
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a; /* Dark placeholder to prevent white flash */
}

.project-preview,
.project-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-preview.loaded,
.project-preview-img.loaded {
  opacity: 1;
}

.project-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease; /* Smooth fade in/out */
}

.project-preview-video.loaded {
  opacity: 1;
}

.project-preview-video.fade-out {
  opacity: 0 !important;
}

/* Dynamic CSS Cover Fallback */
.css-project-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border-radius: 12px;
}

.css-cover-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.css-cover-initials {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0.95;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.css-cover-favicon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  background: #fff;
  padding: 4px;
  object-fit: contain;
  animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.css-cover-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Skeleton & Loading - with renamed keyframe to avoid conflict */
.skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1e293b 25%,
    #334155 50%,
    #1e293b 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
  z-index: 1;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fallback & Loading */
.preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  background: var(--bg-alt-color);
  z-index: 2;
}

.preview-fallback i {
    font-size: 2.2rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.preview-fallback span {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.preview-loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 12px;
    transition: opacity 0.4s ease;
}

.preview-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(59, 130, 246, 0.1);
    border-top: 2.5px solid var(--primary-color);
    border-radius: 50%;
    animation: preview-spin 0.8s linear infinite;
}

@keyframes preview-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100; /* Above everything inside wrapper */
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-preview-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.project-card:hover .project-preview-btn {
  transform: translateY(0);
}

.project-preview-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05) !important;
  color: #fff;
}

.project-body {
  padding: 1.5rem; /* Re-add padding for card text */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(59, 130, 246, 0.85);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 4px;
  padding: 3px 9px;
  letter-spacing: 0.03em;
}

/* --- Static Grid Layout --- */
.carousel-static #projects-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
}

.carousel-static .project-card {
  width: 100% !important;
  flex-shrink: 1 !important;
}

/* Static Cards Entry Animation */
.carousel-static .project-card {
  opacity: 0;
  transform: translateY(40px);
}

.carousel-static .project-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mobile Kill-Switch --- */
@media (max-width: 1023px) {
  #projects .marquee-group {
    animation: none !important;
    transform: none !important;
    display: contents;
  }
  #projects .marquee-track {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    gap: 20px !important;
  }
  #projects .marquee-clone {
    display: none !important;
  }
  #projects .project-card {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .projects-carousel-wrapper {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  #projects .marquee-track {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        /* This vertically centers the cards so the highlighted one can be larger */
    }
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card.highlighted {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    z-index: 2;
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .pricing-card.highlighted {
        transform: scale(1);
    }
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #3B82F6, #60A5FA, #3B82F6);
    background-size: 200% auto;
    animation: pricingShimmer 2.5s linear infinite;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

@keyframes pricingShimmer {
    to {
        background-position: 200% center;
    }
}

.pricing-price {
    font-family: 'Inter', var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 1rem 0;
}

.pricing-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-card.highlighted:hover {
    transform: scale(1.08); /* Keep elevation priority */
}

.pricing-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    margin-bottom: 0;
    font-size: 1rem;
}

.pricing-features {
    padding: var(--spacing-lg);
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.pricing-features i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.pricing-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact Section & Forms
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.custom-form input,
.custom-form select,
.custom-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.custom-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A0A0A0' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-status {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0B0C10;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-identity .logo {
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-statement {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.5;
}

.footer-title {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-link-contact:hover {
    color: var(--primary-color);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy,
.footer-performance {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}


/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background-color: var(--bg-alt-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-soft);
}

.login-card h2 {
    margin-bottom: 0.5rem;
}

.login-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Dashboard Layout */
.admin-body {
    overflow: hidden;
    /* Prevent body scroll, handle scroll in main */
}

.admin-dashboard {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--bg-alt-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: var(--spacing-md) 0;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem var(--spacing-lg);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-right: 2px solid var(--primary-color);
}

.nav-item i {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color);
}

.admin-header {
    height: 70px;
    padding: 0 var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(14, 15, 19, 0.9);
    flex-shrink: 0;
}

.admin-header h1 {
    font-size: 1.25rem;
    margin: 0;
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

/* Mobile Admin Specifics */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 2px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-main {
        width: 100%;
    }

    .admin-header {
        padding: 0 var(--spacing-md);
    }

    .admin-user span {
        display: none; /* Hide email on small screens */
    }

    .login-card {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }

    .modal-card {
        width: 95%;
        margin: var(--spacing-sm);
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .table-filters {
        flex-direction: column;
    }

    .filter-input {
        max-width: 100%;
    }
}

.admin-content {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex-grow: 1;
}

.view-section {
    max-width: 1200px;
    margin: 0 auto;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.view-header h2 {
    margin: 0;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background-color: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.stat-card .stat-icon.highlight {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.stat-card .stat-info h3 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Tables */
.table-container {
    background-color: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-new {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-replied {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Filters */
.table-filters {
    display: flex;
    gap: var(--spacing-md);
}

.filter-input,
.filter-select {
    background-color: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.filter-input {
    flex-grow: 1;
    max-width: 300px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(14, 15, 19, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background-color: var(--bg-alt-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* Inquiry Details Layout */
.detail-group {
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-message {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    white-space: pre-wrap;
}

/* ---------------------------------------------------
   Custom Scrollbar Styling (Main Site)
   --------------------------------------------------- */
/* WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0E0F13;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    border: 2px solid #0E0F13;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) #0E0F13;
}

/* Fade-in sections */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------
   Infinite Carousel Styles
   --------------------------------------------------- */
.projects.carousel-active .container {
    max-width: 100vw;
    padding: 0;
    overflow: hidden;
}

.projects.carousel-active .section-header {
    padding: 0 var(--spacing-lg);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.projects.carousel-active .projects-grid {
    display: flex;
    display: -webkit-flex;
    flex-wrap: nowrap;
    gap: 40px;
    padding: 40px 20px;
    width: max-content;
    animation: scroll-carousel 40s linear infinite;
    grid-template-columns: none;
    /* Override grid */
}

.projects.carousel-active .project-card {
    width: 380px;
    flex-shrink: 0;
}

    /* Note: Old scroll-carousel was here, now consolidated to .marquee-group */
@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

.projects.carousel-active .projects-grid:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .projects.carousel-active .project-card {
        width: 300px;
    }
}

/* ---------------------------------------------------
   PREMIUM MOBILE RESPONSIVENESS REFINEMENTS
   --------------------------------------------------- */

/* 1. Prevent Horizontal Scroll & Base Layout */
html, body {
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

/* 2. Spacing System */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-2xl: 5rem;
    }

    .container {
        padding: 0 20px !important; /* Standard 20px padding */
    }

    .section-padding {
        padding: 4rem 0 !important; /* More balanced section spacing */
    }
}

/* 3. Typography Scaling */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem !important; } /* 36px */
    h2 { font-size: 1.875rem !important; } /* 30px */
    h3 { font-size: 1.25rem !important; } /* 20px */
    p { font-size: 1rem !important; line-height: 1.6 !important; } /* 16px */
    
    .hero-subtitle {
        font-size: 1.125rem !important;
        margin-bottom: var(--spacing-lg) !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem !important; } /* 32px */
    h2 { font-size: 1.5rem !important; } /* 24px */
    p { font-size: 0.9375rem !important; } /* 15px */
}

/* 4. Navbar & Mobile Menu Improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .mobile-menu-btn {
        width: 48px !important; /* Premium tap target */
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 2.2rem !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: var(--bg-color) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        z-index: 1001 !important;
        transform: translateX(100%) !important;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important;
        padding: 0 !important;
        border-bottom: none !important;
        text-align: center !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links a {
        font-size: 1.75rem !important;
        width: 100%;
        padding: 1rem;
    }

    .nav-links a.active::after {
        display: none !important; /* Hide active underline on mobile menu */
    }
}

/* 5. Buttons Styling */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
}

/* 6. Hero & Visual Elements */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-container {
        text-align: center;
        grid-template-columns: 1fr !important;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    /* Disable floating heavy graphics on mobile */
    .glowing-orb {
        width: 150px;
        height: 150px;
        filter: blur(50px);
        opacity: 0.3;
    }
}

/* 7. Cards & Grid Layouts */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .stat-card {
        justify-content: center;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-image-wrapper {
        margin: 20px auto 0 !important;
        max-width: 320px;
    }

    .about-container {
        gap: 3rem;
        grid-template-columns: 1fr !important;
    }
}

/* 8. Projects & Native Swipe Carousel (No Auto-Scroll) */
@media (max-width: 1024px) {
    .projects.carousel-active .container {
        max-width: 100vw;
        padding: 0;
        overflow: hidden;
    }

    .projects.carousel-active .projects-grid {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        padding: 20px !important;
        gap: 20px !important;
        animation: none !important;
        transform: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .projects.carousel-active .project-card {
        width: 85vw !important; /* Peek at next card */
        max-width: 400px;
        flex-shrink: 0 !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /* Hide marquee specific groups/clones if they exist */
    .marquee-group {
        display: flex !important;
        animation: none !important;
        transform: none !important;
    }
    
    .clone-card {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1.25rem !important;
    }
}

/* 9. Interaction Fixes & Performance Optimization */
@media (max-width: 768px) {
    /* ONLY STOP animations that are heavy on low-end mobile */
    .glowing-orb, .wib-orb, .hero-cursor {
        animation: none !important;
        transition: none !important;
    }

    /* FORCE VISIBILITY for elements that use fade-in animations */
    .fade-in, 
    .hero-content > *,
    .project-card,
    .service-card,
    .stat-card,
    .pricing-card,
    .about-content > *,
    .contact-container > * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .project-card:hover {
        transform: none !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    }

    .btn:hover {
        transform: none !important;
    }

    .project-links {
        position: relative !important;
        opacity: 1 !important;
        background: transparent !important;
        padding-top: 1rem !important;
        transform: none !important;
    }

    .project-link-btn {
        transform: none !important;
        width: auto !important;
        height: auto !important;
        border-radius: 4px !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
        display: inline-flex !important;
        gap: 0.5rem !important;
        background: var(--primary-color) !important;
        color: #fff !important;
    }
    
    .project-link-btn i {
        font-size: 1.2rem !important;
    }

    .project-link-btn::after {
        content: 'View Project';
        font-family: var(--font-heading);
        font-weight: 500;
    }
}

/* 10. Performance Optimizations */
@media (max-width: 768px) {
    .glass-card, .btn, .pricing-card, .service-card, .project-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(21, 24, 33, 0.95) !important;
        border: 1px solid var(--border-color) !important;
    }

    .spotlight, .hero-graphic, .glowing-orb {
        display: none !important;
    }
}

/* 11. One-Hand Usage */
@media (max-width: 768px) {
    .nav-links a {
        padding: 1.5rem;
    }

    .custom-form input, 
    .custom-form select, 
    .custom-form textarea {
        min-height: 48px;
    }
}

/* --- Admin Image Preview --- */
.project-image-preview {
    width: 100%;
    height: 200px;
    background: var(--bg-alt-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.project-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image-preview span {
    padding: 1rem;
    text-align: center;
}

/* Admin specific overrides */
.admin-body .project-image-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-body .project-image-preview img,
.admin-body .project-image-preview iframe,
.admin-body .project-image-preview .project-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.admin-body .project-image-preview .open-preview-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(14, 15, 19, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 15;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-body .project-image-preview .open-preview-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}


/* --- Consolidated Section Styles --- */


        /* Scoped Contact Section Styles */
        #contact {
          position: relative;
          overflow: hidden;
          background-color: #0E0F13;
        }

        /* Contact top-edge fade */
        #contact::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 200px;
          background: linear-gradient(
            to bottom,
            #0E0F13 0%,
            transparent 100%
          );
          pointer-events: none;
          z-index: 2;
        }
        #contact::after {
          content: '';
          position: absolute;
          bottom: -100px; right: -80px;
          width: 400px; height: 400px;
          background: radial-gradient(circle,
            rgba(147,51,234,0.06) 0%, transparent 70%);
          filter: blur(100px);
          pointer-events: none;
          z-index: 0;
        }

        #contact .container {
          position: relative;
          z-index: 1;
        }

        #contact .contact-wrapper {
          display: grid;
          grid-template-columns: 1fr 1.4fr;
          gap: 80px;
          align-items: start;
        }

        @media (max-width: 900px) {
          #contact .contact-wrapper {
            grid-template-columns: 1fr;
            gap: 48px;
          }
        }

        /* LEFT PANEL CSS */
        #contact .contact-left {
          display: flex;
          flex-direction: column;
          gap: 24px;
          padding-top: 8px;
        }

        #contact .contact-eyebrow {
          font-family: Inter, sans-serif;
          font-size: 11px;
          font-weight: 500;
          letter-spacing: 0.24em;
          text-transform: uppercase;
          color: var(--primary-color);
          display: block;
        }

        #contact .contact-heading {
          font-family: Space Grotesk, sans-serif;
          font-size: clamp(2rem, 4vw, 3rem);
          font-weight: 700;
          color: var(--text-primary);
          letter-spacing: -0.025em;
          line-height: 1.1;
          margin: 0;
        }

        #contact .contact-subtext {
          font-family: Inter, sans-serif;
          font-size: 1rem;
          line-height: 1.75;
          color: var(--text-secondary);
          margin: 0;
          max-width: 400px;
        }

        #contact .contact-details {
          display: flex;
          flex-direction: column;
          gap: 12px;
          margin-top: 8px;
        }

        #contact .contact-detail-item {
          display: flex;
          align-items: center;
          gap: 16px;
          padding: 16px 18px;
          background: rgba(255,255,255,0.02);
          border: 1px solid rgba(255,255,255,0.06);
          border-radius: 12px;
          transition: border-color 0.35s ease,
                      background 0.35s ease,
                      transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
        }

        #contact .contact-detail-item:hover {
          border-color: rgba(59,130,246,0.22);
          background: rgba(59,130,246,0.04);
          transform: translateX(6px);
        }

        #contact .contact-detail-icon {
          width: 40px; height: 40px;
          border-radius: 10px;
          background: rgba(59,130,246,0.1);
          border: 1px solid rgba(59,130,246,0.2);
          display: flex; align-items: center;
          justify-content: center;
          flex-shrink: 0;
          transition: background 0.3s ease;
        }

        #contact .contact-detail-item:hover .contact-detail-icon {
          background: rgba(59,130,246,0.18);
        }

        #contact .contact-detail-icon i {
          font-size: 1.1rem;
          color: var(--primary-color);
        }

        #contact .contact-detail-label {
          display: block;
          font-family: Inter, sans-serif;
          font-size: 0.68rem;
          font-weight: 500;
          letter-spacing: 0.16em;
          text-transform: uppercase;
          color: var(--text-secondary);
          margin-bottom: 3px;
        }

        #contact .contact-detail-value {
          display: block;
          font-family: Space Grotesk, sans-serif;
          font-size: 0.925rem;
          font-weight: 600;
          color: var(--text-primary);
        }

        /* GLASSMORPHISM FORM CARD */
        #contact .contact-form-card {
          background: rgba(16, 18, 26, 0.97) !important;
          backdrop-filter: blur(20px);
          -webkit-backdrop-filter: blur(20px);
          border: 1px solid rgba(59, 130, 246, 0.25);
          border-radius: 20px;
          padding: 44px 40px;
          position: relative;
          z-index: 1;
          overflow: hidden;
          box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.08),
            0 0 20px rgba(59, 130, 246, 0.12),
            0 0 60px rgba(59, 130, 246, 0.08),
            0 0 120px rgba(59, 130, 246, 0.04),
            0 30px 80px rgba(0, 0, 0, 0.35);
          transition: box-shadow 0.6s ease, border-color 0.6s ease;
        }

        #contact .contact-form-card:hover {
          border-color: rgba(59, 130, 246, 0.38);
          box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.12),
            0 0 25px rgba(59, 130, 246, 0.18),
            0 0 70px rgba(59, 130, 246, 0.1),
            0 0 140px rgba(59, 130, 246, 0.05),
            0 30px 80px rgba(0, 0, 0, 0.4);
        }


        @media (max-width: 600px) {
          #contact .contact-form-card {
            padding: 28px 20px;
            border-radius: 14px;
          }
        }

        /* EXISTING FORM FIELD RESTYLING */
        #contact .contact-form-card input,
        #contact .contact-form-card select,
        #contact .contact-form-card textarea {
          width: 100%;
          background: rgba(255,255,255,0.04);
          border: 1px solid rgba(255,255,255,0.08);
          border-radius: 10px;
          padding: 14px 16px;
          font-family: Inter, sans-serif;
          font-size: 0.9rem;
          color: var(--text-primary);
          outline: none;
          transition: border-color 0.3s ease,
                      box-shadow 0.3s ease,
                      background 0.3s ease;
          appearance: none;
          -webkit-appearance: none;
          color-scheme: dark;
        }

        #contact .contact-form-card input::placeholder,
        #contact .contact-form-card textarea::placeholder {
          color: var(--text-secondary);
          opacity: 0.6;
        }

        /* INPUT FOCUS GLOW */
        #contact .contact-form-card input:focus,
        #contact .contact-form-card select:focus,
        #contact .contact-form-card textarea:focus {
          border-color: rgba(59,130,246,0.5);
          background: rgba(59,130,246,0.04);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1),
                      0 0 20px rgba(59,130,246,0.06);
        }

        /* Select options dark */
        #contact .contact-form-card select,
        #contact .contact-form-card select option {
          background-color: #1a1d2e;
          color: var(--text-primary);
        }

        /* Labels above fields */
        #contact .contact-form-card label {
          display: block;
          font-family: Inter, sans-serif;
          font-size: 0.78rem;
          font-weight: 500;
          letter-spacing: 0.06em;
          color: var(--text-secondary);
          margin-bottom: 6px;
        }

        /* Form rows */
        #contact .contact-form-card .form-row,
        #contact .contact-form-card .contact-form-row {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 16px;
        }

        @media (max-width: 600px) {
          #contact .contact-form-card .form-row,
          #contact .contact-form-card .contact-form-row {
            grid-template-columns: 1fr;
          }
        }

        /* Textarea */
        #contact .contact-form-card textarea {
          resize: vertical;
          min-height: 120px;
        }

        /* Submit button */
        #contact .contact-form-card button[type="submit"],
        #contact .contact-form-card .btn-submit {
          width: 100%;
          padding: 14px 24px;
          background: var(--primary-color);
          border: none;
          border-radius: 10px;
          font-family: Space Grotesk, sans-serif;
          font-size: 1rem;
          font-weight: 600;
          color: #fff;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 8px;
          transition: background 0.3s ease,
                      transform 0.3s ease,
                      box-shadow 0.3s ease;
          margin-top: 8px;
        }

        #contact .contact-form-card button[type="submit"]:hover {
          background: var(--primary-hover);
          transform: translateY(-2px);
          box-shadow: 0 8px 28px rgba(59,130,246,0.3);
        }

        /* BUTTON SHIMMER */
        #contact .contact-form-card button[type="submit"]::after {
          content: '';
          position: absolute;
          top: 0; left: -100%;
          width: 55%; height: 100%;
          background: linear-gradient(90deg,
            transparent, rgba(255,255,255,0.18), transparent);
          transform: skewX(-20deg);
          transition: left 0.5s ease;
        }
        #contact .contact-form-card button[type="submit"]:hover::after {
          left: 160%;
        }

        /* SUCCESS ANIMATION */
        #contact .form-status.success,
        #contact .form-success,
        #contact [class*="success"] {
          background: rgba(16,185,129,0.08);
          border: 1px solid rgba(16,185,129,0.25);
          border-radius: 8px;
          color: #10B981;
          padding: 12px 16px;
          font-family: Inter, sans-serif;
          font-size: 0.875rem;
          text-align: center;
          animation: contactSuccessPop 0.5s
                     cubic-bezier(0.34,1.56,0.64,1) forwards;
        }

        #contact .form-status.error,
        #contact .form-error,
        #contact [class*="error"] {
          background: rgba(239,68,68,0.08);
          border: 1px solid rgba(239,68,68,0.2);
          border-radius: 8px;
          color: #EF4444;
          padding: 12px 16px;
          font-family: Inter, sans-serif;
          font-size: 0.875rem;
          text-align: center;
        }

        @keyframes contactSuccessPop {
          0%   { opacity:0; transform: scale(0.95) translateY(8px); }
          100% { opacity:1; transform: scale(1) translateY(0); }
        }

        @media (max-width: 900px) {
          #contact .contact-wrapper {
            grid-template-columns: 1fr;
            gap: 40px;
          }
          #contact .contact-subtext {
            max-width: 100%;
          }
        }

        @media (max-width: 600px) {
          #contact .contact-form-card {
            padding: 28px 18px;
          }
          #contact .contact-heading {
            font-size: 1.9rem;
          }
        }
    

        body { background-color: #0E0F13; }
        .wib-section { position: relative; overflow: visible; background-color: transparent !important; }
        .wib-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100vw; height: 100vh; }
        .wib-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; z-index: 1; pointer-events: none; animation: wibOrbFloat 25s infinite alternate ease-in-out; }
        .wib-orb-1 { position: fixed; top: 30vh; left: -10%; width: 500px; height: 500px; z-index: 0; pointer-events: none; background: radial-gradient(circle, #4f7cff, transparent 70%); }
        .wib-orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #00d4ff, transparent 70%); bottom: -15%; right: -10%; animation-duration: 35s; animation-delay: -7s; }
        .wib-orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #7c4fff, transparent 70%); top: 40%; left: 45%; animation-duration: 40s; animation-delay: -15s; }
        @keyframes wibOrbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 40px) scale(1.1); } }
        .wib-section .container { position: relative; z-index: 2; }
        .wib-section .service-card { opacity: 0; transform: translateY(60px) rotate(2deg); transition: border-color 0.4s ease; position: relative; overflow: hidden; }
        .wib-section.triggered .service-card { animation: wibCardEntry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
        @keyframes wibCardEntry { to { opacity: 1; transform: translateY(0) rotate(0deg); } }
        
        @media (min-width: 1024px) {
            .wib-section .services-grid {
                display: grid;
                grid-template-columns: 1fr 1.5fr 1.5fr;
                grid-template-rows: auto auto;
                gap: 30px;
            }
            
            .wib-section .service-card:nth-child(3) {
                display: flex;
                flex-direction: column;
                justify-content: center;
                grid-column: 3; grid-row: 1 / span 2;
            }
            
            .wib-section .service-card:nth-child(4) { grid-column: 1; grid-row: 2; }
            .wib-section .service-card:nth-child(5) { grid-column: 2; grid-row: 2; }
        }

        .wib-section .service-card:nth-child(1) { animation-delay: 0s; }
        .wib-section .service-card:nth-child(2) { animation-delay: 0.15s; }
        .wib-section .service-card:nth-child(3) { animation-delay: 0.3s; }
        .wib-section .service-card:nth-child(4) { animation-delay: 0.45s; }
        .wib-section .service-card:nth-child(5) { animation-delay: 0.6s; }
        .wib-section .service-card::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 60%; background: linear-gradient(to bottom, transparent, rgba(79,124,255,0.1), transparent); pointer-events: none; z-index: 5; }
        .wib-section .service-card:hover::after { animation: wibScan 2s linear infinite; }
        @keyframes wibScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
        .wib-glow { position: absolute; inset: 0; background: radial-gradient(circle 300px at var(--mx) var(--my), rgba(79,124,255,0.18), transparent 80%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; z-index: 1; }
        .wib-section .service-card:hover .wib-glow { opacity: 1; }
        .wib-section .service-icon { display: inline-block; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; z-index: 6; }
        .wib-section .service-card:hover .service-icon { transform: translateY(-8px) scale(1.15); }
        .wib-section .service-card .service-icon { position: relative; }
        .wib-section .service-card .service-icon::after { content: ''; position: absolute; inset: -12px; border: 2px solid var(--primary-color); border-radius: 50%; opacity: 0; transform: scale(0.5); transition: all 0.5s ease; pointer-events: none; }
        .wib-section .service-card:hover .service-icon::after { opacity: 0.45; transform: scale(1.1); }
        .wib-section .service-card h3 { position: relative; display: inline-block; z-index: 6; }
        .wib-section .service-card h3::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 3px; background: linear-gradient(90deg, #4f7cff, #00d4ff); transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 2px; }
        .wib-section .service-card:hover h3::after { width: 100%; }
        .wib-section .card-content-wrap { position: relative; z-index: 6; transition: transform 0.15s ease-out; pointer-events: none; }
        .wib-section .section-header h2 { position: relative; display: inline-block; background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--primary-color) 48%, #00d4ff 52%, #fff 60%, #fff 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wibShimmer 5s linear infinite; }
        @keyframes wibShimmer { 0% { background-position: 100% center; } 100% { background-position: -100% center; } }
        .wib-particle { position: fixed; pointer-events: none; z-index: 1; border-radius: 50%; }
        .wib-trail { position: fixed; width: 6px; height: 6px; background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); border-radius: 50%; pointer-events: none; z-index: 1; }
    

        /* ── Float keyframe ─────────────────────────────────── */
        @keyframes maFloat {
            0%, 100% { transform: translateY(0px); }
            50%       { transform: translateY(-10px); }
        }

        /* ── Divider draw keyframe ───────────────────────────── */
        @keyframes maDividerDraw {
            from { width: 0; }
            to   { width: 100%; }
        }

        /* ── Section layout ──────────────────────────────────── */
        #about {
            padding: 100px 0;
            position: relative;
        }
        #about::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 120px;
            background: linear-gradient(
                to bottom,
                transparent 0%,
                #0E0F13 100%
            );
            pointer-events: none;
            z-index: 3;
        }
        #about .about-container {
            align-items: center;
        }

        /* ── Image wrapper ───────────────────────────────────── */
        #about .about-image-wrapper {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            will-change: transform;
            transform-style: preserve-3d;
            box-shadow:
                0 2px 4px rgba(0,0,0,0.3),
                0 12px 40px rgba(0,0,0,0.5),
                0 40px 80px rgba(0,0,0,0.4);
            border: 1px solid rgba(255,255,255,0.06);
            transition: box-shadow 0.4s ease;
            animation: maFloat 6s ease-in-out infinite;
            opacity: 0;
            transform: translateX(-30px);
        }
        #about .about-image-wrapper:hover {
            box-shadow:
                0 2px 4px rgba(0,0,0,0.3),
                0 12px 40px rgba(0,0,0,0.5),
                0 40px 80px rgba(0,0,0,0.4),
                0 0 0 1px rgba(59,130,246,0.4),
                0 0 50px rgba(59,130,246,0.12);
            animation-play-state: paused;
        }
        #about .about-image-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 30%;
            pointer-events: none;
            background: linear-gradient(to top, rgba(14,15,19,0.6), transparent);
            z-index: 1;
        }
        #about .img-accent {
            display: none;
        }
        #about .about-img {
            display: block;
            width: 100%;
        }

        /* ── About section entry animation classes ───────────── */
        #about.ma-triggered .about-image-wrapper {
            animation:
                maAboutSlideLeft 1s cubic-bezier(0.16,1,0.3,1) 0.1s forwards,
                maFloat 6s ease-in-out 1.1s infinite;
        }
        @keyframes maAboutSlideLeft {
            from { opacity: 0; transform: translateX(-30px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        #about .about-content {
            opacity: 0;
            transform: translateX(30px);
        }
        #about.ma-triggered .about-content {
            animation: maAboutSlideRight 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
        }
        @keyframes maAboutSlideRight {
            from { opacity: 0; transform: translateX(30px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        /* ── Text stagger initial state ──────────────────────── */
        #about .ma-eyebrow,
        #about .about-content h2,
        #about .about-content p,
        #about .stats-grid {
            opacity: 0;
            transform: translateY(16px);
            transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
                        transform 0.6s cubic-bezier(0.16,1,0.3,1);
        }
        #about .ma-eyebrow.ma-visible,
        #about .about-content h2.ma-visible,
        #about .about-content p.ma-visible,
        #about .stats-grid.ma-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ── Eyebrow label ───────────────────────────────────── */
        #about .ma-eyebrow {
            font-family: Inter, sans-serif;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: #3B82F6;
            display: block;
            margin-bottom: 18px;
        }

        /* ── Heading ─────────────────────────────────────────── */
        #about .about-content h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(32px, 4vw, 58px);
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.025em;
            color: #f0f2ff;
        }
        #about .about-content h2.ma-glow .ma-glow-words {
            color: #fff;
            text-shadow: 0 0 30px rgba(59,130,246,0.4);
            transition: color 1s ease, text-shadow 1s ease;
        }
        #about .about-content h2.ma-glow-off .ma-glow-words {
            color: inherit;
            text-shadow: none;
        }

        /* ── Body paragraphs ─────────────────────────────────── */
        #about .about-content p {
            font-family: Inter, sans-serif;
            font-size: 15px;
            font-weight: 400;
            line-height: 1.8;
            color: rgba(200,210,225,0.72);
        }

        /* ── Stats ───────────────────────────────────────────── */
        #about .stats-grid {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            border-top: 1px solid rgba(255,255,255,0.08);
            padding-top: 28px;
            margin-top: 28px;
            overflow: hidden;
        }
        #about .stats-grid::before {
            content: none; /* divider draw handled via JS class */
        }
        #about .stats-grid.ma-divider-draw {
            /* The border-top already shows; this class is just a hook for the animation */
            border-top-color: rgba(255,255,255,0.08);
        }
        #about .stat-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        #about .stat-item:not(:last-child) {
            border-right: 1px solid rgba(255,255,255,0.08);
            padding-right: 24px;
            margin-right: 24px;
        }
        #about .stat-value {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 26px;
            font-weight: 600;
            color: #f0f2ff;
        }
        #about .stat-label {
            font-family: Inter, sans-serif;
            font-size: 10px;
            font-weight: 400;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: rgba(200,210,225,0.45);
        }

        /* ── Mobile ──────────────────────────────────────────── */
        @media (max-width: 767px) {
            #about {
                padding: 56px 20px;
            }
            #about .about-container {
                flex-direction: column;
            }
            #about .about-image-wrapper {
                max-width: 85vw;
                margin: 0 auto;
                width: 85vw;
            }
            #about .about-content h2 {
                font-size: clamp(26px, 6vw, 38px);
            }
            #about .stats-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }
            #about .stat-item:not(:last-child) {
                border-right: none;
                padding-right: 0;
                margin-right: 0;
            }
        }
    

        .hero {
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            padding-top: 80px;
            display: flex;
            align-items: center;
        }

        .hero-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;
            position: relative;
            z-index: 2;
            align-items: center;
            width: 100%;
        }

        @media (min-width: 992px) {
            .hero-container {
                grid-template-columns: 1.1fr 0.9fr;
            }
        }

        @media (min-width: 768px) and (max-width: 991px) {
            .hero-content {
                text-align: center;
                margin: 0 auto;
            }

            .hero-visuals {
                flex-direction: row !important;
                justify-content: center;
                width: 100%;
            }

            .hero-terminal,
            .hero-device {
                max-width: 45% !important;
            }
        }

        /* ── Heading ──────────────────────────────────────── */
        .hero-heading {
            display: block;
            position: relative;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: clamp(2.8rem, 5.5vw, 4.5rem);
            letter-spacing: -0.03em;
            line-height: 1.05;
            color: var(--text-primary);
            max-width: 680px;
            margin-bottom: 0;
        }

        .hero-cursor {
            display: inline !important;
            vertical-align: baseline !important;
            line-height: inherit !important;
            font-size: inherit !important;
            font-weight: 300 !important;
            color: #3B82F6 !important;
            margin-left: 2px !important;
            position: static !important;
            animation: heroCursorBlink 0.65s step-end infinite !important;
        }

        .hero-h1-plain,
        .hero-h1-gradient {
            display: inline !important;
            vertical-align: baseline !important;
        }

        @keyframes heroCursorBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* ── Subtitle & Actions ──────────────────────────── */
        .hero-subtitle {
            font-family: 'Inter', sans-serif;
            font-size: 1.15rem;
            font-weight: 400;
            line-height: 1.75;
            color: var(--text-secondary);
            max-width: 520px;
            margin-top: 20px;
            margin-bottom: 0;
        }

        .hero-actions {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 40px;
        }

        .hero-actions .btn-primary {
            padding: 0.95rem 2rem;
            border-radius: 6px;
            position: relative;
            overflow: hidden;
        }

        .hero-actions .btn-primary::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
            transition: none;
        }

        .hero-actions .btn-primary:hover::after {
            animation: heroShimmer 0.5s forwards;
        }

        @keyframes heroShimmer {
            from { left: -100%; }
            to { left: 150%; }
        }

        .hero-actions .btn-secondary {
            padding: 0.95rem 2rem;
            border-radius: 6px;
            border: 1px solid rgba(59, 130, 246, 0.3);
            background: transparent;
            transition: all 0.3s ease;
        }

        .hero-actions .btn-secondary:hover {
            border-color: rgba(59, 130, 246, 0.7);
            background: rgba(59, 130, 246, 0.08);
        }

        @media (max-width: 767px) {
            .hero-content { text-align: center; }
            .hero-heading { margin: 0 auto; }
            .hero-subtitle { margin: 20px auto 0; }
            .hero-actions { flex-direction: column; width: 100%; }
            .hero-actions .btn { width: 100%; }
            .hero-visuals { display: none !important; }
        }

        /* ── Visuals column ──────────────────────────────── */
        .hero-visuals {
            display: flex;
            flex-direction: column;
            gap: 20px;
            opacity: 0;
            transform: translateX(30px);
        }

        .hero-terminal {
            width: 100%;
            max-width: 460px;
            background: rgba(10, 12, 18, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            animation: heroFloat1 7s ease-in-out infinite;
        }

        @keyframes heroFloat1 {
            0%, 100% { transform: translateY(0px) rotate(-1deg); }
            50% { transform: translateY(-14px) rotate(-1deg); }
        }

        .term-bar {
            height: 38px;
            background: rgba(255, 255, 255, 0.03);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            padding: 0 14px;
            gap: 6px;
        }

        .term-dot { width: 10px; height: 10px; border-radius: 50%; }
        .term-dot-r { background: #FF5F57; }
        .term-dot-y { background: #FEBC2E; }
        .term-dot-g { background: #28C840; }

        .term-body {
            padding: 18px 20px;
            font-family: 'Courier New', monospace;
            font-size: 0.82rem;
            line-height: 1.9;
        }

        .code-cursor {
            display: inline-block;
            color: #3B82F6;
            animation: blink 1s step-end infinite;
        }

        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

        .hero-device {
            width: 100%;
            max-width: 460px;
            background: rgba(14, 15, 19, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            animation: heroFloat2 8s ease-in-out infinite;
            animation-delay: -3s;
        }

        @keyframes heroFloat2 {
            0%, 100% { transform: translateY(0px) rotate(0.5deg); }
            50% { transform: translateY(-10px) rotate(0.5deg); }
        }

        .dev-bar {
            height: 34px;
            background: rgba(21, 24, 33, 0.95);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            padding: 0 12px;
            gap: 8px;
        }

        .dev-dot { width: 8px; height: 8px; border-radius: 50%; }

        .dev-url {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            height: 18px;
            width: 200px;
            margin-left: 10px;
            display: flex;
            align-items: center;
            padding: 0 8px;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.3);
            font-family: 'Inter', sans-serif;
        }

        .dev-content { padding: 16px; }

        .dev-navbar {
            height: 8px;
            width: 100%;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 4px;
            margin-bottom: 12px;
        }

        .dev-line {
            height: 10px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 3px;
            margin-bottom: 8px;
        }

        .dev-btns { display: flex; gap: 8px; margin-top: 12px; }

        .dev-btn-primary {
            height: 22px;
            width: 80px;
            border-radius: 4px;
            background: rgba(59, 130, 246, 0.5);
        }

        .dev-btn-secondary {
            height: 22px;
            width: 80px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* ── Background Elements ─────────────────────────── */
        #hero-stars {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: none;
        }

        .hero-orb {
            position: absolute;
            pointer-events: none;
            z-index: 1;
            border-radius: 50%;
            animation: heroOrbDrift 20s ease-in-out infinite alternate;
        }

        .hero-orb-a {
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
            top: -100px;
            left: -150px;
            filter: blur(80px);
        }

        .hero-orb-b {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
            bottom: -100px;
            right: -100px;
            filter: blur(100px);
            animation-duration: 25s;
            animation-delay: -10s;
        }

        @keyframes heroOrbDrift {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(40px, 30px) scale(1.1); }
        }
    

            #pricing {
                position: relative;
                overflow: hidden;
                background-color: var(--bg-alt-color);
            }

            /* Pricing bottom-edge fade overlay */
            #pricing::after {
              content: '';
              position: absolute;
              bottom: 0;
              left: 0;
              right: 0;
              height: 200px;
              background: linear-gradient(
                to bottom,
                transparent 0%,
                #0E0F13 100%
              );
              pointer-events: none;
              z-index: 3;
            }

            /* --- Ambient Orbs --- */
            .pricing-orb {
                position: absolute;
                pointer-events: none;
                z-index: 0;
                border-radius: 50%;
                filter: blur(80px);
            }

            .orb-1 {
                width: 400px;
                height: 400px;
                background: radial-gradient(circle, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
                top: -100px;
                right: 10%;
                animation: pricingOrbFloat 20s ease-in-out infinite alternate;
            }

            .orb-2 {
                width: 350px;
                height: 350px;
                background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
                bottom: -80px;
                left: 5%;
                filter: blur(100px);
                animation: pricingOrbFloat 26s ease-in-out infinite alternate-reverse;
            }

            @keyframes pricingOrbFloat {
                0% { transform: translate(0, 0); }
                100% { transform: translate(30px, 20px); }
            }

            #pricing .container {
                position: relative;
                z-index: 1;
            }

            #pricing .section-header {
                margin-bottom: 64px;
            }

            #pricing .pricing-rows {
                display: flex;
                flex-direction: column;
                gap: 20px;
                max-width: 1000px;
                margin: 0 auto;
            }

            /* --- Card Base (Glassmorphism) --- */
            #pricing .pricing-card {
                background: rgba(255, 255, 255, 0.03);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                border: 1px solid rgba(255, 255, 255, 0.07);
                border-radius: 18px;
                position: relative;
                overflow: hidden;
                transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                            box-shadow 0.45s ease,
                            border-color 0.45s ease;
                display: grid;
                grid-template-columns: 180px 280px 1fr auto;
                align-items: center;
                gap: 32px;
                padding: 32px 40px;
            }

            #pricing .pricing-card.featured {
                background: rgba(59, 130, 246, 0.06);
                border-color: rgba(59, 130, 246, 0.25);
                box-shadow: 0 0 60px rgba(59, 130, 246, 0.08);
            }

            /* Noise Texture */
            #pricing .pricing-card::before {
                content: '';
                position: absolute;
                inset: 0;
                background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
                opacity: 0.4;
                pointer-events: none;
                z-index: 0;
                border-radius: inherit;
            }

            #pricing .pricing-card > * {
                position: relative;
                z-index: 1;
            }

            /* --- Column 1: Plan Name + Badge --- */
            #pricing .plan-col-name {
                position: relative;
                padding-left: 20px;
                border-left: 3px solid transparent;
                transition: border-color 0.4s ease;
                display: flex;
                flex-direction: column;
                justify-content: center;
                min-height: 80px;
            }

            #pricing .pricing-card.featured .plan-col-name {
                border-left-color: var(--primary-color);
            }

            #pricing .pricing-card:hover .plan-col-name {
                border-left-color: rgba(59, 130, 246, 0.5);
            }

            /* Maintain featured accent color on hover */
            #pricing .pricing-card.featured:hover .plan-col-name {
                border-left-color: var(--primary-color);
            }

            #pricing .plan-name {
                font-family: var(--font-heading);
                font-size: 1.25rem;
                font-weight: 700;
                color: var(--text-primary);
                letter-spacing: -0.02em;
                margin-bottom: 0;
            }

            #pricing .plan-badge {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                font-family: var(--font-body);
                font-size: 0.65rem;
                font-weight: 600;
                letter-spacing: 0.12em;
                text-transform: uppercase;
                color: #fff;
                background: linear-gradient(135deg, #3B82F6, #2563EB);
                border-radius: 20px;
                padding: 4px 10px;
                margin-top: 8px;
                width: fit-content;
                animation: pricingBadgePulse 2.5s ease-in-out infinite;
            }

            @keyframes pricingBadgePulse {
                0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
                50%       { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
            }

            /* --- Column 2: Price + Description --- */
            #pricing .plan-price {
                font-family: var(--font-heading);
                font-size: clamp(1.6rem, 3vw, 2.2rem);
                font-weight: 700;
                color: var(--text-primary);
                letter-spacing: -0.03em;
                margin-bottom: 8px;
                line-height: 1;
            }

            #pricing .price-prefix {
                font-size: 1rem;
                font-weight: 500;
                color: var(--text-secondary);
                vertical-align: super;
                margin-right: 3px;
            }

            #pricing .plan-desc {
                font-family: var(--font-body);
                font-size: 0.85rem;
                line-height: 1.6;
                color: var(--text-secondary);
                max-width: 240px;
                margin: 0;
            }

            /* --- Column 3: Feature List --- */
            #pricing .plan-features {
                list-style: none;
                display: flex;
                flex-direction: column;
                gap: 10px;
                padding: 0;
                margin: 0;
            }

            #pricing .plan-feature-item {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                font-family: var(--font-body);
                font-size: 0.85rem;
                color: var(--text-secondary);
                line-height: 1.4;
            }

            #pricing .featured .plan-feature-item {
                color: rgba(234, 234, 234, 0.85);
            }

            #pricing .plan-feature-item i {
                color: var(--primary-color);
                font-size: 1rem;
                flex-shrink: 0;
                margin-top: 1px;
            }

            /* --- Column 4: CTA Button --- */
            #pricing .plan-cta {
                display: inline-block;
                width: 160px;
                text-align: center;
                font-family: var(--font-heading);
                font-weight: 600;
                font-size: 0.9rem;
                padding: 12px 24px;
                border-radius: 8px;
                border: 1px solid rgba(255, 255, 255, 0.1);
                background: transparent;
                color: var(--text-primary);
                cursor: pointer;
                position: relative;
                overflow: hidden;
                transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
                text-decoration: none;
            }

            #pricing .cta-primary {
                background: var(--primary-color);
                border-color: transparent;
                color: #fff;
            }

            #pricing .plan-cta::after {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 60%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
                transform: skewX(-20deg);
                transition: left 0.5s ease;
            }

            #pricing .plan-cta:hover::after {
                left: 150%;
            }

            #pricing .plan-cta:hover {
                border-color: rgba(59, 130, 246, 0.5);
                color: var(--primary-color);
                transform: translateY(-2px);
            }

            #pricing .cta-primary:hover {
                background: var(--primary-hover);
                color: #fff;
                box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
            }

            /* --- Hover Interactions --- */
            #pricing .pricing-card:hover {
                transform: translateY(-5px) scale(1.005);
                box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1);
            }

            #pricing .featured:hover {
                box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.35);
            }

            /* --- Responsive Rules --- */
            @media (min-width: 768px) and (max-width: 1023px) {
                #pricing .pricing-card {
                    grid-template-columns: 1fr 1fr;
                    grid-template-rows: auto auto;
                    gap: 24px;
                    padding: 28px 28px;
                }
            }

            @media (max-width: 767px) {
                #pricing .pricing-card {
                    grid-template-columns: 1fr;
                    padding: 24px 20px;
                    backdrop-filter: none;
                    background: rgba(21, 24, 33, 0.95);
                }
                #pricing .plan-price { font-size: 1.8rem; }
                #pricing .plan-cta { width: 100%; }
                #pricing .plan-accent { display: none; }
            }
        

        /* ── FOOTER Scoped Styles ── */
        .site-footer {
          position: relative;
          margin: 0;
          padding: 0;
          background: transparent;
        }

        /* ── ANIMATED TOP BORDER ── */
        .footer-top-border {
          height: 1px;
          width: 100%;
          background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(59,130,246,0.15) 20%,
            rgba(59,130,246,0.6) 40%,
            rgba(147,210,255,0.8) 50%,
            rgba(59,130,246,0.6) 60%,
            rgba(59,130,246,0.15) 80%,
            transparent 100%
          );
          background-size: 200% 100%;
          animation: footerBorderFlow 4s linear infinite;
        }

        @keyframes footerBorderFlow {
          0%   { background-position: 200% center; }
          100% { background-position: -200% center; }
        }

        /* ── GLASSMORPHISM CARD ── */
        .footer-glass {
          background: rgba(255,255,255,0.02);
          backdrop-filter: blur(20px);
          -webkit-backdrop-filter: blur(20px);
          border-bottom: 1px solid rgba(255,255,255,0.04);
          position: relative;
          overflow: hidden;
        }

        /* Subtle ambient glow inside footer */
        .footer-glass::before {
          content: '';
          position: absolute;
          top: -80px; left: 50%;
          transform: translateX(-50%);
          width: 600px; height: 200px;
          background: radial-gradient(ellipse,
            rgba(59,130,246,0.06) 0%, transparent 70%);
          filter: blur(40px);
          pointer-events: none;
        }

        /* ── MAIN ROW ── */
        .footer-main-row {
          display: grid;
          grid-template-columns: 1fr auto 1fr;
          align-items: center;
          gap: 40px;
          padding: 48px 0 36px;
        }

        /* ── BRAND ── */
        .footer-logo {
          font-family: Space Grotesk, sans-serif;
          font-weight: 700;
          font-size: 1.4rem;
          letter-spacing: -0.04em;
          color: var(--text-primary);
          margin-bottom: 6px;
        }

        .footer-tagline {
          font-family: Inter, sans-serif;
          font-size: 0.78rem;
          color: var(--text-secondary);
          margin: 0;
          letter-spacing: 0.04em;
        }

        /* ── NAV LINKS ── */
        .footer-nav {
          display: flex;
          gap: 32px;
          align-items: center;
          justify-content: center;
        }

        .footer-link {
          font-family: Inter, sans-serif;
          font-size: 0.875rem;
          font-weight: 500;
          color: var(--text-secondary);
          text-decoration: none;
          cursor: pointer;
          position: relative;
          transition: color 0.25s ease;
        }

        /* Underline slide on hover */
        .footer-link::after {
          content: '';
          position: absolute;
          bottom: -3px; left: 0;
          width: 0; height: 1px;
          background: var(--primary-color);
          transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
          border-radius: 1px;
        }

        .footer-link:hover {
          color: var(--text-primary);
        }

        .footer-link:hover::after {
          width: 100%;
        }

        /* ── RIGHT: SOCIALS + EMAIL ── */
        .footer-right {
          display: flex;
          flex-direction: column;
          align-items: flex-end;
          gap: 12px;
        }

        .footer-socials {
          display: flex;
          gap: 10px;
        }

        .footer-social-btn {
          width: 36px; height: 36px;
          border-radius: 8px;
          background: rgba(255,255,255,0.04);
          border: 1px solid rgba(255,255,255,0.08);
          display: flex; align-items: center;
          justify-content: center;
          color: var(--text-secondary);
          font-size: 1.1rem;
          text-decoration: none;
          transition: background 0.25s ease,
                      border-color 0.25s ease,
                      color 0.25s ease,
                      transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
        }

        .footer-social-btn:hover {
          background: rgba(59,130,246,0.12);
          border-color: rgba(59,130,246,0.3);
          color: var(--primary-color);
          transform: translateY(-3px);
        }

        .footer-email {
          font-family: Inter, sans-serif;
          font-size: 0.8rem;
          color: var(--text-secondary);
          text-decoration: none;
          transition: color 0.25s ease;
          letter-spacing: 0.02em;
        }

        .footer-email:hover {
          color: var(--primary-color);
        }

        /* ── DIVIDER ── */
        .footer-divider {
          height: 1px;
          background: var(--border-color);
          width: 100%;
        }

        /* ── BOTTOM ROW ── */
        .footer-bottom-row {
          display: grid;
          grid-template-columns: 1fr auto 1fr;
          align-items: center;
          padding: 20px 0 28px;
          gap: 20px;
        }

        .footer-copy,
        .footer-perf {
          font-family: Inter, sans-serif;
          font-size: 0.78rem;
          color: rgba(160,160,160,0.5);
          margin: 0;
        }

        .footer-perf {
          text-align: center;
        }

        /* ── SCROLL TO TOP BUTTON ── */
        .footer-scroll-top {
          justify-self: end;
          width: 36px; height: 36px;
          border-radius: 8px;
          background: rgba(255,255,255,0.04);
          border: 1px solid rgba(255,255,255,0.08);
          color: var(--text-secondary);
          font-size: 1rem;
          cursor: pointer;
          display: flex; align-items: center;
          justify-content: center;
          flex-shrink: 0;
          transition: background 0.25s ease,
                      border-color 0.25s ease,
                      color 0.25s ease,
                      transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }

        .footer-scroll-top:hover {
          background: rgba(59,130,246,0.12);
          border-color: rgba(59,130,246,0.3);
          color: var(--primary-color);
          transform: translateY(-3px);
        }

        /* ── MOBILE ── */
        @media (max-width: 768px) {
          .footer-main-row {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 28px;
            padding: 36px 0 28px;
          }
          .footer-right {
            align-items: center;
          }
          .footer-nav {
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
          }
          .footer-bottom-row {
            display: flex;
            flex-direction: column;
            text-align: center;
            gap: 12px;
            padding: 16px 0 24px;
          }
          .footer-scroll-top {
            margin: 0 auto;
          }
        }

        @media (max-width: 480px) {
          .footer-nav { gap: 14px; }
          .footer-logo { font-size: 1.2rem; }
        }
    