/*
  STYLE: Gradient Flow
  - Hero: Animated gradient background with floating geometric shapes
  - Sections: Smooth color transitions with wave dividers
  - Cards: Glassmorphism with blur effects and subtle borders
  - CTA: Pulsing gradient button with glow effect
*/

/* 1. RESET & ROOT VARIABLES */
:root {
  --primary-color: #1A5276; /* Deep Coastal Blue */
  --accent-color: #40B1AD; /* Mint/Turquoise */
  --accent-color-light: #50d1cd;
  --bg-light: #F5F7FA;
  --bg-dark: #0D2A3B;
  --text-dark: #333333;
  --text-light: #F5F7FA;
  --white: #FFFFFF;
  --border-glass: rgba(255, 255, 255, 0.2);
  --shadow-light: rgba(0, 0, 0, 0.05);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;
  --section-padding: clamp(80px, 10vw, 120px);

  --border-radius: 12px;
  --transition-fast: 0.3s ease-in-out;
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. GENERAL & UTILITY CLASSES */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: var(--spacing-m); }
a { color: var(--accent-color); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-color-light); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
ul { list-style: none; }

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}
.section-colored { background-color: #eaf1f8; }
.section-dark { background-color: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.btn {
  display: inline-block;
  padding: var(--spacing-m) var(--spacing-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(64, 177, 173, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(64, 177, 173, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxxl);
}
.section-title h2 { margin-bottom: var(--spacing-s); }
.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  font-size: 1.1rem;
}
.section-dark .section-title p { color: #ccc; }

/* 3. HEADER & NAVIGATION */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-l) 0;
  transition: all var(--transition-fast);
  background: transparent;
}
.main-header.scrolled {
  background: rgba(26, 82, 118, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--spacing-m) 0;
  box-shadow: 0 2px 10px var(--shadow-light);
}
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  container-type: inline-size;
}
.main-nav .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 5cqw, 2rem);
  color: var(--white);
}
.nav-links {
  display: flex;
  gap: var(--spacing-xl);
}
.nav-links li a {
  color: var(--white);
  font-weight: 600;
  padding: var(--spacing-s) 0;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-fast);
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}
.nav-cta {
  display: block;
}
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background: var(--white);
  transition: all var(--transition-fast);
}

/* 4. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--primary-color), var(--bg-dark), #2c3e50, #40B1AD);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.pexels.com/photos/247819/pexels-photo-247819.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); margin-bottom: var(--spacing-l); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto var(--spacing-xxl);
  opacity: 0.9;
}
.hero-shapes div {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite linear;
}
.shape1 { width: 150px; height: 150px; left: 10%; bottom: 15%; animation-duration: 22s; }
.shape2 { width: 50px; height: 50px; left: 40%; top: 20%; animation-duration: 18s; }
.shape3 { width: 100px; height: 100px; right: 15%; top: 30%; animation-duration: 25s; }
.shape4 { width: 75px; height: 75px; right: 30%; bottom: 25%; animation-duration: 15s; }
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-1000px) rotate(720deg); }
}

/* WAVE DIVIDER */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}
.wave-divider .shape-fill {
  fill: var(--bg-light);
}
.section-colored .wave-divider .shape-fill {
  fill: #eaf1f8;
}

/* 5. FEATURES SECTION (GLASSMORPHISM) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  text-align: center;
  transition: transform var(--transition-fast);
}
.feature-card:hover {
  transform: translateY(-10px);
}
.feature-card .icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-m);
}
.feature-card h3 {
  margin-bottom: var(--spacing-s);
}

/* 6. ABOUT/STORY SECTION */
.about-section-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxxl);
  align-items: center;
}
.about-section-img img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 7. SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: all var(--transition-fast);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}
.service-card-content { padding: var(--spacing-xl); }
.service-card-content h3 { margin-bottom: var(--spacing-m); }
.service-card-content p { margin-bottom: var(--spacing-xl); }

/* 8. TESTIMONIALS SECTION */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}
.testimonial-card {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: 0 5px 15px var(--shadow-light);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 6rem;
  color: var(--accent-color);
  opacity: 0.1;
  font-family: serif;
}
.testimonial-text { font-style: italic; margin-bottom: var(--spacing-xl); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
}
.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author-info p { margin-bottom: 0; }
.author-name { font-weight: 700; color: var(--primary-color); }
.author-country { font-size: 0.9rem; color: #777; }

/* 9. STATS SECTION */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}
.stat-item .stat-number {
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}
.stat-item .stat-label { font-size: 1.1rem; font-weight: 600; }

/* 10. FAQ SECTION */
.faq-accordion .faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-m);
  box-shadow: 0 2px 10px var(--shadow-light);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: var(--spacing-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform var(--transition-fast);
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}
.faq-answer p { padding: 0 var(--spacing-l) var(--spacing-l); margin: 0; }
.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust as needed */
}

/* 11. CTA SECTION */
.cta-section { text-align: center; }
.cta-section h2 { margin-bottom: var(--spacing-m); }
.cta-section p { margin-bottom: var(--spacing-xxl); font-size: 1.1rem; }
.cta-section .btn-primary {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(64, 177, 173, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(64, 177, 173, 0.7); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(64, 177, 173, 0.4); }
}

/* 12. PARTNERS SECTION */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xxl);
}
.partners-grid img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-fast);
}
.partners-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* 13. FOOTER */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-xxxl) 0;
  position: relative;
}
.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light));
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxxl);
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: var(--spacing-l);
}
.footer-col p, .footer-col ul li {
  margin-bottom: var(--spacing-s);
  color: #ccc;
}
.footer-col a { color: #ccc; }
.footer-col a:hover { color: var(--accent-color); }
.social-links { display: flex; gap: var(--spacing-m); }
.social-links a { font-size: 1.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}
.footer-bottom a { color: #aaa; text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent-color); }

/* 14. CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxxl);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}
.form-group { position: relative; }
.form-control {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(64, 177, 173, 0.2);
}
textarea.form-control { resize: vertical; min-height: 150px; }
.contact-info-list { list-style: none; margin-top: var(--spacing-xl); }
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-m);
  margin-bottom: var(--spacing-l);
  font-size: 1.1rem;
}
.contact-info-list .icon { font-size: 1.5rem; color: var(--accent-color); width: 30px; }
.contact-info-list a { color: var(--text-dark); }
.contact-info-list a:hover { color: var(--primary-color); }

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 15. PRIVACY POLICY PAGE */
.privacy-policy { line-height: 1.8; }
.privacy-policy h2, .privacy-policy h3 {
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-l);
}

/* 16. COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 42, 59, 0.95);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  padding: var(--spacing-l) var(--spacing-xl);
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-l);
  z-index: 9999;
}
.cookie-text {
    flex-grow: 1;
}
.cookie-buttons {
    display: flex;
    gap: var(--spacing-m);
    flex-shrink: 0;
}
#cookie-banner a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* 17. RESPONSIVE DESIGN */
@media (min-width: 768px) {
  .about-section-content {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background: var(--primary-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xxl);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-cta { display: none; }
  .hamburger { display: block; z-index: 1001; }
  .main-header.open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .main-header.open .hamburger span:nth-child(2) { opacity: 0; }
  .main-header.open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .btn { padding: var(--spacing-m) var(--spacing-l); }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}