/* Modern Premium CSS Stylesheet for next SEED Labs */

/* ==========================================================================
   1. Design System & Variables
   ========================================================================== */
:root {
  /* Brand Palette (Aligned with new-logo-nslabs.png) */
  --bg-primary: #03060f;
  --bg-secondary: #070b18;
  --bg-card: rgba(10, 15, 30, 0.4);
  --bg-card-hover: rgba(15, 23, 42, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  
  /* Logo Colors */
  --accent-primary: #e60082;   /* Pink/Magenta */
  --accent-secondary: #00aae6; /* Light Blue/Cyan */
  --accent-tertiary: #32508c;  /* Navy Blue */
  
  /* Gradients */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-gradient-hover: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
  --magenta-gradient: linear-gradient(135deg, var(--accent-primary) 0%, #a2005a 100%);
  --cyan-gradient: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
  
  --border-color: rgba(255, 255, 255, 0.04);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-glow-magenta: rgba(230, 0, 130, 0.25);
  --border-glow-cyan: rgba(0, 170, 230, 0.25);
  
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Dimensions & Transitions */
  --header-height-large: 340px;
  --header-height-small: 90px;
  --max-width: 1200px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Blur & Shadow */
  --glass-backdrop: blur(16px);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow-magenta: 0 0 30px rgba(230, 0, 130, 0.15);
  --shadow-glow-cyan: 0 0 30px rgba(0, 170, 230, 0.15);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-small);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient Background Mesh */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(230, 0, 130, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(0, 170, 230, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: -2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #111827;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1f2937;
}

/* ==========================================================================
   3. Buttons & Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-magenta {
  background: var(--magenta-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #03060f;
  box-shadow: 0 8px 30px rgba(0, 170, 230, 0.2);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 12px 35px rgba(230, 0, 130, 0.3);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  backdrop-filter: var(--glass-backdrop);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 70px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-title-left {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-title-left::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   4. Sticky Shrinking Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-large);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

/* Shrink header animation config for scroll timeline */
@keyframes shrink-header {
  to {
    height: var(--header-height-small);
    background: rgba(3, 6, 15, 0.8);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
  }
}

@keyframes shrink-logo {
  to {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 120px;
    }
    .logo-wrapper {
      animation: shrink-logo auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 120px;
    }
  }
}

/* JS Fallback state */
.site-header.scrolled {
  height: var(--header-height-small);
  background: rgba(3, 6, 15, 0.8);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
}

.site-header.scrolled .logo-wrapper {
  width: 60px;
  height: 60px;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  z-index: 102;
}

.logo-wrapper {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-nav:hover {
  background: var(--accent-gradient);
  color: #03060f;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 170, 230, 0.2);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  cursor: pointer;
  z-index: 102;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height-large);
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(230, 0, 130, 0.08) 0%, rgba(0, 170, 230, 0.03) 50%, transparent 100%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  animation: float-glow 20s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 30px) scale(1.1); }
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
  backdrop-filter: var(--glass-backdrop);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-primary);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 720px;
  margin-bottom: 44px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 8px;
}

.scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.8s infinite;
}

@keyframes scroll-wheel-anim {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

.scroll-arrow {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  border-right: 2px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: arrow-bounce 1.8s infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* ==========================================================================
   6. About Section
   ========================================================================== */
.about-section {
  padding: 140px 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

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

.visual-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 28px;
  padding: 2px;
  z-index: 1;
}

.visual-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  filter: blur(40px);
  opacity: 0.2;
  z-index: -1;
  border-radius: 28px;
}

.visual-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 28px;
  opacity: 0.25;
  z-index: 0;
}

.visual-inner {
  position: relative;
  background-color: #040813;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.08;
  pointer-events: none;
}

.tech-lines span {
  position: absolute;
  background: var(--text-primary);
}

.tech-lines span:nth-child(1) { top: 30%; left: 0; width: 100%; height: 1px; }
.tech-lines span:nth-child(2) { top: 70%; left: 0; width: 100%; height: 1px; }
.tech-lines span:nth-child(3) { left: 40%; top: 0; height: 100%; width: 1px; }

.company-logo-large {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logo-float 8s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 170, 230, 0.3));
}

.inverted-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.about-highlight {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 28px;
}

