/* ============================================================
   THEME VARIABLES — marble and sprinkles
   ============================================================ */
:root {
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.3s ease;
}

[data-theme="sprinkles"] {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --card-bg: rgba(255,255,255,0.88);
  --text: #2D2D3F;
  --text-muted: #7A7A8E;
  --accent: #FF5070;
  --accent-soft: #FFE0E8;
  --accent-glow: rgba(255,80,112,0.12);
  --border: #E8E8F0;
  --header-bg: url('../images/hero-bg.jpg') center/cover no-repeat;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --switcher-bg: #FFFFFF;
  --switcher-active: #FF5070;
  --switcher-inactive: #E0E0E8;
  --link: #E05070;
  --sprinkle-1: #FF5070;
  --sprinkle-2: #FF7A94;
  --sprinkle-3: #FFA0B0;
  --sprinkle-4: #FFB0C0;
  --sprinkle-5: #FFC8D4;
}

[data-theme="marble"] {
  --bg: #1A1A2E;
  --bg-alt: #222238;
  --card-bg: rgba(34,34,56,0.90);
  --text: #E8E0F0;
  --text-muted: #9890A8;
  --accent: #E8849B;
  --accent-soft: rgba(232,132,155,0.15);
  --accent-glow: rgba(232,132,155,0.25);
  --border: rgba(255,255,255,0.08);
  --header-bg: url('../images/hero-bg.jpg') center/cover no-repeat;
  --card-shadow: 0 4px 32px rgba(0,0,0,0.3);
  --switcher-bg: #222238;
  --switcher-active: #E8849B;
  --switcher-inactive: #3A3A55;
  --link: #F090A8;
  --sprinkle-1: #E8849B;
  --sprinkle-2: #A8D8EA;
  --sprinkle-3: #C3AED6;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.75; }

/* ============================================================
   THEME SWITCHER
   ============================================================ */
.theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--switcher-bg);
  border-radius: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--switcher-inactive);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.theme-btn:hover {
  transform: scale(1.15);
  border-color: var(--text-muted);
}
.theme-btn.active {
  border-color: var(--switcher-active);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.theme-btn[data-theme="sprinkles"] {
  background: conic-gradient(#FF5070, #FF7A94, #FFA0B0, #FFB0C0, #FFC8D4, #FF5070);
}
.theme-btn[data-theme="marble"] {
  background: linear-gradient(135deg, #1A1A2E, #E8849B);
}

.theme-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.theme-btn:hover::after {
  opacity: 1;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
.hero {
  flex-shrink: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--header-bg);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

/* Dark overlay for readability over the background image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 40px;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
}
.scroll-hint::after {
  content: '\2193';
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   DOT NETWORK ANIMATION — between hero and footer
   ============================================================ */
.mid-section {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 300px;
}
.dot-area {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  transition: background var(--transition);
  overflow: hidden;
  z-index: 0;
}
.dot-area canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CONTENT — sits on top of dot animation
   ============================================================ */
.content-area {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: transparent;
  border-top: none;
  transition: all var(--transition);
}

.contact-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.contact-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .theme-switcher {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
  }
  .theme-btn {
    width: 24px;
    height: 24px;
  }
  .about-card {
    padding: 28px;
  }
  .section {
    padding: 60px 20px;
  }
  .contact-links {
    flex-direction: column;
  }
}
