@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Poppins:wght@600;700&display=swap');

:root {
  --primary: #10B981;
  --secondary: #065F46;
  --accent-mint: #34D399;
  --accent-lime: #A7F3D0;
  --base-earth: #0B1A13;
  --base-charcoal: #111827;
  --text-light: #F9FAFB;
  --text-muted: #9CA3AF;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg-transparent: rgba(11, 26, 19, 0);
  --nav-bg-scrolled: rgba(6, 95, 70, 0.85);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--base-earth);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  border-color: var(--primary);
}

/* Typography & Generics */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 6rem 0;
}

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

.section-title {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--accent-mint);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--base-earth);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--accent-mint);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--base-earth);
}

/* Header & Navigation */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg-transparent);
  transition: var(--transition);
  padding: 1.5rem 0;
}

#main-header.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#main-nav ul {
  display: flex;
  gap: 2rem;
}

#main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 5px;
}

#main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-mint);
  transition: var(--transition);
}

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

.header-contact a {
  color: var(--accent-mint);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.header-contact a:hover {
  color: var(--accent-lime);
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/finland-mountain-resort-hero-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 26, 19, 0.3), var(--base-earth));
  z-index: 1;
}

.mist-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-image: url('images/finland-resort-mist-overlay-animation.png');
  background-repeat: repeat-x;
  background-size: contain;
  opacity: 0.6;
  animation: driftMist 80s linear infinite;
  z-index: 2;
  pointer-events: none;
}

.light-rays {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 60%);
  transform: rotate(25deg);
  animation: pulseRays 6s ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Animations */
@keyframes driftMist {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulseRays {
  0% { opacity: 0.4; transform: rotate(25deg) scale(1); }
  100% { opacity: 0.8; transform: rotate(25deg) scale(1.05); }
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  50% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}

/* Waterfall UI / Layered Sections */
.waterfall-section {
  position: relative;
  z-index: 10;
  margin-top: -50px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background-color: var(--base-earth);
  padding-top: 4rem;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
}

/* Feature Grid (Rooms, Spa, Activities) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.room-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  group: relative;
}

.room-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-img {
  transform: scale(1.08);
}

.room-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(11,26,19,0.9), transparent);
  transition: var(--transition);
}

.room-card:hover .room-info {
  background: linear-gradient(to top, rgba(6,95,70,0.95), rgba(11,26,19,0.4));
}

.room-info h3 { margin-bottom: 0.5rem; }

/* Nature Gallery (Horizontal Scroll Desktop, Vertical Mobile) */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-item img {
  border-radius: 16px;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-lime);
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Reviews */
.review-card {
  text-align: center;
  padding: 2rem;
}
.stars { color: var(--accent-mint); font-size: 1.2rem; margin-bottom: 1rem; }
.review-text { font-style: italic; margin-bottom: 1rem; }

/* Footer */
footer {
  background-color: var(--base-charcoal);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { color: var(--primary); margin-bottom: 1rem; }
.footer-links h4, .footer-legal h4, .footer-contact h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.footer-links ul li, .footer-legal ul li { margin-bottom: 0.8rem; }
.footer-links a:hover, .footer-legal a:hover { color: var(--accent-mint); }
.footer-contact p { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Floating Call Button */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.floating-call-btn:hover {
  background: var(--accent-mint);
  transform: scale(1.1);
}

/* Utility / Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-contact p { justify-content: center; }
  
  .floating-call-btn { display: block; }
  
  /* Mobile Menu */
  #menu-toggle { display: block; }
  #main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6rem 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
  }
  #main-nav.active { right: 0; }
  #main-nav ul { flex-direction: column; gap: 1.5rem; }
  #main-nav a { font-size: 1.2rem; }
  
  /* Hamburger Animation */
  #menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  #menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Desktop Nature Gallery Horizontal Scroll */
@media (min-width: 1025px) {
  .gallery-container {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--glass-bg);
  }
  .gallery-container::-webkit-scrollbar { height: 8px; }
  .gallery-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
  .gallery-item {
    scroll-snap-align: start;
    flex: 0 0 450px;
  }
}