/* -------------------------------------------------------------------------
   Nijeesh Hareendranath Portfolio - CSS Stylesheet
   Theme: Cinematic Dark / Cosmic Creative
   ------------------------------------------------------------------------- */

/* Color Design System & Variables */
:root {
  --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Color Palette - Rich HSL Dark System */
  --bg-darkest: hsl(245, 38%, 6%);      /* Deep cosmic obsidian */
  --bg-darker: hsl(245, 30%, 10%);      /* Slate-purple panel bg */
  --bg-dark: hsl(245, 25%, 14%);        /* Lighter slate-purple */
  
  --primary: hsl(263, 90%, 66%);        /* Radiant Violet */
  --primary-glow: hsla(263, 90%, 66%, 0.15);
  --accent: hsl(188, 95%, 43%);         /* Electric Cyan */
  --accent-glow: hsla(188, 95%, 43%, 0.15);

  --text-white: hsl(0, 0%, 98%);
  --text-bright: hsl(220, 14%, 90%);
  --text-muted: hsl(220, 10%, 65%);
  --text-dim: hsl(220, 10%, 45%);

  /* Borders & Shadows */
  --border-white: hsla(0, 0%, 100%, 0.05);
  --border-glow: hsla(263, 90%, 66%, 0.1);
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px hsla(263, 90%, 66%, 0.2);

  /* Layout and Transitions */
  --header-height: 88px;
  --header-height-shrink: 68px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s ease;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;

  /* Theme override variables */
  --panel-bg: rgba(20, 18, 38, 0.55);
  --panel-border: var(--border-white);
  --header-bg: rgba(10, 9, 21, 0.4);
  --header-bg-shrink: rgba(10, 9, 21, 0.88);
  --badge-bg: rgba(10, 9, 21, 0.85);
  --input-bg: rgba(255, 255, 255, 0.02);
  --input-bg-focus: rgba(255, 255, 255, 0.04);
  --copy-item-bg: rgba(255, 255, 255, 0.02);
  --copy-item-hover-bg: rgba(255, 255, 255, 0.04);
  --timeline-line-color: linear-gradient(180deg, var(--primary), var(--accent) 80%, transparent);
  --mobile-menu-bg: rgba(10, 9, 21, 0.95);

  color-scheme: dark;
}

/* System preferences override (Light Preference) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-darkest: hsl(220, 30%, 96%);      
    --bg-darker: hsl(220, 20%, 91%);       
    --bg-dark: hsl(220, 20%, 84%);
    
    --primary: hsl(263, 80%, 55%);         
    --primary-glow: hsla(263, 80%, 55%, 0.08);
    --accent: hsl(188, 85%, 35%);          
    --accent-glow: hsla(188, 85%, 35%, 0.08);

    --text-white: hsl(220, 40%, 12%);      
    --text-bright: hsl(220, 35%, 18%);
    --text-muted: hsl(220, 15%, 38%);      
    --text-dim: hsl(220, 10%, 50%);

    --border-white: hsla(0, 0%, 0%, 0.08);
    --border-glow: hsla(263, 80%, 55%, 0.15);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px hsla(263, 80%, 55%, 0.12);

    --panel-bg: rgba(255, 255, 255, 0.65);
    --panel-border: rgba(0, 0, 0, 0.06);
    --header-bg: rgba(248, 250, 252, 0.4);
    --header-bg-shrink: rgba(248, 250, 252, 0.88);
    --badge-bg: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(0, 0, 0, 0.02);
    --input-bg-focus: rgba(0, 0, 0, 0.04);
    --copy-item-bg: rgba(0, 0, 0, 0.02);
    --copy-item-hover-bg: rgba(0, 0, 0, 0.04);
    --timeline-line-color: linear-gradient(180deg, var(--primary), var(--accent) 80%, transparent);
    --mobile-menu-bg: rgba(248, 250, 252, 0.96);

    color-scheme: light;
  }
}

/* Explicit Light Theme Class Override */
.light-theme {
  --bg-darkest: hsl(220, 30%, 96%);      
  --bg-darker: hsl(220, 20%, 91%);       
  --bg-dark: hsl(220, 20%, 84%);
  
  --primary: hsl(263, 80%, 55%);         
  --primary-glow: hsla(263, 80%, 55%, 0.08);
  --accent: hsl(188, 85%, 35%);          
  --accent-glow: hsla(188, 85%, 35%, 0.08);

  --text-white: hsl(220, 40%, 12%);      
  --text-bright: hsl(220, 35%, 18%);
  --text-muted: hsl(220, 15%, 38%);      
  --text-dim: hsl(220, 10%, 50%);

  --border-white: hsla(0, 0%, 0%, 0.08);
  --border-glow: hsla(263, 80%, 55%, 0.15);
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px hsla(263, 80%, 55%, 0.12);

  --panel-bg: rgba(255, 255, 255, 0.65);
  --panel-border: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(248, 250, 252, 0.4);
  --header-bg-shrink: rgba(248, 250, 252, 0.88);
  --badge-bg: rgba(255, 255, 255, 0.85);
  --input-bg: rgba(0, 0, 0, 0.02);
  --input-bg-focus: rgba(0, 0, 0, 0.04);
  --copy-item-bg: rgba(0, 0, 0, 0.02);
  --copy-item-hover-bg: rgba(0, 0, 0, 0.04);
  --timeline-line-color: linear-gradient(180deg, var(--primary), var(--accent) 80%, transparent);
  --mobile-menu-bg: rgba(248, 250, 252, 0.96);

  color-scheme: light;
}

