/* ==========================================================================
   Base Variables and Typography
   ========================================================================== */
:root {
  /* Color System */
  --primary-color: #2962ff;
  --primary-dark: #0039cb;
  --primary-light: #768fff;
  --secondary-color: #ff3d00;
  --secondary-dark: #c30000;
  --secondary-light: #ff7539;
  --accent-color: #00c853;
  --accent-dark: #009624;
  --accent-light: #5efc82;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --warning: #fbbf24;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-hero: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

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

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

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

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

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

section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-white { color: white !important; }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--gray-100); }
.bg-dark { background-color: var(--gray-900); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  line-height: 1.25;
  border: none;
  font-family: var(--font-heading);
}

.button:hover, button:hover, input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active, button:active, input[type="submit"]:active {
  transform: translateY(0);
}

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

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

.button.is-secondary, .button.is-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
}

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

.button.is-accent, .button.is-accent:hover {
  background-color: var(--accent-color);
  color: white;
}

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

.button.is-light, .button.is-light:hover {
  background-color: white;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.button.is-light:hover {
  background-color: var(--gray-100);
}

.button.is-large {
  font-size: 1.125rem;
  padding: 0.875rem 1.75rem;
}

.button.is-small {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-normal);
  z-index: 100;
}

.navbar-brand h1 {
  margin: 0;
  font-weight: 600;
}

.navbar-item {
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all var(--transition-normal);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent !important;
}

.navbar-burger {
  color: var(--gray-800);
}

/* Responsive navbar */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
  }
}

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

.hero-body {
  padding: 6rem 1.5rem;
}

.hero .title, 
.hero .subtitle {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero .title {
  font-size: 3rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
}

.hero .buttons {
  margin-top: 2rem;
}

.progress-stats {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--transition-normal);
}

.progress-stats:hover {
  transform: perspective(1000px) rotateY(0);
}

.progress-item .progress {
  height: 0.75rem;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Features/Services Section
   ========================================================================== */
.features-section {
  background-color: var(--gray-50);
}

.service-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.service-card .card-image {
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card .title {
  color: var(--gray-900);
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 6rem 0;
}

.vision-section .box {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  height: 100%;
  transform: perspective(1000px) rotateX(3deg);
  transition: transform var(--transition-normal);
}

.vision-section .box:hover {
  transform: perspective(1000px) rotateX(0);
}

.value-item {
  margin-bottom: 1.5rem;
}

.value-item:last-child {
  margin-bottom: 0;
}

.value-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* ==========================================================================
   Resources Section
   ========================================================================== */
.resources-section {
  background-color: white;
}

.resource-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.resource-card .card-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.resource-card .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   Behind the Scenes Section
   ========================================================================== */
.behind-scenes-section {
  background-color: var(--gray-50);
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gallery-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-slide:hover .slide-caption {
  transform: translateY(0);
}

.gallery-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.gallery-controls button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--gray-800);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-controls button:hover {
  background: white;
}

/* ==========================================================================
   Events Calendar Section
   ========================================================================== */
.events-section {
  background-color: white;
}

.event-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

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

.image-container {
  position: relative;
  width: 100%;
}

.event-card .image-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  box-shadow: var(--shadow-md);
}

.date-badge .month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.date-badge .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-card .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-time {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Webinars Section
   ========================================================================== */
.webinars-section {
  background-color: var(--gray-50);
}

.webinar-card {
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

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

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

.webinar-card .card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.webinar-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.webinar-badge.is-primary {
  background: var(--primary-color);
  color: white;
}

.webinar-badge.is-info {
  background: var(--info);
  color: white;
}

.webinar-card .card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-section {
  background-color: white;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.partner-logo img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition-normal);
}

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

/* ==========================================================================
   History Section
   ========================================================================== */
.history-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 6rem 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-marker {
  background-color: var(--secondary-color);
  transform: translateX(-50%) scale(1.2);
}

.timeline-content {
  width: 45%;
  padding: 0 20px;
  position: relative;
}

.timeline-content .card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  transform: perspective(1000px) rotateY(-3deg);
}

.timeline-content:hover .card {
  transform: perspective(1000px) rotateY(0);
  box-shadow: var(--shadow-lg);
}

@media screen and (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 60px;
  }
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers-section {
  background-color: var(--gray-50);
}

.careers-section .card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
}

.careers-section .card:hover {
  box-shadow: var(--shadow-lg);
}

.job-listing {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.job-listing:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: white;
}

.contact-info-card {
  height: 100%;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form .label {
  font-weight: 500;
  color: var(--gray-800);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  transition: all 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(41, 98, 255, 0.2);
}

.contact-form .checkbox a {
  color: var(--primary-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--gray-900);
  color: white;
  padding: 5rem 0 2rem;
}

.footer .title {
  color: white;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--gray-300);
}

.footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--gray-300);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
  text-decoration: none;
}

.newsletter .input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid var(--gray-700);
  background-color: var(--gray-800);
  color: white;
}

.newsletter .button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.copyright {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
}

/* ==========================================================================
   Special Pages (Success, Privacy, Terms)
   ========================================================================== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--gray-50);
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  text-align: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.privacy-page,
.terms-page,
.about-page {
  padding-top: 100px;
}

.privacy-content,
.terms-content,
.about-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Animations and Effects
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations to specific elements */
.service-card,
.resource-card,
.event-card,
.webinar-card,
.partner-logo,
.timeline-content,
.job-listing {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}

.service-card:nth-child(odd),
.resource-card:nth-child(odd),
.timeline-content:nth-child(odd) {
  animation-delay: 0.2s;
}

.service-card:nth-child(even),
.resource-card:nth-child(even),
.timeline-content:nth-child(even) {
  animation-delay: 0.4s;
}

/* Media Queries */
@media (max-width: 1023px) {
  .section {
    padding: 4rem 0;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    justify-content: flex-start !important;
  }
  
  .timeline-marker {
    left: 40px;
  }
  
  .timeline-content {
    width: calc(100% - 90px);
    margin-left: 70px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2.5rem 0;
  }
  
  .hero .title {
    font-size: 1.75rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
}