/* ========================================
   DESIGN TOKENS & CSS VARIABLES
   ======================================== */
:root {
  /* Colors - Dark Theme Palette */
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-tertiary: #141432;
  --bg-card: rgba(20, 20, 50, 0.6);
  --bg-card-hover: rgba(30, 30, 70, 0.7);

  /* Accent Colors */
  --accent-primary: #06b6d4;
  --accent-primary-rgb: 6, 182, 212;
  --accent-secondary: #8b5cf6;
  --accent-secondary-rgb: 139, 92, 246;
  --accent-tertiary: #22d3ee;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #06b6d4;

  /* Glass Effect */
  --glass-bg: rgba(15, 15, 42, 0.65);
  --glass-border: rgba(6, 182, 212, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: 20px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4, #8b5cf6);
  --gradient-bg: linear-gradient(135deg, #0a0a1a 0%, #0f0f2a 50%, #141432 100%);
  --gradient-card: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
  --gradient-glow: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Navbar */
  --navbar-height: 72px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

::selection {
  background: rgba(6, 182, 212, 0.3);
  color: var(--text-primary);
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(6, 182, 212, 0.03), transparent);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform var(--transition-base), filter var(--transition-base);
  filter: brightness(1.1);
}

.nav-logo-img:hover {
  transform: scale(1.08);
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-link.active::after,
.nav-link:hover::after {
  width: 60%;
}

/* Nav Actions (lang switcher + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  z-index: 1002;
}

.lang-switcher:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  letter-spacing: 0.05em;
}

.lang-caret {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  color: var(--text-secondary);
}

.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}

/* Language Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: rgba(10, 10, 30, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.lang-option:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.08);
}

.lang-option span {
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: var(--navbar-height);
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-success);
  margin-bottom: var(--space-xl);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-title-name {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: var(--space-lg) 0;
  font-family: var(--font-mono);
}

.typed-text {
  color: var(--accent-primary);
}

.typed-cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-xl);
}

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

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-svg {
  width: 200px;
  height: 200px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.2));
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-primary);
}

.avatar-ring-2 {
  inset: -20px;
  border-color: rgba(139, 92, 246, 0.15);
  animation-direction: reverse;
  animation-duration: 25s;
}

.avatar-ring-2::before {
  background: var(--accent-secondary);
  box-shadow: 0 0 15px var(--accent-secondary);
}

.avatar-decoration {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
  animation: floatIcon 4s ease-in-out infinite;
}

.avatar-dec-1 {
  top: 10px;
  right: 20px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-primary);
  animation-delay: 0s;
}

.avatar-dec-2 {
  bottom: 10px;
  right: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-secondary);
  animation-delay: 1s;
}

.avatar-dec-3 {
  bottom: 30px;
  left: 10px;
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--accent-tertiary);
  animation-delay: 2s;
}

.avatar-dec-4 {
  top: 30px;
  left: 0;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
  animation-delay: 3s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 2s both;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-tertiary);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(15, 15, 42, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow), 0 0 40px rgba(6, 182, 212, 0.05);
}

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.about-card {
  padding: var(--space-xl);
  text-align: center;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(6, 182, 212, 0.1);
  font-size: 1.75rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.skills-category-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.skills-category-title i {
  color: var(--accent-primary);
}

/* Skill Bars */
.skill-bar-item {
  margin-bottom: var(--space-lg);
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.skill-bar-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  filter: blur(2px);
}

/* Soft Skills */
.soft-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.soft-skill-item {
  padding: var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

.soft-skill-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

.soft-skill-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.soft-skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Certification */
.cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.cert-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cert-info {
  position: relative;
  z-index: 1;
}

.cert-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-year {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* ========================================
   TIMELINE / EXPERIENCE
   ======================================== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: var(--space-lg);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
  z-index: 2;
}

.timeline-dot.current {
  background: var(--accent-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

.timeline-card {
  padding: var(--space-xl);
}

.timeline-header {
  margin-bottom: var(--space-lg);
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 0.95rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.timeline-period {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: var(--radius-full);
}

.timeline-highlights {
  list-style: none;
}

.timeline-highlights li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  z-index: 1;
}

.timeline-highlights li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* ========================================
   EDUCATION
   ======================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.education-card {
  padding: var(--space-xl);
}

.edu-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.edu-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-secondary);
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.edu-info {
  position: relative;
  z-index: 1;
}

.edu-institution {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 0.9rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.edu-period {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.edu-activities {
  list-style: none;
  position: relative;
  z-index: 1;
}

.edu-activities li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.edu-activities li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-size: 0.5rem;
  top: 5px;
}

/* ========================================
   ACTIVITIES
   ======================================== */
.activity-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.activity-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 1.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.activity-content {
  position: relative;
  z-index: 1;
}

.activity-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.activity-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(6, 182, 212, 0.1);
  font-size: 1.75rem;
  color: var(--accent-primary);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.contact-card:hover .contact-icon {
  background: rgba(6, 182, 212, 0.2);
  transform: scale(1.05);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity var(--transition-base), filter var(--transition-base);
  filter: brightness(1.1);
}

.footer-logo-img:hover {
  opacity: 1;
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.footer-subtext {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ---------- Large Tablet / Small Laptop (max 1024px) ---------- */
@media (max-width: 1024px) {
  .hero-container {
    gap: var(--space-2xl);
  }

  .avatar-container {
    width: 280px;
    height: 280px;
  }

  .avatar-svg {
    width: 180px;
    height: 180px;
  }

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

  .skills-grid {
    gap: var(--space-xl);
  }
}

/* ---------- Tablet / iPad (max 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
    --space-4xl: 4rem;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    transition: right var(--transition-base);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* Lang switcher stays visible on mobile */
  .lang-switcher {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .lang-label {
    display: none; /* hide text label, keep flag only */
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--space-md) var(--space-lg);
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 1rem);
    padding-bottom: var(--space-2xl);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
  }

  .hero-visual {
    order: -1;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-role {
    justify-content: center;
    font-size: 1.1rem;
  }

  .hero-description {
    margin: 0 auto var(--space-xl);
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .avatar-container {
    width: 240px;
    height: 240px;
  }

  .avatar-svg {
    width: 150px;
    height: 150px;
  }

  .avatar-decoration {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  /* Sections */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .about-card {
    padding: var(--space-lg);
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Timeline */
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -27px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: var(--space-lg);
  }

  .timeline-company {
    font-size: 1rem;
  }

  .timeline-highlights li {
    font-size: 0.85rem;
  }

  /* Education */
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 400px;
  }

  /* Activities */
  .activity-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
  }

  /* Footer */
  .footer {
    padding: var(--space-xl) 0;
  }
}

/* ---------- Large Phones (max 480px) ---------- */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --navbar-height: 60px;
  }

  .nav-logo-img {
    height: 34px;
    width: 34px;
  }

  .nav-links {
    width: 100%;
    right: -100%;
  }

  /* Hero */
  .hero-greeting {
    font-size: 0.9rem;
  }

  .hero-title-name {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-role {
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-md);
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-suffix {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .avatar-container {
    width: 200px;
    height: 200px;
  }

  .avatar-svg {
    width: 120px;
    height: 120px;
  }

  .avatar-decoration {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .avatar-ring-2 {
    inset: -12px;
  }

  /* Sections */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-tag {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

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

  .about-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .about-card h3 {
    font-size: 1rem;
  }

  .about-card p {
    font-size: 0.85rem;
  }

  /* Skills */
  .soft-skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .soft-skill-item {
    padding: var(--space-md);
  }

  .skill-bar-name {
    font-size: 0.85rem;
  }

  .cert-card {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .cert-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .cert-info h4 {
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 24px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: -22px;
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: var(--space-md);
  }

  .timeline-company {
    font-size: 0.95rem;
  }

  .timeline-role {
    font-size: 0.85rem;
  }

  .timeline-period {
    font-size: 0.7rem;
  }

  .timeline-highlights li {
    font-size: 0.8rem;
    padding-left: var(--space-md);
  }

  /* Education */
  .education-card {
    padding: var(--space-lg);
  }

  .edu-header {
    gap: var(--space-md);
  }

  .edu-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .edu-institution {
    font-size: 0.95rem;
  }

  .edu-degree {
    font-size: 0.85rem;
  }

  .edu-activities li {
    font-size: 0.8rem;
  }

  /* Activity */
  .activity-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .activity-content h3 {
    font-size: 0.95rem;
  }

  .activity-content p {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .contact-card h3 {
    font-size: 0.9rem;
  }

  .contact-card p {
    font-size: 0.8rem;
  }

  /* Footer */
  .footer-logo-img {
    height: 40px;
    width: 40px;
  }

  .footer-text {
    font-size: 0.75rem;
  }
}

/* ---------- Small Phones (max 360px) ---------- */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
  }

  .hero-title-name {
    font-size: 1.6rem;
  }

  .hero-role {
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .avatar-container {
    width: 180px;
    height: 180px;
  }

  .avatar-svg {
    width: 100px;
    height: 100px;
  }

  .about-card {
    padding: var(--space-md);
  }

  .section-title {
    font-size: 1.3rem;
  }

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

/* ---------- Landscape Phone ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 0.5rem);
    padding-bottom: var(--space-lg);
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: var(--space-lg);
  }

  .hero-visual {
    order: 0;
  }

  .hero-badge {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .avatar-container {
    width: 180px;
    height: 180px;
  }

  .avatar-svg {
    width: 100px;
    height: 100px;
  }

  .avatar-decoration {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ---------- Touch Device Helpers ---------- */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work well on touch */
  .glass-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  /* Increase touch targets */
  .nav-link {
    padding: var(--space-md) var(--space-lg);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    min-height: 48px;
  }

  .contact-card {
    min-height: 48px;
  }
}

/* ---------- Safe Area (iPhone Notch / Dynamic Island) ---------- */
@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }

  .footer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