.about-description {
  margin-bottom: 44px;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 48px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   7. Selected Work Section (Portfolio)
   ========================================================================== */
.work-section {
  padding: 140px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.work-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.work-card:nth-child(1):hover {
  border-color: var(--border-glow-cyan);
  box-shadow: var(--shadow-premium), var(--shadow-glow-cyan);
}

.work-card:nth-child(2):hover {
  border-color: var(--border-glow-magenta);
  box-shadow: var(--shadow-premium), var(--shadow-glow-magenta);
}

.work-img-container {
  width: 100%;
  aspect-ratio: 16/10;
  background: #040813;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.work-graphic {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.work-card:hover .work-graphic {
  transform: scale(1.05);
}

/* Abstract decorations representing Software */
.software-graphic {
  background: radial-gradient(circle at center, rgba(0, 170, 230, 0.06) 0%, transparent 70%);
}

.code-lines-deco {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 60%;
}

.code-line-span {
  display: block;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.code-line-span:nth-child(1) { width: 80%; }
.code-line-span:nth-child(2) { width: 100%; }
.code-line-span:nth-child(3) { width: 60%; }

.code-line-span::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: var(--cyan-gradient);
  animation: code-slide 3s infinite;
}

.code-line-span:nth-child(2)::after {
  animation-delay: 0.5s;
}

.code-line-span:nth-child(3)::after {
  animation-delay: 1s;
}

@keyframes code-slide {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Abstract decorations representing Media */
.media-graphic {
  background: radial-gradient(circle at center, rgba(230, 0, 130, 0.06) 0%, transparent 70%);
}

.timeline-deco {
  width: 70%;
  height: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 10px;
}

.timeline-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  display: block;
}

.timeline-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  left: 20%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: timeline-move 6s ease-in-out infinite alternate;
}

@keyframes timeline-move {
  0% { left: 15%; }
  100% { left: 85%; }
}

/* Ambient glow spheres in graphics */
.glow-sphere {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: 0.35;
}

.pink-glow {
  background: var(--accent-primary);
  bottom: 20%;
  right: 20%;
}

.cyan-glow {
  background: var(--accent-secondary);
  top: 20%;
  left: 20%;
}

.work-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.work-tag.tag-pink {
  color: var(--accent-primary);
}

.work-info h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.work-info p {
  font-size: 0.98rem;
  margin-bottom: 28px;
  line-height: 1.5;
  flex-grow: 1;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.work-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-link:hover {
  color: var(--accent-secondary);
}

.work-card:nth-child(2) .work-link:hover {
  color: var(--accent-primary);
}

.work-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   8. Services Section
   ========================================================================== */
.services-section {
  padding: 140px 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.service-category-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #03060f;
}

.software-icon {
  background: var(--cyan-gradient);
  box-shadow: 0 0 20px rgba(0, 170, 230, 0.25);
}

.media-icon {
  background: var(--magenta-gradient);
  box-shadow: 0 0 20px rgba(230, 0, 130, 0.25);
}

.category-icon svg {
  width: 26px;
  height: 26px;
}

.category-header h3 {
  font-size: 1.85rem;
  font-weight: 800;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.service-category-block:nth-child(1) .card-glow {
  background: radial-gradient(circle at 100% 0%, rgba(0, 170, 230, 0.08) 0%, transparent 60%);
}

.service-category-block:nth-child(2) .card-glow {
  background: radial-gradient(circle at 100% 0%, rgba(230, 0, 130, 0.08) 0%, transparent 60%);
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.service-category-block:nth-child(1) .service-card:hover {
  border-color: var(--border-glow-cyan);
  box-shadow: var(--shadow-premium), var(--shadow-glow-cyan);
}

.service-category-block:nth-child(2) .service-card:hover {
  border-color: var(--border-glow-magenta);
  box-shadow: var(--shadow-premium), var(--shadow-glow-magenta);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-content h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.card-content p {
  font-size: 0.96rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.card-tech-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tech-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.service-card:hover .card-tech-list li {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   9. Footer Section
   ========================================================================== */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 100px 0 0;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

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

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.footer-desc {
  max-width: 340px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h6 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--text-muted);
}

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

.footer-col ul li a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright, .tech-by {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-by {
  font-family: var(--font-mono);
}

/* ==========================================================================
   10. Entry Scroll Reveal Animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .scroll-reveal {
      animation: reveal-fade-in auto linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
  }
}

@keyframes reveal-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback reveal state for browsers that do not support view timelines */
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-loaded .scroll-reveal:not(.visible):not([style*="animation-timeline"]) {
  opacity: 0;
  transform: translateY(30px);
}

/* ==========================================================================
   11. Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height-large: 90px;
  }
  
  .about-grid {
    gap: 40px;
  }
  
  .work-grid {
    gap: 28px;
  }
  
  .services-wrapper {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Layout adjustments */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .about-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .services-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  /* Mobile Menu Navigation Drawer overlay */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(3, 6, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding: 120px 40px;
    transition: var(--transition-smooth);
    z-index: 101;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .nav-link {
    font-size: 1.15rem;
  }
  
  .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
}
