:root {
  /* Colors */
  --bg-dark: #0f172a;
  --bg-deeper: #020617;
  --bg-card: rgba(30, 41, 59, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-gold: #fbbf24;
  --accent-gold-dark: #d97706;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  
  /* Effects */
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Hero Upgrades */
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #020617 0%, #06122e 60%, #151105 100%);
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite alternate;
}
.glow-navy { width: 600px; height: 600px; background: #1e3a8a; top: -10%; left: -10%; }
.glow-blue { width: 500px; height: 500px; background: #0369a1; bottom: 10%; right: -10%; animation-delay: -3s;}
.glow-gold { width: 600px; height: 600px; background: #b45309; top: 40%; left: 30%; animation-delay: -7s; opacity: 0.25;}

#financial-network {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: none;
  padding: 0;
}
.hero-content .subtext { margin-left: 0; margin-right: 0; }
.cta-group { justify-content: flex-start; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  padding: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent);
  pointer-events: none;
}

.hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-profile-image:hover {
  transform: scale(1.05);
}

.floating-badge {
  position: absolute;
  z-index: 10;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.floating-badge .trend {
  color: #10b981;
  font-weight: 700;
  margin-right: 0.5rem;
}

.badge-1 { top: 15%; right: -30px; animation-delay: 0s; }
.badge-2 { bottom: 25%; left: -30px; animation-delay: 2s; }

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .badge-1, .badge-2 { position: relative; top: auto; right: auto; left: auto; bottom: auto; display: inline-block; margin-top: 1rem; }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deeper);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

li {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.full-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Typography Utilities */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1px solid var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width 0.1s;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo::after {
  content: '.';
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links .btn-primary {
  color: #fff;
  padding: 0.6rem 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 1rem;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.animate-fade-up {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-content .subtext {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite alternate;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: -10%;
  left: -10%;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.glow-3 {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

.scroll-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

/* Section Common */
.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

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

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* Journey Section */
.journey-section {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
}

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

.timeline-item.right {
  margin-left: 50%;
  padding-left: 3rem;
}

.timeline-item.left {
  padding-right: 3rem;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  z-index: 2;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.role-header {
  margin-bottom: 1rem;
}

.role-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.role-header .year {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
  display: block;
  margin-top: 0.2rem;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Impact Section */
.impact-section {
  padding: 8rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 3rem 2rem;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.stat-number {
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Skills Section */
.skills-section {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0; /* Animated via JS */
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Philosophy Section */
.philosophy-section {
  padding: 8rem 2rem;
  text-align: center;
}

.philosophy-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.massive-text {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Education Section */
.education-section {
  padding: 8rem 0;
  background: var(--bg-dark);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cert-card {
  text-align: center;
  padding: 3rem 2rem;
}

.cert-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.institution {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cert-card .year {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  padding: 8rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

.contact-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  color: var(--accent-cyan);
  transform: translateX(10px);
}

.contact-item .icon {
  font-size: 1.5rem;
  background: var(--bg-card);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
}

.full-width {
  width: 100%;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deeper);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--text-primary);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transition: var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.slide-up {
  transform: translateY(50px);
}

.left {
  transform: translateX(-50px);
}

.right {
  transform: translateX(50px);
}

/* Apply staggered delays via inline CSS vars */
.reveal[style*="--delay"] {
  transition-delay: var(--delay);
}

/* Responsive Design */
@media (max-width: 900px) {
  .timeline::before {
    left: 40px;
  }
  .timeline-line {
    left: 40px;
    transform: none;
  }
  .timeline-item {
    width: 100%;
    margin-bottom: 3rem;
  }
  .timeline-item.right, 
  .timeline-item.left {
    margin-left: 0;
    padding-left: 80px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item.right .timeline-dot,
  .timeline-item.left .timeline-dot {
    left: 32px;
    right: auto;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-smooth);
  }
  .nav-links.active {
    right: 0;
  }
  .hamburger {
    display: flex;
    z-index: 101;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hero-section {
    padding: 6rem 0 3rem;
  }
  .massive-text {
    font-size: 2.5rem;
  }
  .philosophy-container {
    gap: 4rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
