/* Base Styles & Variables */
:root {
  --primary: #6246ea;
  --secondary: #d1d1e9;
  --accent: #e45858;
  --bg-light: #fffffe;
  --bg-medium: #e3f6f5;
  --text-primary: #2b2c34;
  --text-secondary: #2d334a;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 1rem;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Epilogue', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Glassmorphism Styles */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: var(--transition);
}

.glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px 0 rgba(31, 38, 135, 0.3);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-family: 'Epilogue', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-light);
}

.btn-primary:hover {
  background-color: #5139d6;
  color: var(--bg-light);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #c0c0df;
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.35);
  color: var(--primary);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-light);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1001;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

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

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

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

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(209, 209, 233, 0.3) 0%, rgba(227, 246, 245, 0.3) 100%);
}

.hero-content {
  max-width: 700px;
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

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

/* Features Section */
.features {
  position: relative;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-content {
  flex-grow: 1;
}

/* Info Sections */
.info-section {
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-item img {
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

.info-item-reverse {
  flex-direction: column-reverse;
}

/* Contact Form */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(43, 44, 52, 0.2);
  border-radius: 0.5rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(98, 70, 234, 0.2);
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 1.2rem;
  min-width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(43, 44, 52, 0.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalAnimation 0.3s ease forwards;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent);
}

@keyframes modalAnimation {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  width: calc(100% - 40px);
  z-index: 999;
  animation: slideIn 0.5s forwards;
}

.cookie-consent-detailed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
}

.cookie-settings {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-settings h3 {
  margin-bottom: 1.5rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--primary);
}

input:focus + .cookie-slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-settings-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Epilogue', sans-serif;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: white;
}

.cookie-btn-accept:hover {
  background-color: #5139d6;
}

.cookie-btn-save {
  background-color: var(--primary);
  color: white;
}

.cookie-btn-save:hover {
  background-color: #5139d6;
}

.cookie-btn-decline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.cookie-btn-decline:hover {
  background-color: rgba(98, 70, 234, 0.1);
}

.cookie-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.open-cookie-settings {
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary);
}

.cookie-notice {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  cursor: pointer;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--primary);
}

.cookie-notice i {
  margin-right: 0.5rem;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Thumb Zone Optimization */
@media (max-width: 768px) {
  .thumb-zone-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 999;
  }

  .thumb-zone-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-primary);
  }

  .thumb-zone-nav i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
  }

  .content-thumb-zone {
    padding-bottom: 70px;
  }

  .thumb-zone-floating {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 998;
    cursor: pointer;
    transition: var(--transition);
  }

  .thumb-zone-floating i {
    color: white;
    font-size: 1.5rem;
  }

  .thumb-zone-floating:hover {
    transform: scale(1.05);
  }

  /* Adjusted Form Controls for Mobile Thumb Zone */
  .form-control, .btn {
    height: 50px; /* Larger touch targets */
  }
  
  .form-group {
    margin-bottom: 1.75rem; /* More spacing between inputs */
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
    padding: 4rem 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 1.5rem 0;
    margin-left: 0;
  }

  .hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .info-grid {
    gap: 2rem;
  }

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

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-info li {
    justify-content: center;
  }
  
  /* Thumb Zone Optimizations */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }

  .cookie-consent {
    bottom: 80px; /* Adjust for thumb zone navigation */
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-item {
    flex-direction: row;
    text-align: left;
    gap: 2rem;
  }

  .info-item img {
    width: 50%;
    margin-bottom: 0;
  }

  .info-item-reverse {
    flex-direction: row-reverse;
  }
  
  .thumb-zone-nav, .thumb-zone-floating {
    display: none;
  }
  
  .content-thumb-zone {
    padding-bottom: 0;
  }
}

/* Animations */
.animate__animated {
  animation-duration: 1s;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* International Telephone Input */
.iti {
  width: 100%;
}

/* Foundation Overrides */
.foundation-override {
  /* Overrides for Foundation CSS if needed */
}

/* Addition for Tel Input Styling */
.iti__flag-container {
  z-index: 10;
}

.iti__selected-flag {
  padding-left: 12px;
}

/* Policy Pages Styling */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.policy-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.policy-content ul, 
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content strong {
  color: var(--primary);
}

.policy-date {
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Thank You Page Styling */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.thank-you-message {
  margin-bottom: 2rem;
}

/* Swiper Customization */
.swiper {
  width: 100%;
  height: 100%;
  margin-bottom: 3rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
}

/* Print Styles */
@media print {
  .header, .footer, .cookie-consent, .cookie-notice {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
  
  .glass {
    box-shadow: none;
    border: 1px solid #ddd;
    background: white;
  }
}