/* Explicit Dark Theme Class Override */
.dark-theme {
  --bg-darkest: hsl(245, 38%, 6%);      
  --bg-darker: hsl(245, 30%, 10%);      
  --bg-dark: hsl(245, 25%, 14%);        
  
  --primary: hsl(263, 90%, 66%);        
  --primary-glow: hsla(263, 90%, 66%, 0.15);
  --accent: hsl(188, 95%, 43%);         
  --accent-glow: hsla(188, 95%, 43%, 0.15);

  --text-white: hsl(0, 0%, 98%);
  --text-bright: hsl(220, 14%, 90%);
  --text-muted: hsl(220, 10%, 65%);
  --text-dim: hsl(220, 10%, 45%);

  --border-white: hsla(0, 0%, 100%, 0.05);
  --border-glow: hsla(263, 90%, 66%, 0.1);
  --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px hsla(263, 90%, 66%, 0.2);

  --panel-bg: rgba(20, 18, 38, 0.55);
  --panel-border: var(--border-white);
  --header-bg: rgba(10, 9, 21, 0.4);
  --header-bg-shrink: rgba(10, 9, 21, 0.88);
  --badge-bg: rgba(10, 9, 21, 0.85);
  --input-bg: rgba(255, 255, 255, 0.02);
  --input-bg-focus: rgba(255, 255, 255, 0.04);
  --copy-item-bg: rgba(255, 255, 255, 0.02);
  --copy-item-hover-bg: rgba(255, 255, 255, 0.04);
  --timeline-line-color: linear-gradient(180deg, var(--primary), var(--accent) 80%, transparent);
  --mobile-menu-bg: rgba(10, 9, 21, 0.95);

  color-scheme: dark;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-bright);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-dark);
  border: 2px solid var(--bg-darkest);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Base Typographical Alignments */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.text-white { color: var(--text-white); }

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
  transform-origin: 0% 50%;
  transform: scaleX(0); /* Default when unsupported */
}

/* Native CSS Scroll-Driven Progress Bar */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes grow-progress {
      to { transform: scaleX(1); }
    }
    .scroll-progress-bar {
      animation: grow-progress auto linear both;
      animation-timeline: scroll(block root);
    }
  }
}

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

/* Header & Navigation Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-white);
  z-index: 1000;
  transition: var(--transition-smooth);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-first {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--text-white) 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-last {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition-quick);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.contact-btn-nav {
  background: linear-gradient(135deg, var(--primary), hsl(263, 80%, 55%));
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.contact-btn-nav::after {
  display: none !important;
}
.contact-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Mobile Navigation Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 10px;
  transition: var(--transition-quick);
}

/* Native CSS Scroll-Driven Shrinking Header */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes shrink-header {
      to {
        height: var(--header-height-shrink);
        background: var(--header-bg-shrink);
        border-bottom: 1px solid var(--border-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }
    }
    .site-header {
      animation: shrink-header auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 80px;
    }
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background Ambient Orbs */
.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}
.light-theme .blob {
  opacity: 0.08;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: light) {
  :root:not(.dark-theme) .blob {
    opacity: 0.08;
    mix-blend-mode: multiply;
  }
}
.blob-purple {
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  top: -50px;
  right: 10%;
  animation: float-blob-1 12s infinite alternate ease-in-out;
}
.blob-cyan {
  width: 500px;
  height: 500px;
  background-color: var(--accent);
  bottom: -100px;
  left: 5%;
  animation: float-blob-2 15s infinite alternate ease-in-out;
}

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

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

