/* === CSS Variables & Reset === */
:root {
  /* Neomorphism-inspired Color Palette (Tetrad) */
  --primary-color: #6a55fa;
  --primary-dark: #5340c9;
  --primary-light: #9081fb;
  --primary-shadow: #4130a8;
  
  --secondary-color: #fa7855;
  --secondary-dark: #e05a38;
  --secondary-light: #ff9b81;
  
  --accent1-color: #55fac7;
  --accent1-dark: #32d6a7;
  --accent1-light: #7ffbdc;
  
  --accent2-color: #fa55c7;
  --accent2-dark: #d640a8;
  --accent2-light: #ff81dc;
  
  --background-light: #f0f4f8;
  --background-dark: #151c24;
  --text-dark: #202731;
  --text-light: #ffffff;
  --text-muted: #708090;
  
  /* Neomorphic Shadows */
  --shadow-light: 0.5rem 0.5rem 1rem rgba(166, 171, 189, 0.5), 
                  -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 0.3rem 0.3rem 0.6rem rgba(166, 171, 189, 0.5), 
                  inset -0.3rem -0.3rem 0.6rem rgba(255, 255, 255, 0.8);
  --shadow-sharp: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Animation Timing */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.8s ease;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Borders */
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-xl);
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: var(--border-radius-sm);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

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

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

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

section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* === Buttons === */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sharp);
}

.btn:hover, 
button:hover, 
input[type='submit']:hover {
  transform: translateY(-3px);
}

.btn:active, 
button:active, 
input[type='submit']:active {
  transform: translateY(1px);
}

.btn.primary, 
button.primary, 
input[type='submit'].primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn.primary:hover, 
button.primary:hover, 
input[type='submit'].primary:hover {
  background: var(--primary-dark);
}

.btn.secondary, 
button.secondary, 
input[type='submit'].secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn.secondary:hover, 
button.secondary:hover, 
input[type='submit'].secondary:hover {
  background: var(--secondary-dark);
}

.btn.outline, 
button.outline, 
input[type='submit'].outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.outline:hover, 
button.outline:hover, 
input[type='submit'].outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* === Header & Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(240, 244, 248, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sharp);
  padding: var(--space-md) 0;
  transition: all var(--transition-fast);
}

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

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(240, 244, 248, 0.95);
}

.logo a {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.logo img {
  max-width: 180px;
  height: auto;
}

.desktop-nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.desktop-nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

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

.desktop-nav a:hover {
  color: var(--primary-color);
}

.desktop-nav a:hover:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--background-light);
  box-shadow: var(--shadow-sharp);
  padding: var(--space-md);
  transform: translateY(-100%);
  transition: transform var(--transition-medium);
}

.mobile-nav.active {
  transform: translateY(0);
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav a {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mobile-nav a:hover {
  color: var(--primary-color);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 70px;
  padding: var(--space-xl) 0;
}

.hero-content {
  max-width: 800px;
  color: var(--text-light);
  z-index: 2;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: fadeInDown 1s both;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  animation: fadeIn 1.5s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === Vision Section === */
.vision {
  background-color: var(--background-light);
}

.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.vision-text {
  order: 1;
}

.vision-image {
  order: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-medium);
}

.vision-image:hover {
  transform: scale(1.02);
}

/* === Services Section === */
.services {
  background-color: #f8f9fa;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.services .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-light);
}

.services .card:hover {
  transform: translateY(-10px);
}

.services .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.services .card-content {
  padding: var(--space-lg);
  text-align: center;
}

.services .card-content h3 {
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

/* === Events Section === */
.events {
  background: linear-gradient(135deg, #f0f4f8 0%, #e7eef5 100%);
  position: relative;
}

.events-carousel {
  position: relative;
  overflow: hidden;
}

.event-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

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

.event-image {
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

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

.event-details {
  padding: var(--space-md);
}

.event-details h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

.event-date {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--background-light);
  color: var(--primary-color);
  border: none;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-controls button:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* === Team Section === */
.team {
  background-color: var(--background-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

.team .card:hover {
  transform: translateY(-10px);
}

.team .card-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

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

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

.team .card-content {
  padding: var(--space-lg);
  text-align: center;
}

.team .card-content h3 {
  margin-bottom: 0;
  color: var(--text-dark);
}

.team .position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

/* === Partners Section === */
.partners {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
  text-align: center;
}

.partners-intro {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  background: var(--background-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-light);
  height: 100px;
  transition: all var(--transition-medium);
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sharp);
}

.partner-logo img {
  max-width: 150px;
  max-height: 80px;
  filter: grayscale(100%);
  transition: filter var(--transition-medium);
}

.partner-logo:hover img {
  filter: grayscale(0);
}

/* === Resources Section === */
.resources {
  background-color: var(--background-light);
}

.resources-intro {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.resource-card {
  padding: var(--space-lg);
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
}

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

.resource-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  text-align: center;
}

.resource-card ul {
  list-style-position: inside;
  padding-left: var(--space-md);
}

.resource-card li {
  margin-bottom: var(--space-sm);
}

.resource-card a {
  color: var(--text-dark);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.resource-card a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

.resource-card a:hover {
  color: var(--primary-color);
}

.resource-card a:hover:after {
  width: 100%;
}

/* === Insights Section === */
.insights {
  background: linear-gradient(135deg, #f0f4f8 0%, #e7eef5 100%);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.insights .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  height: 100%;
}

.insights .card:hover {
  transform: translateY(-10px);
}

.insights .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.insights .card-content {
  padding: var(--space-lg);
  text-align: center;
  flex-grow: 1;
}

.insights .card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: var(--space-md);
  position: relative;
  padding-bottom: 2px;
}

.read-more:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

.read-more:hover:after {
  width: 100%;
}

/* === Contact Section === */
.contact {
  background-color: var(--background-light);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-form-container {
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-md);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius-md);
  background: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(106, 85, 250, 0.2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-details {
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-light);
}

.contact-details h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  height: 300px;
}

.map-container iframe {
  border: none;
}

/* === Footer === */
.footer {
  background: var(--background-dark);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer-about {
  margin-bottom: var(--space-lg);
}

.footer-about img {
  margin-bottom: var(--space-md);
}

.footer h3 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  font-size: 1.2rem;
}

.footer-links ul,
.footer-legal ul,
.footer-social ul {
  list-style: none;
}

.footer-links li,
.footer-legal li,
.footer-social li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.footer-legal a,
.footer-social a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all var(--transition-fast);
  display: inline-block;
  padding: var(--space-xs) 0;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-social a:hover {
  opacity: 1;
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  animation: fadeIn var(--transition-fast);
}

.modal-content {
  background: var(--background-light);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-sharp);
  position: relative;
  animation: modalSlide var(--transition-medium);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.close-modal:hover {
  color: var(--primary-color);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Utility Classes === */
.image-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sharp);
}

/* === Success Page === */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e7eef5 100%);
}

.success-content {
  max-width: 600px;
  padding: var(--space-xl);
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  animation: fadeIn 1s;
}

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

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

.terms-content, .privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--background-light);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

/* === Responsive === */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .vision-content {
    grid-template-columns: 1fr;
  }
  
  .vision-text {
    order: 2;
  }
  
  .vision-image {
    order: 1;
    margin-bottom: var(--space-lg);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  h2 {
    text-align: center;
  }
  
  h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .card {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .services-grid,
  .team-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container,
  .contact-details {
    padding: var(--space-md);
  }
  
  .btn, button, input[type='submit'] {
    width: 100%;
  }
  
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 50px;
  }
}