/* ==========================================================================
   GOUTHAMAN K G - PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Material Design 3 + 3D Glassmorphism + Fluid Animation Architecture
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Dark Mode Palette (Default) */
  --bg-primary: #090d16;
  --bg-secondary: #0e1424;
  --bg-card: rgba(18, 26, 44, 0.72);
  --bg-card-hover: rgba(26, 36, 60, 0.85);
  --bg-glass: rgba(14, 20, 36, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);

  /* Primary Accent Tones */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-rgb: 99, 102, 241;
  
  --secondary: #06b6d4;
  --secondary-rgb: 6, 182, 212;

  --accent-violet: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #090d16;

  /* Elevation Shadows (Material 3 Tiers) */
  --elevation-1: 0 4px 20px -2px rgba(0, 0, 0, 0.35), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
  --elevation-2: 0 10px 30px -4px rgba(0, 0, 0, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
  --elevation-3: 0 20px 40px -6px rgba(0, 0, 0, 0.55), 0 8px 16px -4px rgba(0, 0, 0, 0.35);
  --elevation-glow: 0 0 35px -5px rgba(99, 102, 241, 0.3), 0 10px 25px -5px rgba(6, 182, 212, 0.2);
  --elevation-gold: 0 0 30px -5px rgba(245, 158, 11, 0.3);

  /* Font Families */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Timing Curves */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Navigation Header Height */
  --nav-height: 76px;
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.78);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);

  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --primary-rgb: 79, 70, 229;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-inverse: #f8fafc;

  --elevation-1: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --elevation-2: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --elevation-3: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --elevation-glow: 0 10px 30px -5px rgba(99, 102, 241, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-light), var(--secondary));
}

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

ul {
  list-style: none;
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Container Utility --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section-padding {
  padding-block: 100px;
  position: relative;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent-violet));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
  box-shadow: 0 0 12px var(--primary);
  transition: transform 0.05s ease-out;
}

/* --- Custom Cursor Follower (Desktop Only) --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background-color 0.25s;
}

body.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background: var(--primary-light);
}

body.cursor-hover .cursor-outline {
  width: 54px;
  height: 54px;
  border-color: var(--secondary);
  background: rgba(6, 182, 212, 0.08);
}

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

/* --- Ambient Glowing Orbs & WebGL Canvas --- */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#three-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  transition: opacity var(--transition-normal);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-1 {
  top: -15%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-2 {
  top: 40%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  animation: floatOrb 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  bottom: -15%;
  left: 30%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  animation: floatOrb 32s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* --- Material Design 3 Navigation Header --- */
.md-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 900;
  padding-inline: 20px;
  transition: all var(--transition-normal);
}

.header-container {
  max-width: 1180px;
  margin-inline: auto;
  height: var(--nav-height);
  padding: 8px 16px 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--elevation-1);
  transition: all var(--transition-normal);
}

.md-header.scrolled .header-container {
  height: 66px;
  background: rgba(14, 20, 36, 0.88);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--elevation-2), 0 0 20px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .md-header.scrolled .header-container {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--elevation-2);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo:hover .logo-box {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.6);
}

.logo-text {
  color: var(--text-main);
}

.logo-accent {
  color: var(--secondary);
}

/* Desktop Navigation */
.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
}

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

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  z-index: 2;
}

.nav-icon {
  font-size: 1.15rem;
  opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-pill-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  pointer-events: none;
  transition: all var(--transition-normal);
  opacity: 0;
  z-index: 1;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.icon-btn:hover {
  color: var(--text-main);
  background: var(--border-subtle);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
}

/* --- Material Design 3 Buttons & Ripples --- */
.md-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.md-btn:active {
  transform: scale(0.97);
}

.md-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.md-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.md-btn-outlined {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.md-btn-outlined:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.md-btn-tonal {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.md-btn-tonal:hover {
  background: rgba(99, 102, 241, 0.24);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Material Click Ripple Effect */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnimation 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--transition-normal);
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  padding-left: 20px;
}

.drawer-footer {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.social-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.social-chip:hover {
  color: var(--text-main);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.15);
}

/* --- Section Headers & Common Styles --- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: 100%;
}

.status-badge-wrapper {
  margin-bottom: 20px;
}

.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 600;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--secondary);
  margin-bottom: 24px;
}

.role-prefix {
  color: var(--text-muted);
}

.dynamic-typing {
  color: #38bdf8;
  font-weight: 600;
}

.cursor-blink {
  animation: blink 0.9s infinite;
  color: var(--primary-light);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Core Engineering Stack Strip */
.hero-tech-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  width: 100%;
}

.tech-strip-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.tech-strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(14, 20, 36, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.tech-strip-badge i,
.tech-strip-badge .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--secondary);
}

