/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--color-foreground);
  background-color: var(--color-background);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
  /* Colors - Dark Theme */
  --color-background: #1e1e1e;
  --color-foreground: #dbdbdb;
  --color-primary: #dbdbdb;
  --color-secondary: #efefef;
  --color-tertiary: #000000;
  --color-accent: #ffffff;

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

  /* Typography */
  --font-base-size: 16px;
  --font-scale: 1.25;
  --line-height-tight: 1.2;
  --line-height-normal: 1.7;
  --line-height-loose: 2;

  /* Font Sizes */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  --font-size-4xl: 4rem;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1.25rem;
  --section-spacing: 3rem;

  /* Effects */
  --transition-speed: 0.3s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 80px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: var(--line-height-tight);
  color: var(--color-foreground);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-4xl));
}

h2 {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
}

h3 {
  font-size: clamp(1.5rem, 3vw, var(--font-size-2xl));
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: 1.5em;
}

a {
  color: var(--color-foreground);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-heading {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-foreground);
  color: var(--color-background);
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
  text-decoration: none;
}

.skip-to-main:focus {
  top: 0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  padding-top: var(--header-height);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(219, 219, 219, 0.1);
  transition: background var(--transition-speed) var(--transition-ease);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1003;
}

.logo {
  height: 35px;
  width: auto;
  transition: transform var(--transition-speed) var(--transition-ease);
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-speed) var(--transition-ease);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1003;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 25px;
  height: 2px;
  background: var(--color-foreground);
  transition: all var(--transition-speed) var(--transition-ease);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation Open State */
body.mobile-nav-open {
  overflow: hidden;
}

.main-nav.mobile-nav-open {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 30, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--space-lg);
  z-index: 1002;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.main-nav.mobile-nav-open .nav-list {
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  width: 100%;
}

.main-nav.mobile-nav-open .nav-link {
  font-size: var(--font-size-lg);
  padding: var(--space-sm) 0;
}

/* Active Navigation Link State */
.nav-link.active {
  color: var(--color-accent);
  font-weight: 500;
}

.nav-link.active::after {
  width: 100%;
}

/* ============================================
   LINKS SECTION (LINKTREE-STYLE)
   ============================================ */

.links-section {
  background: var(--color-background);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.links-hero {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.links-profile {
  margin-bottom: var(--space-lg);
}

.links-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  border: 3px solid rgba(219, 219, 219, 0.2);
  transition: transform var(--transition-speed) var(--transition-ease), border-color var(--transition-speed) var(--transition-ease);
}

.links-logo:hover {
  transform: scale(1.05);
  border-color: rgba(219, 219, 219, 0.4);
}

.links-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--color-foreground);
}

.links-subtitle {
  font-size: var(--font-size-base);
  color: rgba(219, 219, 219, 0.7);
  margin-bottom: 0;
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 1.25rem 2rem;
  background: rgba(219, 219, 219, 0.08);
  border: 2px solid rgba(219, 219, 219, 0.15);
  border-radius: 12px;
  color: var(--color-foreground);
  font-size: var(--font-size-lg);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-ease);
  position: relative;
  overflow: hidden;
}

.link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(219, 219, 219, 0.1), transparent);
  transition: left 0.5s var(--transition-ease);
}

.link-button:hover::before {
  left: 100%;
}

.link-button:hover {
  transform: translateY(-4px);
  background: rgba(219, 219, 219, 0.12);
  border-color: rgba(219, 219, 219, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.link-button:active {
  transform: translateY(-2px);
}

.link-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  transition: transform var(--transition-speed) var(--transition-ease);
}

.link-button:hover .link-icon {
  transform: scale(1.1);
}

.link-text {
  font-size: var(--font-size-lg);
  letter-spacing: 0.02em;
}

/* Platform-specific button colors (optional accent) */
.link-button-youtube:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}

.link-button-instagram:hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: rgba(225, 48, 108, 0.3);
}

.link-button-spotify:hover {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.3);
}

.link-button-applemusic:hover {
  background: rgba(252, 60, 68, 0.15);
  border-color: rgba(252, 60, 68, 0.3);
}

