/* =====================
   CSS Variables & Reset
   ===================== */
:root {
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --accent: #e07a5f;
  --bg-light: #f8f9fa;
  --bg-warm: #fefae0;
  --text-dark: #1b1b1b;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', serif;
  line-height: 1.3;
}

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

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

ul {
  list-style: none;
}

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

/* =====================
   Layout Utilities
   ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* =====================
   Buttons
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
}

/* =====================
   Navigation
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  color: var(--primary);
}

.logo:hover {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(160deg, #2d6a4f 0%, #1b4332 50%, #081c15 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(64, 145, 108, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(224, 122, 95, 0.2) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 24px;
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-size: 1rem;
  padding: 14px 40px;
}

.hero .btn-primary:hover {
  background: #c9634a;
  border-color: #c9634a;
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.4);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================
   About
   ===================== */
.about {
  background: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.about-avatar .avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: var(--shadow);
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif SC', serif;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================
   Travel Cards
   ===================== */
.travel {
  background: #fff;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.card-body {
  padding: 20px 24px 24px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
}

.card-link:hover {
  color: var(--accent);
}

/* =====================
   Study Section
   ===================== */
.study {
  background: var(--bg-warm);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.study-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.study-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.study-item h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.study-item ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.study-item ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.study-item ul a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.study-item ul a:hover {
  color: var(--accent);
}

/* =====================
   Gallery
   ===================== */
.gallery {
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  z-index: 2;
}

.gallery-item span {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 12px;
  text-align: center;
}

.gallery-item.large {
  grid-column: span 2;
  background-size: cover;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* =====================
   Contact
   ===================== */
.contact {
  background: var(--bg-light);
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  border-radius: 8px;
  font-size: 1rem;
  padding: 14px;
}

.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-note.success {
  color: var(--primary);
}

/* =====================
   Footer
   ===================== */
.footer {
  background: #1b1b1b;
  color: #fff;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  font-size: 1.4rem;
  transition: transform var(--transition);
}

.social-link:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* =====================
   Mobile Responsive
   ===================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    display: flex;
    justify-content: center;
  }

  .about-stats {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .study-grid {
    grid-template-columns: 1fr;
  }

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