.tech-strip-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.16);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* --- Hero Developer Window Frame --- */
.hero-illustration-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.hero-illustration-wrapper::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.28) 0%, rgba(6, 182, 212, 0.16) 40%, transparent 70%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
}

.hero-window-frame {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-xl);
  background: rgba(14, 20, 36, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--border-glow);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(99, 102, 241, 0.35);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: heroWindowFloat 6s ease-in-out infinite alternate;
}

.hero-window-frame:hover {
  box-shadow: 0 30px 65px -12px rgba(0, 0, 0, 0.85), 0 0 45px rgba(6, 182, 212, 0.45);
}

@keyframes heroWindowFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(18, 26, 44, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.dot-amber { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.dot-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

.window-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.window-icon {
  font-size: 1rem;
  color: var(--secondary);
}

.window-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLiveDot 2s infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.window-body {
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

.hero-gif-art {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-window-frame:hover .hero-gif-art {
  transform: scale(1.02);
}

.tilt-3d-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* --- HERO 3D GEOMETRIC TECH CHAMBER --- */
.hero-3d-chamber {
  width: 440px;
  height: 440px;
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(9, 13, 22, 0.9) 75%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: visible;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Central 3D Rotating Tech Cube */
.hero-3d-cube {
  position: relative;
  width: 130px;
  height: 130px;
  transform-style: preserve-3d;
  animation: rotateTechCube 20s linear infinite;
}

@keyframes rotateTechCube {
  0% { transform: rotateX(-20deg) rotateY(0deg); }
  50% { transform: rotateX(25deg) rotateY(180deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.hero-3d-chamber:hover .hero-3d-cube {
  animation-play-state: paused;
}

.cube-face {
  position: absolute;
  width: 130px;
  height: 130px;
  background: rgba(14, 20, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  color: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cube-face:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.45) inset;
}

.cube-icon {
  font-size: 2.2rem;
  color: var(--secondary);
}

.cube-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

/* Cube 3D Transforms (65px = half of 130px) */
.cube-front  { transform: translateZ(65px); }
.cube-back   { transform: rotateY(180deg) translateZ(65px); }
.cube-top    { transform: rotateX(90deg) translateZ(65px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(65px); }
.cube-left   { transform: rotateY(-90deg) translateZ(65px); }
.cube-right  { transform: rotateY(90deg) translateZ(65px); }

/* Orbital 3D Rings */
.stage-orbital-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform-style: preserve-3d;
}

.ring-outer {
  width: 290px;
  height: 290px;
  border: 1.5px dashed rgba(6, 182, 212, 0.35);
  animation: spinRingOuter 24s linear infinite;
  transform: rotateX(65deg) rotateY(15deg);
}

.ring-inner {
  width: 220px;
  height: 220px;
  border: 1.5px dashed rgba(139, 92, 246, 0.4);
  animation: spinRingInner 16s linear infinite reverse;
  transform: rotateX(75deg) rotateY(-20deg);
}

@keyframes spinRingOuter {
  from { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  to { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes spinRingInner {
  from { transform: rotateX(75deg) rotateY(-20deg) rotateZ(0deg); }
  to { transform: rotateX(75deg) rotateY(-20deg) rotateZ(360deg); }
}

/* Floating 3D Satellites */
.hero-satellite {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(14, 20, 36, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  pointer-events: auto;
  transition: transform 0.3s ease;
}

.hero-satellite span:first-child {
  font-size: 1.15rem;
  color: var(--secondary);
}

.sat-1 {
  top: 14%;
  right: 8%;
  border-color: rgba(6, 182, 212, 0.3);
  animation: floatSat1 7s ease-in-out infinite;
}

.sat-2 {
  bottom: 14%;
  left: 8%;
  border-color: rgba(139, 92, 246, 0.3);
  animation: floatSat2 8s ease-in-out infinite 0.5s;
}

.sat-3 {
  top: 48%;
  left: -15px;
  border-color: rgba(16, 185, 129, 0.3);
  animation: floatSat3 9s ease-in-out infinite 1s;
}

@keyframes floatSat1 {
  0%, 100% { transform: translateY(0) translateZ(30px); }
  50% { transform: translateY(-10px) translateZ(40px); }
}

@keyframes floatSat2 {
  0%, 100% { transform: translateY(0) translateZ(35px); }
  50% { transform: translateY(-8px) translateZ(25px); }
}

@keyframes floatSat3 {
  0%, 100% { transform: translateY(0) translateZ(20px); }
  50% { transform: translateY(10px) translateZ(35px); }
}

/* Cyber Grid Floor */
.hero-3d-grid-floor {
  position: absolute;
  bottom: 0;
  width: 80%;
  height: 50px;
  background: radial-gradient(ellipse at bottom, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* 3D Floating Badges around Hero */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: rgba(14, 20, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--elevation-3), 0 0 25px rgba(99, 102, 241, 0.2);
  transform: translateZ(55px);
  z-index: 10;
  pointer-events: auto;
  white-space: nowrap;
  width: max-content;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-badge:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: var(--elevation-4), 0 0 30px rgba(99, 102, 241, 0.35);
  background: rgba(18, 26, 46, 0.98);
}

.badge-top-left {
  top: 15px;
  left: -32px;
}

.badge-bottom-right {
  bottom: 30px;
  right: -32px;
}

.badge-bottom-left {
  bottom: -22px;
  left: 10px;
}

.badge-icon {
  font-size: 1.7rem;
  flex-shrink: 0;
}

.badge-top-left .badge-icon { color: var(--secondary); }
.badge-bottom-right .badge-icon { color: var(--primary-light); }
.badge-bottom-left .badge-icon { color: var(--secondary); }

.badge-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.badge-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.3;
}

.badge-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.3;
}

/* Floating Animations */
.float-anim-1 {
  animation: floatBadge1 6s ease-in-out infinite;
}

.float-anim-2 {
  animation: floatBadge2 7s ease-in-out infinite 0.5s;
}

.float-anim-3 {
  animation: floatBadge3 8s ease-in-out infinite 1s;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateZ(45px) translateY(0) rotate(0deg); }
  50% { transform: translateZ(55px) translateY(-12px) rotate(2deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateZ(45px) translateY(0) rotate(0deg); }
  50% { transform: translateZ(50px) translateY(-14px) rotate(-2deg); }
}

@keyframes floatBadge3 {
  0%, 100% { transform: translateZ(45px) translateY(0) rotate(0deg); }
  50% { transform: translateZ(60px) translateY(-10px) rotate(1.5deg); }
}

/* Interactive Card Specular Reflection */
.card-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt-3d-card:hover .card-reflection {
  opacity: 1;
}

/* Scroll Cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.scroll-cue:hover {
  color: var(--primary-light);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: mouseWheel 1.6s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* --- KEY STATS / METRICS BAR --- */
.stats-section {
  padding-block: 40px;
  position: relative;
  z-index: 3;
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--elevation-2), 0 0 25px rgba(99, 102, 241, 0.18);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--secondary);
}

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

.stat-value-row {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  display: inline-block;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  display: inline-block;
}

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

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.about-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.about-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.about-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-card p strong {
  color: var(--text-main);
}

.attributes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.attribute-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.attr-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  padding: 8px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 10px;
}

.attr-content {
  display: flex;
  flex-direction: column;
}

.attr-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.attr-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.link-accent {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Pillar Highlight Cards */
.about-cards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.fin-gradient { background: linear-gradient(135deg, #06b6d4, #0284c7); box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35); }
.erp-gradient { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35); }
.code-gradient { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35); }

.pillar-info h4 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.pillar-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- EXPERIENCE TIMELINE --- */
.timeline-container {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding-left: 48px;
}

.timeline-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
  border-radius: var(--radius-full);
}

.timeline-card-wrapper {
  position: relative;
  margin-bottom: 48px;
}

.timeline-card-wrapper:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -48px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
  z-index: 2;
}

.intern-marker {
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);
}

.timeline-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.role-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-light);
}

.loc-tag {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 400;
  padding-left: 8px;
  border-left: 1px solid var(--border-subtle);
}

.timeline-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

.active-pulse-badge {
  padding: 2px 8px;
  background: #10b981;
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intern-time {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--secondary);
}

.role-summary-tag {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-style: italic;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.timeline-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bullet-icon {
  font-size: 1.2rem;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-bullets strong {
  color: var(--text-main);
}

.timeline-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* --- PROJECTS SECTION --- */
.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.segmented-control {
  display: inline-flex;
  padding: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  gap: 4px;
}

.segment-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn:hover {
  color: var(--text-main);
}

.segment-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

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

.project-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

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

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-illustration {
  transform: scale(1.05);
}

.project-badge-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(14, 20, 36, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.accent-pill {
  color: var(--accent-violet);
}

/* Thematic Ambient Gradients for Project Cards */
.fintech-media {
  background: radial-gradient(circle at center, #0e2b42 0%, #090d16 85%);
}

.erp-media {
  background: radial-gradient(circle at center, #1e1b4b 0%, #090d16 85%);
}

.ticketing-media {
  background: radial-gradient(circle at center, #2e1a05 0%, #090d16 85%);
}

.automation-media {
  background: radial-gradient(circle at center, #062b21 0%, #090d16 85%);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-duration {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.project-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.highlight-item span {
  font-size: 1.1rem;
  color: var(--secondary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  margin-top: auto;
}

.tech-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
}

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

.icon-link-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.icon-link-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  transform: rotate(45deg);
}

/* --- SKILLS & PROFICIENCIES SECTION --- */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

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

.category-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.cat-backend { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
.cat-frontend { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4); }
.cat-db { background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
.cat-tools { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }

.category-titles h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.category-titles span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--primary-light);
}

.skill-chip i,
.skill-chip span {
  color: var(--secondary);
  font-size: 1.05rem;
}

/* --- EDUCATION & HONORS SECTION --- */
.edu-awards-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.award-subtle-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.award-subtle-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.award-subtle-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.award-subtle-content {
  flex: 1;
}

.award-subtle-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.award-subtle-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.award-subtle-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
}

.award-subtle-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Academic Cards List */
.academic-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.academic-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.academic-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.acad-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.acad-header {
  margin-bottom: 8px;
}

.acad-degree {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.acad-year {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.acad-institute {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.acad-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  width: fit-content;
}

.acad-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-card, .form-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.contact-card-title, .form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.contact-card-desc, .form-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.channel-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.channel-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.linkedin-icon { color: #0a66c2; background: rgba(10, 102, 194, 0.12); }
.github-icon { color: #f0f6fc; background: rgba(240, 246, 252, 0.12); }

.channel-data {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.channel-link, .channel-static {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.channel-link:hover {
  color: var(--primary-light);
}

/* Material Floating Input Form */
.md-contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.md-input-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.md-input, .md-textarea {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.md-input:focus, .md-textarea:focus {
  background: rgba(99, 102, 241, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.md-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.md-input:focus ~ .md-label,
.md-input:not(:placeholder-shown) ~ .md-label,
.md-textarea:focus ~ .md-label,
.md-textarea:not(:placeholder-shown) ~ .md-label {
  top: -10px;
  left: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--bg-secondary);
  padding-inline: 6px;
  border-radius: 4px;
}

.error-msg {
  font-size: 0.8rem;
  color: var(--accent-rose);
  margin-top: 4px;
  display: none;
}

.has-error .error-msg {
  display: block;
}

.has-error .md-input,
.has-error .md-textarea {
  border-color: var(--accent-rose);
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* --- MAIN FOOTER --- */
.main-footer {
  padding-block: 60px 30px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary-light);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-credits {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* --- MATERIAL FLOATING ACTION BUTTON (FAB) --- */
.fab-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.fab-main {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.fab-main:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.fab-icon {
  font-size: 1.8rem;
  transition: transform var(--transition-normal);
}

.fab-container.open .fab-icon {
  transform: rotate(45deg);
}

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transition: all var(--spring-bounce);
}

.fab-container.open .fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.fab-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--elevation-2);
  transition: all var(--transition-fast);
}

.fab-item:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* --- MATERIAL DIALOG MODALS --- */
.md-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: min(600px, 92vw);
  border-radius: var(--radius-xl);
  outline: none;
}

.md-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: backdropFade 0.3s ease-out;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-3), 0 0 40px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  animation: dialogScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogScale {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-category-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.dialog-body {
  padding: 24px 28px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.dialog-body h4 {
  color: var(--text-main);
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.dialog-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 14px;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border-subtle);
}

.resume-hero-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 18px;
}

.resume-hero-box h4 {
  margin: 0 0 4px;
  color: var(--text-main);
}

.resume-section-item {
  margin-bottom: 14px;
}

.resume-section-item h5 {
  font-size: 0.95rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 4px;
}

/* --- MATERIAL TOAST / SNACKBAR --- */
.md-snackbar {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  padding: 14px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--elevation-3), 0 0 25px rgba(99, 102, 241, 0.35);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--spring-bounce);
}

.md-snackbar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.snackbar-icon {
  color: var(--accent-emerald);
  font-size: 1.4rem;
}

.snackbar-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Helpers */
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-role-wrapper,
  .hero-tech-strip,
  .tech-strip-tags,
  .hero-actions,
  .hero-socials {
    justify-content: center;
  }

  .hero-illustration-wrapper {
    max-width: 460px;
    margin-inline: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .academic-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .award-showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .award-chips {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .desktop-nav,
  .header-contact-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-matrix {
    grid-template-columns: 1fr;
  }

  .attributes-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .tech-strip-tags {
    gap: 8px;
  }

  .tech-strip-badge {
    padding: 6px 13px;
    font-size: 0.82rem;
  }

  .timeline-container {
    padding-left: 24px;
  }

  .timeline-marker {
    left: -24px;
    width: 32px;
    height: 32px;
  }

  .timeline-marker span {
    font-size: 1.1rem;
  }

  .timeline-card {
    padding: 20px;
  }

  .segmented-control {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }

  .segment-btn {
    flex: 1 1 45%;
    text-align: center;
  }

  .fab-container {
    bottom: 20px;
    right: 20px;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
