/* ==========================================================================
   ATHUL RAJ — PORTFOLIO DESIGN SYSTEM
   Dark-first, high-precision aesthetic inspired by modern developer portfolios
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-base: #06070a;
  --bg-surface: #0b0e14;
  --bg-card: rgba(15, 20, 31, 0.72);
  --bg-card-hover: rgba(22, 29, 46, 0.88);
  --bg-glass: rgba(11, 14, 20, 0.75);
  --bg-elevated: #151a26;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(56, 189, 248, 0.35);

  /* Accents & Brand */
  --cyan-400: #38bdf8;
  --cyan-500: #0ea5e9;
  --blue-500: #3b82f6;
  --indigo-500: #6366f1;
  --purple-500: #a855f7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-400: #fbbf24;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #06070a;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #6366f1 55%, #a855f7 100%);
  --gradient-accent-text: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 40%, #818cf8 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.005) 100%);
  --gradient-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --glow-cyan: 0 0 35px rgba(56, 189, 248, 0.22);
  --glow-indigo: 0 0 45px rgba(99, 102, 241, 0.25);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  font-size: 16px;
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #1e2638;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: #2e3a54;
}

/* ==========================================================================
   CUSTOM CURSOR (Desktop only)
   ========================================================================== */

.custom-cursor-dot,
.custom-cursor-outline {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.custom-cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}

.custom-cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  transition: transform 0.12s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.custom-cursor-outline.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.08);
}

@media (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-outline {
    display: none !important;
  }
}

/* ==========================================================================
   BACKGROUND CANVAS & AMBIENT GLOW
   ========================================================================== */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  pointer-events: none;
  will-change: transform;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  animation: floatGlow1 22s ease-in-out infinite alternate;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
  animation: floatGlow2 26s ease-in-out infinite alternate;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
  top: 45%;
  right: 15%;
  animation: floatGlow3 28s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 90px) scale(1.15); }
  100% { transform: translate(-140px, 30px) scale(0.95); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(100px, -70px) scale(1.1); }
  100% { transform: translate(160px, -20px) scale(1.0); }
}

@keyframes floatGlow3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-70px, -110px); }
}

/* Scroll progress bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px var(--cyan-400);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
}

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

.section {
  padding-top: 110px;
  padding-bottom: 110px;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Gradient text utility */
.text-gradient {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  outline: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: var(--bg-base);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--glow-cyan);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-400);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  height: 70px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-symbol {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #161e2e 0%, #0d121c 100%);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan-400);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-symbol::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0.2;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-role {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Desktop Nav Menu */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 4px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--cyan-400);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan-400);
}

/* Nav Actions Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  z-index: 1002;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.96);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
}

.mobile-nav-overlay.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan-400);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* Status Indicator */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--emerald-400);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--emerald-400);
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hero Content */
.hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 22px;
}

.hero-subtext {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero Stats Bar */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-num {
  font-family: var(--font-sans);
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-num span {
  color: var(--cyan-400);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Visual & Floating Cards */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame-glow {
  position: relative;
  width: 360px;
  height: 440px;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.3) 50%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--glow-cyan);
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  position: relative;
  background: #0a0d14;
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(1.02);
  transition: transform var(--transition-slow);
}

.portrait-inner:hover img {
  transform: scale(1.04);
}

.portrait-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(6, 7, 10, 0.85) 100%);
  pointer-events: none;
}

/* Floating micro cards */
.floating-card {
  position: absolute;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(14px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 30px;
  left: -20px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 40px;
  right: -25px;
  animation-delay: 2.5s;
}

.floating-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-400);
}

.floating-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-500);
}

.floating-text-primary {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.floating-text-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
    gap: 24px;
  }
  .floating-card-1 {
    left: 10px;
  }
  .floating-card-2 {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .portrait-frame-glow {
    width: 290px;
    height: 370px;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-intro-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.6;
}

.about-body-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(18, 24, 38, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.credential-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* About Side Visual (Interactive Spec Card) */
.about-card-display {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cyan-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-window-controls {
  display: flex;
  gap: 6px;
}

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

.spec-dot.red { background: #ef4444; }
.spec-dot.yellow { background: #f59e0b; }
.spec-dot.green { background: #10b981; }

.about-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.feature-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition-fast);
}

.feature-mini-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cyan-400);
  transform: translateY(-2px);
}

.feature-mini-card.full-width {
  grid-column: span 2;
}

.feature-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-mini-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.feature-mini-card p {
  font-size: 0.78125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-quote-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   SKILLS & EXPERTISE SECTION
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-category-card:nth-child(2) .skill-card-icon {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-500);
}

.skill-category-card:nth-child(3) .skill-card-icon {
  background: rgba(52, 211, 153, 0.12);
  color: var(--emerald-400);
}

.skill-category-card:nth-child(4) .skill-card-icon {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-500);
}

.skill-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-category-card:hover .skill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(4px);
}