.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--text-white) 20%, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  max-width: 650px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Button UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-quick);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(263, 85%, 60%));
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover .icon-arrow {
  transform: translateX(4px);
}
.icon-arrow {
  width: 18px;
  height: 18px;
  transition: var(--transition-quick);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-white);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-white);
  transform: translateY(-2px);
}
.btn-full {
  width: 100%;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 4px;
  animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Sections Header */
.section-header {
  margin-bottom: 50px;
  position: relative;
}
.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-header .subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 8px;
}
.section-header .section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
}
.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  margin-top: 16px;
}
.title-line.center {
  margin-left: auto;
  margin-right: auto;
}

/* Sections General */
section {
  padding: 100px 0;
  position: relative;
}

/* Profile / About Section */
.about-section {
  background-color: var(--bg-darkest);
}
.about-content-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.about-image-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border-white);
  pointer-events: none;
  transition: var(--transition-smooth);
}
.about-image-card:hover::after {
  border-color: var(--primary-glow);
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.15);
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.about-image-card:hover .profile-photo {
  transform: scale(1.05);
}
.about-text-card {
  padding: 40px;
}
.about-text-card .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-bright);
  margin-bottom: 20px;
}
.about-text-card p:not(.lead-text) {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Competencies Section */
.competencies-section {
  background-color: var(--bg-darkest);
}
.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}
.competency-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.competency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
}
.competency-card:hover::before {
  opacity: 1;
}
.competency-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 15px 40px -10px rgba(139, 92, 246, 0.2);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: var(--transition-quick);
}
.competency-card:hover .card-icon {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 0 15px var(--primary);
}
.competency-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  color: var(--text-white);
}
.competency-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Projects Showcase Section */
.projects-section {
  background-color: var(--bg-darkest);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 15px 40px -10px rgba(6, 182, 212, 0.2);
}
.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img {
  transform: scale(1.05);
}
.project-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--badge-bg);
  border: 1px solid var(--border-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-white);
}
.project-info p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.additional-projects {
  padding: 40px;
}
.additional-projects h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}
.projects-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}
.item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}
.project-list-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 2px;
}
.item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Experience Timeline Section */
.experience-section {
  background-color: var(--bg-darkest);
  overflow: hidden;
}
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  justify-content: flex-end;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-darkest);
  border: 3px solid var(--primary);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition-quick);
}
.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.timeline-item:hover .timeline-dot {
  background-color: var(--text-white);
  transform: translateX(-50%) scale(1.2);
}

.timeline-content {
  width: 45%;
  padding: 30px;
  position: relative;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
}

.timeline-header {
  margin-bottom: 16px;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}
.timeline-item:nth-child(odd) .timeline-date {
  color: var(--primary);
}
.timeline-header h3 {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 2px;
}
.timeline-header h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.timeline-details {
  list-style: none;
}
.timeline-details li {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.timeline-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.timeline-item:nth-child(odd) .timeline-details li::before {
  color: var(--primary);
}

/* Native CSS Scroll-Driven Timeline Revelation */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes timeline-reveal-left {
      from {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
      }
    }
    @keyframes timeline-reveal-right {
      from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
      }
    }

    .timeline-item:nth-child(odd) .timeline-content {
      animation: timeline-reveal-right auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 25%;
    }

    .timeline-item:nth-child(even) .timeline-content {
      animation: timeline-reveal-left auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 25%;
    }
  }
}

/* Additional Info Section */
.additional-info-section {
  padding-top: 50px;
  background-color: var(--bg-darkest);
}
.info-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.info-card {
  padding: 40px;
  position: relative;
}
.card-icon-round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-white);
}

.education-item h4 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 6px;
}
.education-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.languages-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-tag {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-quick);
}
.lang-tag:hover {
  background: var(--accent);
  color: var(--bg-darkest);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-darkest);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.contact-details h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 16px;
}
.contact-details p {
  font-size: 1rem;
  margin-bottom: 36px;
}

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

.contact-item-link {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--copy-item-bg);
  border: 1px solid var(--border-white);
  border-radius: var(--border-radius-md);
  transition: var(--transition-quick);
  position: relative;
}
.contact-item-link.interactive-copy {
  cursor: pointer;
}
.contact-item-link:hover {
  background: var(--copy-item-hover-bg);
  border-color: var(--border-white);
}
.contact-item-link.interactive-copy:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
}
.contact-item-link:nth-child(1) .icon-box {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.15);
}
.icon-box svg {
  width: 20px;
  height: 20px;
}
.contact-item-link .details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.contact-item-link .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.contact-item-link .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-quick);
  z-index: 2;
}
.copy-btn svg {
  width: 18px;
  height: 18px;
}
.contact-item-link:hover .copy-btn {
  color: var(--text-muted);
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white) !important;
}

