/* ============================================
   Personal Website - Main Stylesheet
   Minimalist, Modern Design with Theme Support
   ============================================ */

/* Root Variables - Dynamically Updated by Theme Manager */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #0ea5e9;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', serif;
  
  --navbar-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%), #ffffff;
  --footer-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, rgba(31, 41, 55, 1) 100%);
  --body-bg: #f9fafb;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--body-bg);
  background: var(--body-bg);
  line-height: 1.6;
  font-size: 16px;
}

main {
  transition: background 300ms ease;
  margin-top: 5rem;
}

/* ============================================
   Typography
   ============================================ */

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.0625rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* ============================================
   Navigation Bar
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.nav-avatar {
  height: 2.5rem;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  justify-content: space-around;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Theme Selector Dropdown */
.theme-selector-wrapper {
  display: flex !important;
  align-items: center;
  gap: 1rem;
}

.theme-select {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 110px;
}

.theme-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.theme-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.theme-select option {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: 0.5rem;
}

/* Language Selector Dropdown */
.language-selector-wrapper {
  display: flex !important;
  align-items: center;
}

.language-select {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 110px;
}

.language-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.language-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.language-select option {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .theme-selector-wrapper {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .theme-select {
    min-width: 120px;
    font-size: 0.85rem;
  }
}

/* ============================================
   Main Content
   ============================================ */

main {
  margin-top: 60px;
}

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

.section {
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ============================================
   Hero / Landing Section
   ============================================ */

.hero {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
  text-align: center;
  margin-top: 0;
}

.profile-section {
  margin-bottom: 3rem;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--primary-color);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.about-me-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-me-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-me-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
}

.hero-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ============================================
   Slideshow Component
   ============================================ */

.slideshow {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-light);
}

.slide {
  display: none;
  width: 100%;
  height: 400px;
  object-fit: cover;
  animation: fadeIn 0.5s;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.slide-dot.active {
  background-color: var(--primary-color);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.slide-arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.slide-arrow.prev {
  left: 1rem;
}

.slide-arrow.next {
  right: 1rem;
}

/* ============================================
   Video Wall Component
   ============================================ */

.music-showcase {
  margin: 2rem auto 2.5rem;
}

.music-showcase-scene {
  position: relative;
  width: min(100%, 1000px);
  min-height: 620px;
  margin: 0 auto;
  padding: 2rem 0;
}

.music-description-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 85%);
  z-index: 2;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.music-description-card p {
  margin-bottom: 0;
  color: var(--text-dark);
}

.music-video-orbit {
  position: absolute;
  inset: 0;
}

.video-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(220px, 28vw);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: var(--transition);
  transform: translate(-50%, -50%) translate(var(--orbit-x), var(--orbit-y)) rotate(var(--orbit-rotation));
  z-index: 1;
}

.video-tile:hover {
  transform: translate(-50%, -50%) translate(var(--orbit-x), var(--orbit-y)) rotate(var(--orbit-rotation)) translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.video-tile iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
  pointer-events: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  background: var(--bg-white);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.video-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.video-modal-header {
  margin-bottom: 0.75rem;
  padding-right: 2.5rem;
}

.video-modal-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-dark);
}

.video-modal-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .music-showcase-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
  }

  .music-description-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }

  .music-video-orbit {
    position: relative;
    min-height: 320px;
  }

  .video-tile {
    width: min(220px, 42vw);
    position: absolute;
  }
}

/* ============================================
   Grid Layouts
   ============================================ */

.grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

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

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

