/* ===== CSS VARIABLES (LIGHT THEME) ===== */
:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-input: rgba(0, 0, 0, 0.03);
  --bg-code: #F1F5F9;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --border-hover: rgba(99, 102, 241, 0.25);
  --nav-border: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.2);
  --shadow-glow-hover: 0 8px 30px rgba(99, 102, 241, 0.3);

  --accent-primary: #6366F1;
  --accent-secondary: #06B6D4;
  --accent-tertiary: #F59E0B;
  --accent-primary-light: rgba(99, 102, 241, 0.1);
  --accent-primary-text: #4F46E5;
  --accent-primary-subtle: #A5B4FC;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #8B5CF6);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary-light);
  transform: translateY(-3px);
}
.btn-gold {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0B0B1A;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8B5CF6; }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 1.8rem;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.whatsapp-float:hover .tooltip {
  opacity: 1;
  right: 76px;
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent-primary); }
.nav-logo .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-tertiary);
  border-radius: 50%;
  margin-left: 2px;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px;
  font-size: 0.8rem;
  border-radius: 10px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 0;
}
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-orb 20s ease-in-out infinite;
}
.hero-bg .orb:nth-child(1) {
  width: 500px; height: 500px;
  background: var(--accent-primary);
  top: 20%; left: 10%;
  animation-delay: 0s;
}
.hero-bg .orb:nth-child(2) {
  width: 400px; height: 400px;
  background: var(--accent-secondary);
  bottom: 10%; right: 10%;
  animation-delay: -5s;
}
.hero-bg .orb:nth-child(3) {
  width: 350px; height: 350px;
  background: var(--accent-tertiary);
  top: 40%; right: 30%;
  animation-delay: -10s;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(100px, -80px) scale(1.1); }
  50% { transform: translate(-60px, 60px) scale(0.9); }
  75% { transform: translate(80px, 40px) scale(1.05); }
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary-text);
  margin-bottom: 24px;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title .highlight {
  position: relative;
  display: inline-block;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 4px;
  opacity: 0.15;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-subtitle strong { color: var(--text-primary); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
}
.hero-stat h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-profile-frame {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  padding: 4px;
  animation: rotate-gradient 8s linear infinite;
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.2);
}
@keyframes rotate-gradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.hero-profile-frame .inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-profile-frame .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero-profile-frame .inner .placeholder-initial {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-social-ring {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.2);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-social-ring .icon {
  position: absolute;
  width: 44px; height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.hero-social-ring .icon:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  transform: scale(1.2);
  box-shadow: var(--shadow-glow);
}
.hero-social-ring .icon:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.hero-social-ring .icon:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.hero-social-ring .icon:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.hero-social-ring .icon:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

/* ===== ABOUT ===== */
.about {
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 400px;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.about-image .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(6,182,212,0.04));
  border-radius: 20px;
}
.about-image .floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}
.about-image .floating-badge:nth-child(2) { top: 30px; right: 30px; animation-delay: 0s; }
.about-image .floating-badge:nth-child(3) { bottom: 40px; left: 30px; animation-delay: -2s; }
.about-image .floating-badge .badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.about-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.about-text p strong { color: var(--text-primary); }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.about-tags span {
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-primary-text);
}

/* ===== SKILLS ===== */
.skills-header {
  text-align: center;
  margin-bottom: 60px;
}
.skills-header .section-desc { margin: 0 auto; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.skill-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.skill-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.skill-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.skill-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar .fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-card .skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.skill-card .skill-label .pct {
  font-weight: 600;
  color: var(--accent-primary);
}

/* ===== PROJECTS / SLIDER ===== */
.projects {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  overflow: hidden;
}
.projects-header {
  text-align: center;
  margin-bottom: 60px;
}
.projects-header .section-desc { margin: 0 auto; }
.slider-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  overflow: hidden;
  border-radius: 20px;
}
.slider-slide {
  min-width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  box-shadow: var(--shadow-md);
}
.project-slide-thumb {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-slide-card:hover .project-slide-thumb img { transform: scale(1.05); }
.project-slide-thumb .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.3));
}
.project-slide-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-slide-body .slide-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  align-self: flex-start;
}
.project-slide-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.project-slide-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.project-slide-body .slide-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-slide-body .slide-tech span {
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--accent-primary-text);
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-inverse);
  transform: scale(1.1);
}
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dots button.active {
  background: var(--accent-primary);
  width: 28px;
  border-radius: 5px;
}

/* ===== EXPERIENCE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 28px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 20px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}
.timeline-item:nth-child(2) .timeline-dot { background: var(--accent-secondary); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--accent-tertiary); }
.timeline-item .date {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.timeline-item .role {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}
.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-desc { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card .s-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.service-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials { text-align: center; }
.testimonials-header { margin-bottom: 50px; }
.testimonials-header .section-desc { margin: 0 auto; }
.testimonial-card {
  max-width: 650px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--shadow-md);
}
.testimonial-card .quote {
  font-size: 4rem;
  color: var(--accent-primary);
  opacity: 0.15;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 0.5;
  margin-bottom: 12px;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.testimonial-card .author .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-inverse);
}
.testimonial-card .author .info h5 {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}
.testimonial-card .author .info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.06), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(6,182,212,0.04), transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-info .contact-item .ci-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info .contact-item .ci-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.contact-info .contact-item .ci-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form .btn { align-self: flex-start; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
  background: var(--bg-secondary);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
footer .social-links {
  display: flex;
  gap: 16px;
}
footer .social-links a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
footer .social-links a:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
#loader .spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(99,102,241,0.12);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
}
@keyframes spin-loader { to { transform: rotate(360deg); } }
#loader p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-profile-frame { width: 250px; height: 250px; }
  .hero-profile-frame .inner .placeholder-initial { font-size: 4.5rem; }
  .hero-social-ring { width: 320px; height: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-image { min-height: 280px; }
  .project-slide-card { grid-template-columns: 1fr; min-height: auto; }
  .project-slide-thumb { min-height: 220px; }
  .project-slide-body { padding: 28px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-md);
  }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .section-padding { padding: 60px 0; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-banner .cta-actions { flex-direction: column; align-items: center; }
}
