/* ===== CSS Variables ===== */
:root {
  /* Tetrad Color Scheme */
  --primary-color: #00b8d4;
  --primary-dark: #0089a1;
  --primary-light: #6eefff;
  
  --secondary-color: #d40058;
  --secondary-dark: #a1004a;
  --secondary-light: #ff5c93;
  
  --accent1-color: #d4b800;
  --accent1-dark: #a18a00;
  --accent1-light: #ffea6e;
  
  --accent2-color: #5800d4;
  --accent2-dark: #4200a1;
  --accent2-light: #9f6eff;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --mid-gray: #e0e6ed;
  --dark-gray: #394b59;
  --black: #102a43;
  
  /* Typography */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 999px;
  
  /* Box Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  color: var(--primary-dark);
}

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

.title, .subtitle {
  font-family: var(--heading-font);
}

/* ===== Section Styles ===== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-sm) auto;
}

/* ===== Overlay Styles ===== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  z-index: 0;
}

.section-header .title.has-text-white,
.section-header .subtitle.has-text-white {
  position: relative;
  z-index: 2;
}

/* ===== Navbar Styles ===== */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.navbar-item {
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.navbar-burger {
  height: 3.25rem;
  width: 3.25rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
}

.hero-body .title,
.hero-body .subtitle,
.hero-body p {
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pulse-button {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 rgba(0, 184, 212, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 184, 212, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 184, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 212, 0);
  }
}

.arrow-down {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  cursor: pointer;
}

.arrow-down span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(-45deg);
  animation: arrowDown 2s infinite;
  opacity: 0;
  box-sizing: border-box;
}

@keyframes arrowDown {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-45deg) translate(20px, 20px);
  }
}

/* ===== Beaches Section ===== */
.beach-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.beach-card .card-image {
  position: relative;
  overflow: hidden;
}

.beach-card .card-image img {
  transition: transform var(--transition-normal);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beach-card:hover .card-image img {
  transform: scale(1.05);
}

.beach-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.beach-card .card-content .button {
  margin-top: auto;
}

/* ===== Case Studies Section ===== */
#case-studies {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.case-study-card {
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-card .card-image {
  position: relative;
  overflow: hidden;
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.case-study-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.case-study-card:hover .card-image img {
  transform: scale(1.05);
}

.case-study-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card .card-content .button {
  margin-top: auto;
}

/* ===== Resources Section ===== */
.resource-card {
  padding: var(--spacing-md);
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  text-align: center;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.resource-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.resource-card h3 {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.resource-card p {
  margin-bottom: var(--spacing-md);
}

.resource-card .button {
  margin-top: auto;
}

/* ===== Testimonials Section ===== */
#testimonials {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--spacing-sm);
  border: 3px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-color);
}

.testimonial-rating {
  color: var(--accent1-color);
  font-size: 1.2rem;
  margin-top: var(--spacing-xs);
}

/* ===== Events Section ===== */
.event-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.event-card .button {
  margin-top: auto;
}

/* ===== History Section ===== */
#history {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--white);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: var(--spacing-md) 40px;
  position: relative;
  width: 50%;
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--primary-color);
  border: 4px solid var(--white);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -12px;
}

.timeline-content {
  padding: var(--spacing-md);
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  border-radius: var(--radius-md);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Events Calendar Section ===== */
.calendar-container {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-md);
}

.calendar-season {
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  height: 100%;
}

.calendar-events {
  list-style: none;
  padding: 0;
}

.calendar-events li {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--mid-gray);
  display: flex;
  flex-direction: column;
}

.calendar-events li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date {
  font-weight: bold;
  color: var(--primary-color);
}

.event-title {
  font-weight: 500;
  display: block;
}

.event-location {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* ===== Careers Section ===== */
#careers {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.career-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.career-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.career-card p {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.career-card .button {
  margin-top: auto;
}

/* ===== Webinars Section ===== */
.webinar-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.webinar-card:hover {
  transform: translateY(-5px);
}

.webinar-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.webinar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.webinar-card:hover .webinar-image img {
  transform: scale(1.05);
}

.webinar-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.webinar-date {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--light-gray);
  color: var(--primary-color);
  border-radius: var(--radius-sm);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.webinar-card .button {
  margin-top: auto;
}

/* ===== Projects Section ===== */
#projects {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  color: var(--white);
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  color: #121212;
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  margin: var(--spacing-md) 0;
  text-align: center;
}

.stat {
  flex: 1;
  padding: 0 var(--spacing-xs);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.project-card .button {
  margin-top: auto;
}

/* ===== Media Section ===== */
.tabs {
  margin-bottom: var(--spacing-md);
}

.tabs ul {
  border-bottom-color: var(--primary-color);
}

.tabs li.is-active a {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.is-active {
  display: block;
}

.gallery {
  margin-top: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.video-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.video-container:hover .video-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.play-icon {
  font-size: 3rem;
  color: var(--white);
  background-color: rgba(0, 184, 212, 0.7);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-normal);
}

.video-container:hover .play-icon {
  transform: scale(1.1);
}

/* ===== Contact Section ===== */
#contact {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.contact-info {
  margin-bottom: var(--spacing-md);
}

.contact-item {
  display: flex;
  margin-bottom: var(--spacing-md);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: var(--spacing-sm);
}

.contact-form .field {
  margin-bottom: var(--spacing-sm);
}

.contact-form .label {
  color: var(--dark-gray);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--mid-gray);
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 184, 212, 0.2);
}

/* ===== Footer Section ===== */
.footer {
  background-color: var(--dark-gray);
  color: var(--light-gray);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer .title {
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  color: var(--white);
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
}

.social-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-light);
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: var(--light-gray);
  margin-left: var(--spacing-md);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ===== Button Styles ===== */
.button {
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.is-primary.is-outlined {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.button.is-primary.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--light-gray);
}

.success-content {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 600px;
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* ===== Privacy & Terms Pages ===== */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ===== Utilities ===== */
.has-text-white {
  color: var(--white) !important;
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0 !important;
  }
  
  .timeline-marker {
    left: 19px !important;
    right: auto !important;
  }
  
  .section-header {
    padding: 0 var(--spacing-sm);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom .has-text-right {
    text-align: center !important;
    margin-top: var(--spacing-md);
  }
  
  .footer-bottom a {
    display: inline-block;
    margin: 0 var(--spacing-xs);
  }
}

/* ===== AOS Animation Enhancements ===== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

[data-aos][data-aos][data-aos-duration="400"],
body[data-aos-duration="400"] [data-aos] {
  transition-duration: 400ms;
}

[data-aos][data-aos][data-aos-delay="300"],
body[data-aos-delay="300"] [data-aos] {
  transition-delay: 0;
}

[data-aos][data-aos][data-aos-delay="300"].aos-animate,
body[data-aos-delay="300"] [data-aos].aos-animate {
  transition-delay: 300ms;
}