/* ===== ROOT VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #4e54c8;
  --primary-color-dark: #3c40a2;
  --primary-color-light: #8f94fb;
  --secondary-color: #6c63ff;
  --accent-color: #7c4dff;
  --text-color: #333;
  --text-color-light: #666;
  --text-color-lighter: #999;
  --white: #ffffff;
  --off-white: #f9f9ff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;
  --error: #dc3545;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --line-height-base: 1.5;
  --line-height-sm: 1.25;
  --line-height-lg: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;

  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-width: 1px;
  --border-width-md: 2px;
  --border-width-lg: 3px;

  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.18);

  /* Glassmorphism */
  --glass-background: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --glass-blur: 10px;

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 80px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-sm);
  color: var(--text-color);
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--space-4);
}

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

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

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

ul {
  list-style: none;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-8);
  color: var(--text-color-light);
  font-size: var(--font-size-lg);
}

/* ===== BUTTONS ===== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  color: var(--white);
  box-shadow: 0 7px 20px rgba(78, 84, 200, 0.4);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn + .btn {
  margin-left: var(--space-4);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.logo {
  z-index: 1001;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: var(--space-5);
}

.nav-desktop a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

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

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

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

.burger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all var(--transition);
}

.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform var(--transition);
}

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

.burger-menu.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile ul {
  text-align: center;
}

.nav-mobile li {
  margin-bottom: var(--space-5);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-color);
  transition: color var(--transition);
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
  margin-bottom: var(--space-6);
  color: var(--white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.stat-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  border: var(--glass-border);
  min-width: 150px;
  transition: transform var(--transition);
}

.stat-widget:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--gray-200);
  text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--space-10) 0;
  background-color: var(--off-white);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.stats-container .stat-widget {
  background-color: var(--white);
  color: var(--text-color);
  box-shadow: var(--shadow);
}

.stats-container .stat-number {
  color: var(--primary-color);
}

.stats-container .stat-label {
  color: var(--text-color-light);
}

.stat-icon {
  margin-bottom: var(--space-3);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.animated {
  animation: fade-in 1s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--space-10) 0;
}

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

.card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

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

.card-content h3 {
  margin-bottom: var(--space-3);
  color: var(--text-color);
}

.card-content p {
  color: var(--text-color-light);
}

/* ===== PROCESS SECTION ===== */
.process {
  padding: var(--space-10) 0;
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(78, 84, 200, 0.05) 0%, transparent 80%);
  z-index: 0;
}

.process-steps {
  position: relative;
  z-index: 1;
}

.process-step {
  display: flex;
  margin-bottom: var(--space-8);
  position: relative;
}

.step-number {
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-xl);
  margin-right: var(--space-4);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}

.step-content {
  flex: 1;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50px;
  left: 25px;
  width: 2px;
  height: calc(100% + var(--space-8) - 50px);
  background-color: var(--primary-color-light);
  z-index: -1;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: var(--space-10) 0;
}

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

/* ===== INNOVATION SECTION ===== */
.innovation {
  padding: var(--space-10) 0;
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.innovation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 80%, rgba(78, 84, 200, 0.05) 0%, transparent 80%);
  z-index: 0;
}

.innovation-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.innovation-text {
  flex: 1;
}

.innovation-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

/* ===== RESOURCES SECTION ===== */
.resources {
  padding: var(--space-10) 0;
}

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

.resources .card {
  height: 100%;
}

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

.resource-links li {
  margin-bottom: var(--space-3);
}

.resource-links a {
  display: inline-block;
  color: var(--primary-color);
  transition: all var(--transition);
  position: relative;
}

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

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

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

