/* ===== CSS Variables & Theming ===== */
:root {
  /* Light mode (default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --btn-bg: #1a1a1a;
  --btn-text: #ffffff;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --accent: #60a5fa;
  --border: #404040;
  --shadow: rgba(0, 0, 0, 0.3);
  --btn-bg: #374151;
  --btn-text: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  z-index: 100;
  transition: background-color 0.3s ease;
}

.logo {
  position: absolute;
  left: 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Sun icon - visible in dark mode (to switch to light) */
.icon-sun {
  display: none;
  color: #fbbf24;
  stroke: #fbbf24;
}

/* Moon icon - visible in light mode (to switch to dark) */
.icon-moon {
  display: block;
  color: var(--text-primary);
  stroke: var(--text-primary);
}

/* In dark mode: show sun, hide moon */
[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 1.5rem;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when open */
.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);
}

/* ===== Sections ===== */
.section {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  display: none;
}

.section.active {
  display: block;
}

/* ===== Home Section ===== */
.section-home.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  text-align: center;
  max-width: 600px;
}

.profile-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* ===== CTA Buttons ===== */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.cta-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 200px;
  text-align: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
  opacity: 0.9;
}

/* ===== About Section ===== */
.section-about {
  padding-top: 6rem;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.separator {
  color: var(--text-secondary);
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.about-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-contact {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.link {
  color: var(--accent);
  text-decoration: underline;
}

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

/* ===== Media Sections ===== */
.media-section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.video-grid,
.reels-grid {
  display: grid;
  gap: 1.5rem;
}

.reels-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.video-placeholder,
.reel-placeholder {
  background-color: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.video-placeholder code,
.reel-placeholder code {
  display: block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
}

/* Video embed styles */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--bg-secondary);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Reel embed styles */
.reel-container {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.reel-container iframe {
  border: none;
  width: 100%;
  min-height: 500px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .logo {
    position: static;
    font-size: 1.1rem;
  }

  /* Show hamburger, hide nav by default */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav-link.active::after {
    display: none;
  }

  .name {
    font-size: 1.5rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-content {
    padding: 1rem;
  }

  .section {
    padding-top: 5rem;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }

  .social-icons {
    gap: 0.75rem;
  }

  .cta-btn {
    min-width: 180px;
    font-size: 0.875rem;
  }
}