﻿*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[data-theme="dark"] {
  --bg: #0d0d0b;
  --bg-2: #141311;
  --bg-3: #1c1a17;
  --bg-elev: #1a1814;
  --text: #f6f3ec;
  --text-2: #b0aca0;
  --text-3: #6f6c63;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #5fe48b;
  --accent-deep: #2bb964;
  --accent-text: #08130c;
  --accent-soft: rgba(95, 228, 139, 0.12);
  --glow: rgba(95, 228, 139, 0.28);
  --shadow-xl: 0 60px 120px -30px rgba(0, 0, 0, 0.85), 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-md: 0 20px 40px -10px rgba(0, 0, 0, 0.55), 0 8px 20px -6px rgba(0, 0, 0, 0.35);
  --scrollbar-thumb: #2bb964;
  --scrollbar-thumb-hover: #5fe48b;
  --grain: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --bg: #f7f6f2;
  --bg-2: #fbfaf6;
  --bg-3: #ecebe4;
  --bg-elev: #ffffff;
  --text: #16150f;
  --text-2: #585548;
  --text-3: #95918a;
  --border: rgba(20, 18, 10, 0.07);
  --border-strong: rgba(20, 18, 10, 0.14);
  --accent: #1b9c50;
  --accent-deep: #0f7a3a;
  --accent-text: #ffffff;
  --accent-soft: rgba(27, 156, 80, 0.10);
  --glow: rgba(27, 156, 80, 0.18);
  --shadow-xl: 0 40px 90px -25px rgba(15, 30, 15, 0.22), 0 20px 40px -12px rgba(15, 30, 15, 0.12), 0 0 0 1px rgba(15, 30, 15, 0.04);
  --shadow-md: 0 18px 36px -10px rgba(15, 30, 15, 0.15), 0 6px 14px -4px rgba(15, 30, 15, 0.08);
  --scrollbar-thumb: rgba(27, 156, 80, 0.25);
  --scrollbar-thumb-hover: rgba(27, 156, 80, 0.45);
  --grain: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hamburger {
    display: flex !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.95s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.95s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.95s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: none;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0) rotate(-2.5deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2.5deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: 600;
  }
  to {
    stroke-dashoffset: 0;
  }
}

::selection {
  background: #5fe48b;
  color: #0d0d0b;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

[data-theme="dark"] .hero-img-light {
  display: none !important;
}

[data-theme="light"] .hero-img-dark {
  display: none !important;
}


/* Gallery Stage & Slides */
.gallery-stage {
  position: relative;
  background: #0b0b09;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.2, 0.65, 0.2, 1), visibility 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.gallery-slide[data-idx="0"] {
  padding: 44px 24px;
}

.gallery-slide[data-idx="0"] img {
  max-width: 640px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-strong);
}

.gallery-slide[data-idx="1"] img,
.gallery-slide[data-idx="2"] img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hide theme change icon from bottom on tablet and mobile view */
@media (max-width: 768px) {
  footer .theme-toggle {
    display: none !important;
  }
}