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

:root {
  --bg: rgb(var(--bg-rgb));
  --bg-rgb: 11, 17, 24;
  --card: rgb(21, 34, 50);
  --primary: rgb(0, 130, 110);
  --secondary: rgb(75, 144, 189);
  --text: rgb(232, 237, 241);
  --muted: rgb(var(--muted-rgb));
  --muted-rgb: 138, 155, 176;
  --white: rgb(255, 255, 255);
  --shadow-rgb: 0, 0, 0;
  --container: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ===== Header / Nav ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.6);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.header.nav-scrolled {
  background: rgba(var(--bg-rgb), 0.95);
  box-shadow: 0 1px 12px rgba(var(--shadow-rgb), 0.3);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}

.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0);
}

.nav { display: flex; gap: 2rem; }

.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

.nav a:hover::after,
.nav a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/img/hero-bg.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--bg-rgb), 0.55) 0%,
    rgba(var(--bg-rgb), 0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  background: rgba(var(--bg-rgb), 0.35);
  backdrop-filter: blur(12px);
  padding: 3rem 4rem;
}
.hero-logo {
  width: clamp(200px, 40vw, 360px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 3rem;
}

.scroll-indicator {
  display: inline-block;
  color: var(--primary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40%  { transform: translateY(10px); }
  60%  { transform: translateY(5px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

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

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(var(--shadow-rgb), 0.3);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

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

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

/* ===== Contact ===== */
.contact-card {
  max-width: 560px;
  background: var(--card);
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 4px 24px rgba(var(--shadow-rgb), 0.25);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--secondary);
}

.contact-item a:hover {
  color: var(--secondary);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(var(--muted-rgb), 0.1);
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(var(--bg-rgb), 0.97);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav.nav-open {
    max-height: 300px;
    padding: 1.5rem 0;
  }

  .nav a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image { order: -1; }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section { padding: 60px 0; }

  .contact-card { padding: 1.75rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-grid { gap: 2rem; }
  .gallery-grid { gap: 1rem; }
}


/* ===== Light Mode ===== */
[data-theme="light"] {
  --bg: rgb(var(--bg-rgb));
  --bg-rgb: 245, 247, 250;
  --card: rgb(255, 255, 255);
  --primary: rgb(0, 122, 102);
  --secondary: rgb(45, 100, 145);
  --text: rgb(15, 23, 42);
  --muted: rgb(var(--muted-rgb));
  --muted-rgb: 100, 116, 139;
  --white: rgb(255, 255, 255);
  --shadow-rgb: 0, 0, 0;
}