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

:root {
  /* Colors */
  --soft-green: #22c55e;
  --sky-blue: #38bdf8;
  --ice-blue: #e0f2fe;
  --snow-white: #f9fafb;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --northern-lights: linear-gradient(135deg, #22c55e, #06b6d4, #a78bfa);
  --sunset-fjord: linear-gradient(135deg, #f97316, #fb7185, #facc15);
  --glacier-flow: linear-gradient(135deg, #38bdf8, #818cf8);
  --glass-border: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
  
  /* UI Elements */
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-glass: 0 8px 32px rgba(56, 189, 248, 0.05);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--snow-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

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

.section {
  padding: var(--space-xl) 0;
}

/* Glassmorphism System */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-glass);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.12);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1001;
}

.logo img {
  width: 32px;
  height: 32px;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--sky-blue);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--glacier-flow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--sky-blue);
}

.btn-secondary:hover {
  background: var(--ice-blue);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* Updated Hero Section with Liquid Style */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 140px; /* Added spacing so fluid wave doesn't overlap content */
  position: relative;
  overflow: hidden;
  background: url('images/photo-1531366936310-6cb1c830bc37.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(34, 197, 94, 0.3));
  z-index: 0;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1; /* Pushed below hero grid to prevent overlap */
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 120px;
}

.hero-wave .shape-fill {
  fill: var(--snow-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3; /* Elevated above the fluid wave to prevent overlap */
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 500px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Liquid shape animation */
.hero-visual-img {
  width: 100%;
  max-width: 500px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: liquid-morph 8s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 4px solid rgba(255,255,255,0.2);
  object-fit: cover;
  aspect-ratio: 1; /* Keep fluid aspect ratio */
  height: auto; /* Prevent overlapping caused by fixed height */
}

@keyframes liquid-morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.floating-card {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: float 6s ease-in-out infinite;
  z-index: 4;
}

.floating-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.floating-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.floating-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--ice-blue);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* SEO Content Styles */
.seo-content {
  margin-top: 2rem;
  padding: 3rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ice-blue);
}

.seo-content h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-primary);
}

.seo-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.experience-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: 1px solid var(--ice-blue);
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.experience-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255,255,255,0.85);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 600;
  color: var(--sky-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--soft-green);
  gap: 0.75rem;
}

/* Page Headers (Internal Pages) */
.page-header {
  padding: 150px 0 80px;
  background: var(--snow-white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--northern-lights);
  opacity: 0.08;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Detailed Guide Content */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

.guide-block {
  margin-bottom: 4rem;
}

.guide-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.guide-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.guide-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.info-box {
  background: var(--ice-blue);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border-left: 4px solid var(--sky-blue);
}

.info-box h4 {
  margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ice-blue);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--ice-blue);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  background: var(--snow-white);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--ice-blue);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--sky-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--ice-blue);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations & Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.text-gradient-sunset {
  background: var(--sunset-fjord);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    padding-bottom: 180px; /* Enhanced space on mobile */
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .floating-card {
    left: 10px;
    bottom: -20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(249, 250, 251, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-btn-wrap {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
}