.link-button-bandcamp:hover {
  background: rgba(98, 154, 169, 0.15);
  border-color: rgba(98, 154, 169, 0.3);
}

/* Focus states for accessibility */
.link-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* ============================================
   LISTEN SECTION
   ============================================ */

.listen-section {
  background: var(--color-background);
}

.listen-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.embed-container {
  width: 100%;
  text-align: center;
}

.embed-heading {
  font-size: var(--font-size-lg);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.embed-description {
  font-size: var(--font-size-sm);
  color: rgba(219, 219, 219, 0.7);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.spotify-embed,
.samply-embed,
.bandcamp-embed {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-md);
}

.spotify-embed iframe,
.samply-embed iframe {
  width: 100%;
  border: none;
}

.spotify-embed iframe {
  border-radius: 12px;
}

.samply-embed iframe {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bandcamp-embed {
  text-align: center;
}

.bandcamp-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #1DA0C3;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-speed) var(--transition-ease), transform var(--transition-speed) var(--transition-ease);
}

.bandcamp-button:hover {
  background: #1587A7;
  color: #ffffff;
  transform: translateY(-2px);
}

.youtube-embed {
  margin-bottom: var(--space-md);
}

.youtube-embed iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  position: relative;
  background: var(--color-background);
  color: var(--color-foreground);
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-section .section-heading {
  color: var(--color-foreground);
}

.about-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-content p {
  color: var(--color-foreground);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
  background: var(--color-background);
}

.blog-preview {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.blog-preview-card {
  background: rgba(219, 219, 219, 0.05);
  padding: var(--space-lg);
  border-radius: 8px;
  border: 1px solid rgba(219, 219, 219, 0.1);
  transition: all var(--transition-speed) var(--transition-ease);
}

.blog-preview-card:hover {
  background: rgba(219, 219, 219, 0.08);
  border-color: rgba(219, 219, 219, 0.2);
  transform: translateY(-2px);
}

.blog-preview-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.blog-preview-excerpt {
  color: rgba(219, 219, 219, 0.8);
  margin-bottom: var(--space-md);
}

.blog-read-more {
  display: inline-block;
  font-weight: 500;
  color: var(--color-primary);
  transition: transform var(--transition-speed) var(--transition-ease);
}

.blog-read-more:hover {
  transform: translateX(5px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  background: var(--color-background);
}

.contact-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-email {
  font-size: var(--font-size-xl);
  margin-top: var(--space-md);
}

.email-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.email-link:hover {
  text-decoration-thickness: 2px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-tertiary);
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid rgba(219, 219, 219, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.social-links a {
  color: var(--color-foreground);
  transition: color var(--transition-speed) var(--transition-ease), transform var(--transition-speed) var(--transition-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.footer-text {
  color: rgba(219, 219, 219, 0.6);
  font-size: var(--font-size-sm);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 767px) {
  /* Tighter spacing on mobile for better content flow */
  .section {
    padding: var(--space-lg) 0;
  }

  /* Add extra top spacing on first section for mobile */
  .links-section {
    padding-top: var(--space-xl);
  }

  .links-logo {
    width: 100px;
    height: 100px;
  }

  .link-button {
    padding: 1rem 1.5rem;
    font-size: var(--font-size-base);
  }

  .link-text {
    font-size: var(--font-size-base);
  }

  .link-icon {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --section-spacing: 6rem;
  }

  .main-nav {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  /* Add extra top spacing on first section for tablet/desktop */
  .links-section {
    padding-top: var(--space-xl);
  }

  .links-logo {
    width: 140px;
    height: 140px;
  }

  .listen-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

/* ============================================
   RESPONSIVE DESIGN - DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
    --section-spacing: 8rem;
    --header-height: 90px;
  }

  .logo {
    height: 45px;
  }

  .nav-link {
    font-size: var(--font-size-base);
  }

  .section-heading {
    font-size: var(--font-size-3xl);
  }

  .listen-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-foreground: #ffffff;
    --color-background: #000000;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .site-header,
  .mobile-menu-toggle,
  .scroll-indicator,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .section {
    page-break-inside: avoid;
  }
}
