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

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #007aff;
  --accent-hover: #0063d1;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 18px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg: #000000;
  --surface: #1c1c1e;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border: rgba(255,255,255,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="dark"] .nav { background: rgba(28,28,30,0.72); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 52px;
}

.nav-logo {
  font-size: 1.125rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.theme-toggle svg { width: 20px; height: 20px; }

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(0,122,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at 50% 20%, rgba(0,122,255,0.15) 0%, transparent 60%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34c759; animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.08; margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #007aff, #5856d6, #af52de);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary); max-width: 600px;
  font-weight: 400; line-height: 1.5;
}

.scroll-indicator {
  position: absolute; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-secondary); font-size: 0.75rem; font-weight: 500;
  animation: float 3s ease-in-out infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* === Sections === */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.12; margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 560px; line-height: 1.6; margin-bottom: 3rem;
}

/* === About Cards === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}

.about-card h3 {
  font-size: 1.25rem; font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55;
}

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

.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active img { transform: scale(1); }

.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem; text-align: center;
  transition: border-color var(--transition);
}
.footer p {
  font-size: 0.85rem; color: var(--text-secondary);
}
.footer a { color: var(--accent); text-decoration: none; }

/* === Animations === */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.25rem; }
}