/* ===== PARTNERS SECTION ===== */
.partners {
  padding: var(--space-10) 0;
  background-color: var(--white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  align-items: center;
  justify-items: center;
  margin-bottom: var(--space-8);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 180px;
  padding: var(--space-3);
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

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

.testimonials {
  margin-top: var(--space-8);
}

.testimonials h3 {
  text-align: center;
  margin-bottom: var(--space-6);
}

.testimonials-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: """;
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  line-height: 0;
  color: var(--primary-color-light);
  opacity: 0.2;
}

.testimonial p {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-3);
}

.author-info h4 {
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.author-info span {
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
}

/* ===== NEWS SECTION ===== */
.news {
  padding: var(--space-10) 0;
  background-color: var(--off-white);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.date {
  display: block;
  color: var(--text-color-lighter);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.read-more {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--primary-color);
  font-weight: 500;
  position: relative;
}

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

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

.news-cta {
  text-align: center;
  margin-top: var(--space-6);
}

/* ===== BEHIND THE SCENES SECTION ===== */
.behind-scenes {
  padding: var(--space-10) 0;
}

.behind-scenes-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.behind-scenes-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.behind-scenes-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.behind-scenes-item:hover img {
  transform: scale(1.03);
}

.item-description h3 {
  margin-bottom: var(--space-3);
}

/* ===== SUCCESS STORIES SECTION ===== */
.success-stories {
  padding: var(--space-10) 0;
  background-color: var(--gray-100);
}

.stories-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.accordion-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  cursor: pointer;
  background-color: var(--white);
  transition: background-color var(--transition);
}

.accordion-header:hover {
  background-color: var(--gray-100);
}

.accordion-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
}

.accordion-icon {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  transition: transform var(--transition);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.story-content {
  padding: 0 var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.story-text {
  flex: 2;
}

.story-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.result-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: var(--space-3);
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
}

.result-number {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-1);
}

.result-label {
  font-size: var(--font-size-sm);
  color: var(--text-color-light);
}

/* ===== INSTRUCTORS SECTION ===== */
.instructors {
  padding: var(--space-10) 0;
}

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

.team-grid .card {
  text-align: center;
}

.team-grid .card-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 0 auto var(--space-5);
  overflow: hidden;
}

.position {
  display: block;
  color: var(--text-color-lighter);
  margin-bottom: var(--space-3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  transition: all var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== COMMUNITY SECTION ===== */
.community {
  padding: var(--space-10) 0;
  background-color: var(--off-white);
}

.community-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.community-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

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

.community-text {
  flex: 1;
}

.community-text h3 {
  margin-bottom: var(--space-4);
}

.community-text ul {
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
}

.community-text li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
}

.community-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.community-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.event-calendar {
  margin-top: var(--space-8);
}

.event-calendar h3 {
  text-align: center;
  margin-bottom: var(--space-6);
}

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

.event-card {
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: var(--space-3);
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.event-date .month {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
}

.event-date .day {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.event-details {
  padding: var(--space-4);
  flex: 1;
}

.event-details h4 {
  margin-bottom: var(--space-2);
}

.event-location {
  font-size: var(--font-size-sm);
  color: var(--text-color-lighter);
  margin-bottom: var(--space-3);
}

.event-link {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--primary-color);
  font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--space-10) 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-info {
  flex: 1;
}

.info-item {
  margin-bottom: var(--space-6);
}

.info-item h3 {
  margin-bottom: var(--space-3);
  position: relative;
  padding-left: 15px;
}

.info-item h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.info-item p {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
}

.info-item i {
  margin-right: var(--space-3);
  color: var(--primary-color);
}

.contact-form-container {
  flex: 1;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

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

.form-group {
  margin-bottom: var(--space-4);
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin: 0;
}

.checkbox-label input {
  width: auto;
  margin-right: var(--space-2);
}

.form-submit {
  grid-column: span 2;
  text-align: center;
  margin-top: var(--space-4);
}

.map-container {
  margin-top: var(--space-8);
}

.map-container h3 {
  text-align: center;
  margin-bottom: var(--space-5);
}

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

/* ===== FOOTER ===== */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-10) 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-column {
  margin-bottom: var(--space-5);
}

.footer-logo {
  margin-bottom: var(--space-4);
}

.footer-column p {
  color: var(--gray-400);
  margin-bottom: var(--space-5);
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: var(--space-2);
}

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

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

.social-links {
  display: flex;
  gap: var(--space-3);
}

.footer .social-link {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer .social-link:hover {
  background-color: var(--primary-color);
}

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

.newsletter-form input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: var(--gray-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.copyright p {
  color: var(--gray-500);
  text-align: center;
  margin: 0;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
}

.legal-links a:hover {
  color: var(--white);
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
}

.success-container {
  max-width: 600px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

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

.success-title {
  margin-bottom: var(--space-4);
}

.success-message {
  margin-bottom: var(--space-6);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-container, .terms-container {
  max-width: 800px;
  margin: var(--space-10) auto;
  padding: var(--space-6);
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

.privacy-container h2, .terms-container h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
}

.privacy-container h3, .terms-container h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.privacy-container p, .terms-container p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-lg);
}

.privacy-container ul, .terms-container ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-5);
  list-style: disc;
}

.privacy-container li, .terms-container li {
  margin-bottom: var(--space-2);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animated-float {
  animation: float 3s ease-in-out infinite;
}

/* Particle animation for background elements */
@keyframes particle-movement {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(10px, -10px);
  }
  50% {
    transform: translate(20px, 0);
  }
  75% {
    transform: translate(10px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.particle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(78, 84, 200, 0.1);
  animation: particle-movement 15s ease-in-out infinite;
}

.particle:nth-child(even) {
  animation-duration: 20s;
  animation-delay: 2s;
}

.particle:nth-child(3n) {
  animation-duration: 25s;
  animation-delay: 4s;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 576px) {
  .hero-buttons {
    flex-wrap: nowrap;
  }
  
  .services-grid,
  .portfolio-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  
  .burger-menu {
    display: none;
  }
  
  .about-content,
  .innovation-content,
  .community-content {
    flex-direction: row;
  }
  
  .story-content {
    flex-direction: row;
  }
  
  .behind-scenes-item {
    flex-direction: row;
    text-align: left;
  }
  
  .behind-scenes-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .contact-content {
    flex-direction: row;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .copyright p {
    text-align: left;
  }
  
  .legal-links {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .team-grid,
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
  }
  
  .process-step:not(:last-child)::after {
    top: 60px;
    left: 30px;
    height: calc(100% + var(--space-8) - 60px);
  }
}

/* Animation for ScrollReveal */
[data-sr-id] {
  visibility: hidden;
}