/* ===== CSS Variables & Design Tokens ===== */
:root {
  --color-bg-primary: #0a0f0d;
  --color-bg-secondary: #0f1714;
  --color-bg-tertiary: #151f1b;
  --color-bg-card: rgba(21, 31, 27, 0.8);
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0b5ad;
  --color-text-muted: #6a7d75;
  --color-accent-primary: #10b981;
  --color-accent-secondary: #14b8a6;
  --color-accent-tertiary: #06b6d4;
  --color-gradient-start: #10b981;
  --color-gradient-mid: #14b8a6;
  --color-gradient-end: #f59e0b;
  --color-success: #22c55e;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(16, 185, 129, 0.3);
  --font-primary: "Inter", -apple-system, sans-serif;
  --font-display: "Outfit", sans-serif;
  --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: var(--font-primary);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start),
    var(--color-gradient-mid),
    var(--color-gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-normal);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--color-gradient-start),
    var(--color-gradient-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-fast);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-normal);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent-primary),
    var(--color-accent-secondary)
  );
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}
.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  background: var(--color-bg-card);
}
.btn-secondary:hover {
  border-color: var(--color-accent-primary);
  background: rgba(16, 185, 129, 0.1);
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.btn-outline {
  border: 1px solid var(--color-accent-primary);
  color: var(--color-accent-primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}
.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent-primary);
  top: -200px;
  right: -200px;
}
.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-tertiary);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-gradient-end);
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--color-accent-primary);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-text-primary);
}
.stat-suffix {
  font-size: 24px;
  color: var(--color-accent-primary);
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ===== Hero Image ===== */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-wrapper {
  position: relative;
  width: 380px;
  height: 450px;
}
.image-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--color-accent-primary),
    var(--color-accent-tertiary)
  );
  filter: blur(40px);
  opacity: 0.4;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}
.image-border {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--color-accent-primary),
    var(--color-accent-tertiary)
  );
  z-index: 1;
}
.profile-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 3px solid var(--color-bg-primary);
}
.floating-badge {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 56px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: bounce 3s ease-in-out infinite;
}
.floating-badge i {
  font-size: 24px;
  color: var(--color-accent-primary);
}
.badge-flutter {
  top: 20px;
  right: -28px;
  animation-delay: 0s;
}
.badge-code {
  bottom: 40px;
  left: -28px;
  animation-delay: 1.5s;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== Animations ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.animate-fade-left {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 0.8s ease forwards;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