/* ============================================
   Cards
   ============================================ */

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
  position: relative;
  padding: 2rem 0 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-color);
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: 120px 16px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem;
  background-color: var(--bg-white);
  border-radius: 6px;
  border-left: 3px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.85rem;
  text-align: right;
  padding-top: 2px;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-content {
  padding-right: 1rem;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.timeline-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   Puzzles Section
   ============================================ */

.puzzles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.puzzle-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.puzzle-card:hover {
  box-shadow: var(--shadow-md);
}

.puzzle-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.puzzle-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.puzzle-toggle {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.puzzle-solution {
  background-color: rgba(37, 99, 235, 0.05);
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  margin-top: 1rem;
  animation: slideDown 0.3s ease;
}

.puzzle-solution.hidden {
  display: none;
}

.puzzle-solution p {
  margin-bottom: 0.75rem;
}

.puzzle-solution ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.puzzle-solution li {
  margin-bottom: 0.5rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
  display: block;
  margin: 2rem 0;
}

.social-links h4 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.social-icon {
  padding: 0.75rem 1rem;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 6px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   Collapsible Sections
   ============================================ */

.collapsible {
  background-color: var(--bg-light);
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: 1px solid var(--border-color);
  text-align: left;
  outline: none;
  transition: var(--transition);
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.collapsible:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

.collapsible::after {
  content: '\002B';
  float: right;
  transition: var(--transition);
}

.collapsible.active::after {
  content: '\2212';
}

.collapsible-content {
  display: none;
  padding: 1rem;
  background-color: var(--bg-white);
  border-left: 3px solid var(--primary-color);
  margin-bottom: 1rem;
}

.collapsible-content.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Photo Gallery
   ============================================ */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* ============================================
   Video Grid
   ============================================ */

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

.video-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background-color: var(--bg-light);
  overflow: hidden;
}

.video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  padding: 1rem;
  background-color: var(--bg-white);
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================
   Tags
   ============================================ */

.tag {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--footer-bg);
  color: white;
  padding: 3rem 2rem;
  margin-top: 0;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-section {
  padding: 1rem 0;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0;
  display: inline;
}

.social-links a,
.quick-links a {
  color: var(--accent-color);
  transition: var(--transition);
  font-weight: 500;
}

.social-links a:hover,
.quick-links a:hover {
  color: white;
  text-decoration: none;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  color: white;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.25rem;
  }

  .social-links {
    justify-content: center;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -1.5rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.text-muted {
  color: var(--text-light);
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.theme-switcher label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  cursor: pointer;
}

.theme-switcher select {
  padding: 8px 12px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: white;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 300ms ease;
  font-family: var(--font-sans);
}

.theme-switcher select:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switcher select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive: Hide theme switcher on very small screens */
@media (max-width: 600px) {
  .theme-switcher {
    bottom: 10px;
    right: 10px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .theme-switcher select {
    min-width: 150px;
  }
}
/* ============================================
   CSS Photo Gallery
   ============================================ */

.css-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-row {
  display: flex;
  gap: 1.5rem;
  height: 300px;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  background-color: var(--bg-light);
}

.gallery-item.large {
  flex: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-row {
    height: 250px;
  }

  .gallery-item {
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  .css-gallery {
    gap: 1rem;
  }

  .gallery-row {
    flex-direction: column;
    height: auto;
    min-height: 250px;
  }

  .gallery-row:nth-child(2) {
    flex-direction: column;
  }

  .gallery-column {
    flex-direction: row;
    height: 200px;
  }

  .gallery-item.large {
    flex: 1;
  }

  .gallery-item {
    min-height: 200px;
    border-radius: 6px;
  }

  .gallery-caption {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .css-gallery {
    gap: 0.8rem;
  }

  .gallery-row {
    height: auto;
    min-height: 200px;
  }

  .gallery-column {
    height: 150px;
  }

  .gallery-item {
    min-height: 150px;
    border-radius: 4px;
  }

  .gallery-item img {
    border-radius: 4px;
  }

  .gallery-caption {
    font-size: 0.9rem;
  }
}

/* ============================================
   Resume Section
   ============================================ */

#resume {
  text-align: center;
}

#resume .container {
  text-align: center;
}

/* ============================================
   Writing Section - Table Styling
   ============================================ */

.writing-table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.writing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow: hidden;
}

.writing-table thead {
  background-color: var(--primary-color);
  color: white;
}

.writing-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

.writing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.writing-table tbody tr:hover {
  background-color: var(--bg-light);
  transition: var(--transition);
}

.writing-table a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

.writing-table a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--text-light);
}

.writing-language-section {
  margin-bottom: 4rem;
}

.language-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

/* ============================================
   Channels Section
   ============================================ */

.channels-container {
  margin: 3rem 0;
}

.channel-link {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  text-align: center;
}

.channel-link h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.channel-description {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.channel-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.channel-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.channel-info {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* ============================================
   Music Section
   ============================================ */

.music-description {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.music-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* ============================================
   Travels Section
   ============================================ */

.travels-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.world-map {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  fill: var(--primary-color);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.map-pin:hover {
  r: 16px;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.5));
}

.map-label {
  font-size: 12px;
  font-weight: 500;
  fill: var(--primary-color);
  pointer-events: none;
}

.travels-grid {
  margin-top: 3rem;
}

.location-section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.location-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.gallery-caption {
  font-size: 0.85rem;
}

/* ============================================
   Community Section
   ============================================ */

.community-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.community-list {
  max-width: 800px;
  margin: 0 auto;
}

.community-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-items dt {
  margin: 1.5rem 0 0.3rem 0;
  padding: 0;
}

.community-items dt a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.05rem;
  transition: var(--transition);
}

.community-items dt a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.community-items dd {
  margin: 0 0 1.5rem 0;
  padding: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
}