.skill-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
}

/* Tech Marquee / Ticker */
.tech-marquee-wrapper {
  margin-top: 60px;
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  background: rgba(14, 18, 28, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base) 0%, transparent 100%);
}

.tech-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-base) 0%, transparent 100%);
}

.tech-marquee {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

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

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.tech-badge svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
}

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

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   SERVICES SECTION ("What I Do")
   ========================================================================== */

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

.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 1;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}

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

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.service-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.service-action-btn svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-action-btn {
  color: var(--cyan-400);
  gap: 12px;
}

.service-card:hover .service-action-btn svg {
  transform: translateX(4px);
}

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

/* ==========================================================================
   SELECTED WORK (PROJECTS / PORTFOLIO)
   ========================================================================== */

.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  color: var(--bg-base);
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.project-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d121c;
}

.project-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail-wrapper img {
  transform: scale(1.05);
}

.project-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-medium);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.project-metric-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-400);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.project-details {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.view-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan-400);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.view-project-btn:hover {
  color: #ffffff;
  gap: 12px;
}

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

/* ==========================================================================
   PROCESS SECTION ("How I Work")
   ========================================================================== */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.4));
  z-index: 0;
}

.process-step-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.process-step-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.step-number-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--cyan-400);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-timeline::before {
    top: 30px;
    bottom: 30px;
    left: 47px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan-400), var(--indigo-500));
  }
  .process-step-card {
    padding-left: 80px;
    position: relative;
  }
  .step-number-bubble {
    position: absolute;
    left: 24px;
    top: 28px;
  }
}

/* ==========================================================================
   EXPERIENCE / EDUCATION SECTION
   ========================================================================== */

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

.exp-column {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
}

.exp-column-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-column-title svg {
  color: var(--cyan-400);
}

.exp-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.exp-timeline-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-medium);
}

.exp-timeline-item {
  position: relative;
  padding-left: 34px;
}

.exp-dot {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--cyan-400);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.exp-timeline-item.active .exp-dot {
  background: var(--cyan-400);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.exp-item-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.exp-institution {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.exp-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* ==========================================================================
   TESTIMONIALS SECTION ("What People Say")
   ========================================================================== */

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--amber-400);
  margin-bottom: 18px;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--cyan-400);
}

.author-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.author-info p {
  font-size: 0.78125rem;
  color: var(--text-muted);
}

.testimonial-notice {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

/* ==========================================================================
   INTERACTIVE PROJECT ESTIMATOR WIDGET (Bonus Interactive Tool)
   ========================================================================== */

.estimator-box {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.8), rgba(20, 26, 42, 0.6));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.estimator-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.estimator-options-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.estimator-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.estimator-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.estimator-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.estimator-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.estimator-result-card {
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.result-label {
  color: var(--text-muted);
}

.result-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan-400);
}

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

/* ==========================================================================
   CONTACT SECTION ("Have a project in mind?")
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-hero-text h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-hero-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.contact-quick-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan-400);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-text {
  display: flex;
  flex-direction: column;
}

.contact-card-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-card-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Social links row */
.social-links-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Contact Form */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan-400);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.form-select {
  cursor: pointer;
  background-color: #0d121c;
}

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

.form-feedback {
  font-size: 0.78125rem;
  color: #ef4444;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #ef4444;
}

.form-group.has-error .form-feedback {
  display: block;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-group-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border-subtle);
  background: #040507;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-clock-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: #ffffff;
  border-color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODALS (Project Case Study Modal & Toast Notifications)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  padding: 36px;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cyan-400);
  margin-bottom: 10px;
  display: inline-block;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.modal-metrics-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.modal-metric-item {
  display: flex;
  flex-direction: column;
}

.modal-metric-value {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.modal-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-tools-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 32px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--cyan-400);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   ANIMATIONS & REVEAL EFFECTS
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