/* Contact Form CSS */
.contact-form {
  padding: 40px;
}
.contact-form h3 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-white);
  border-radius: var(--border-radius-md);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-quick);
}
.form-group input:focus, .form-group textarea:focus {
  background: var(--input-bg-focus);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
.form-group input.error, .form-group textarea.error {
  border-color: hsl(0, 84%, 60%) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-dim);
}

/* Phone field: 2-column row */
.form-row-phone {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  align-items: start;
}
.form-col {
  display: flex;
  flex-direction: column;
}
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--border-white);
  border-radius: var(--border-radius-md);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-quick);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-group select:focus {
  background-color: var(--input-bg-focus);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
.form-group select option {
  background: var(--bg-secondary, #1a1a2e);
  color: var(--text-white);
}

/* WhatsApp link */
.whatsapp-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-quick);
}
.whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.08);
  transform: translateX(4px);
}
.whatsapp-icon-box {
  background: rgba(37, 211, 102, 0.15) !important;
  color: #25D366 !important;
}
.whatsapp-link .label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.whatsapp-link .value {
  color: #25D366;
  font-weight: 600;
}

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

.icon-send {
  width: 18px;
  height: 18px;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: hsl(150, 84%, 47%);
  text-align: center;
}

/* Footer Section */
.site-footer {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background-color: var(--bg-darkest);
}
.site-footer p {
  font-size: 0.9rem;
}
.footer-meta {
  margin-top: 8px;
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-image-card {
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }
  .info-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .timeline-line {
    left: 24px;
  }
  .timeline-dot {
    left: 24px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }
  .timeline-content {
    width: calc(100% - 48px);
  }
  
  /* Fallback animations for mobile triggers */
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      .timeline-item:nth-child(odd) .timeline-content,
      .timeline-item:nth-child(even) .timeline-content {
        animation: timeline-reveal-right auto linear backwards !important;
        animation-timeline: view() !important;
        animation-range: entry 10% cover 25% !important;
      }
    }
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-white);
    padding: 40px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 8px 0;
    text-align: center;
  }
  .contact-btn-nav {
    text-align: center;
    border-radius: var(--border-radius-md);
  }
  
  #menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 24px;
  }
  
  .competency-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blob {
    animation: none !important;
  }
  .wheel {
    animation: none !important;
  }
  .site-header {
    animation: none !important;
  }
  .timeline-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress-bar {
    animation: none !important;
  }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
  background: var(--copy-item-bg);
  border: 1px solid var(--border-white);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-quick);
  padding: 0;
  margin-left: 16px;
  z-index: 1002;
  box-shadow: var(--shadow-glow);
}
.theme-toggle-btn:hover {
  background: var(--copy-item-hover-bg);
  border-color: var(--text-white);
  transform: scale(1.05);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-quick);
}
.theme-toggle-btn .sun-icon {
  color: #FBBF24; /* Sun Gold color */
}
.theme-toggle-btn .moon-icon {
  color: #60A5FA; /* Moon Soft Blue color */
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    margin-left: auto;
    margin-right: 16px;
  }
}

/* Logo Carousel Styles */
.clients-section {
  background-color: var(--bg-darkest);
  padding: 80px 0;
  overflow: hidden;
}
.logo-carousel-container {
  overflow: hidden;
  padding: 20px 0;
  width: 100%;
  position: relative;
}
.logo-carousel-container::before,
.logo-carousel-container::after {
  content: "";
  height: 100%;
  width: 150px;
  position: absolute;
  top: 0;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-darkest) 0%, transparent 100%);
}
.logo-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-darkest) 0%, transparent 100%);
}
.logo-carousel-track {
  display: flex;
  width: calc(200px * 34);
  animation: scroll-marquee 45s linear infinite;
  gap: 50px;
}
.logo-carousel-container:hover .logo-carousel-track {
  animation-play-state: paused;
}
.logo-slide {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-logo-img {
  width: 150px;
  height: 150px;
  opacity: 0.45;
  transition: var(--transition-smooth);
  object-fit: contain;
  border-radius: var(--border-radius-md);
}
.client-logo-img:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 17));
  }
}

@media (max-width: 768px) {
  .logo-slide {
    width: 120px;
    height: 120px;
  }
  .client-logo-img {
    width: 120px;
    height: 120px;
  }
  .logo-carousel-track {
    width: calc(170px * 34);
    gap: 50px;
    animation: scroll-marquee-mobile 45s linear infinite;
  }
  
  @keyframes scroll-marquee-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-170px * 17));
    }
  }
}
