/* ===== VARIABLES ===== */
:root {
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Retro Color Palette - Split-Complementary */
  --primary-color: #ff5a5f;           /* Vibrant Coral Red */
  --primary-light: #ff8e91;
  --primary-dark: #d23c40;
  
  --secondary-color: #3fa9f5;        /* Bright Blue */
  --secondary-light: #7cc5f8;
  --secondary-dark: #2a80c2;
  
  --accent-color: #ffc857;           /* Mustard Yellow */
  --accent-light: #ffe09e;
  --accent-dark: #d5a43c;
  
  --neutral-dark: #2d3142;           /* Dark Navy */
  --neutral-mid: #4f5d75;            /* Mid Gray Blue */
  --neutral-light: #e5e5e5;          /* Light Gray */
  --neutral-white: #ffffff;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  --transition-slow: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Container */
  --container-width: 1200px;
  --container-padding: 15px;
  
  /* Z-index levels */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

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

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

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

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

section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: -1rem auto var(--spacing-lg);
  color: var(--neutral-mid);
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--neutral-white);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--neutral-white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--neutral-white);
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--neutral-white);
}

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

.btn-outline:hover, .btn-outline:focus {
  background-color: var(--primary-color);
  color: var(--neutral-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 0.5rem 0;
  position: relative;
  font-weight: 600;
}

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

.btn-text:hover::after {
  width: 100%;
}

.btn-text:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

button, 
input[type='submit'] {
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-medium);
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  padding: 1rem 0;
  transition: all var(--transition-medium);
  background-color: var(--neutral-white);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  z-index: var(--z-tooltip);
}

.logo img {
  max-height: 60px;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  margin: 0 var(--spacing-sm);
}

.nav-links a {
  color: var(--neutral-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  text-decoration: none;
}

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

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

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: var(--z-tooltip);
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--neutral-dark);
  border-radius: 10px;
  transition: all var(--transition-medium);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--neutral-white);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  z-index: var(--z-back);
}

.hero-content {
  max-width: 800px;
  z-index: var(--z-normal);
  padding: var(--spacing-md);
}

.hero .title {
  color: var(--neutral-white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  color: var(--neutral-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--neutral-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.about-image {
  flex: 1;
}

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

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

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

.about-text {
  flex: 1;
}

.about-text h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

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

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--neutral-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

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

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  width: 220px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-description {
  font-size: 1.2rem;
  margin-bottom: 0;
}

/* ===== WEBINARS SECTION ===== */
.webinars-section {
  background-color: var(--neutral-white);
}

.webinars-slider {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-sm);
}

.webinar-cards {
  display: flex;
  gap: var(--spacing-md);
  transition: transform var(--transition-medium);
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--neutral-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  flex: 1;
  min-width: 320px;
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.webinar-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.prev-btn, .next-btn, .prev-testimonial, .next-testimonial {
  background-color: var(--primary-color);
  color: var(--neutral-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.prev-btn:hover, .next-btn:hover, 
.prev-testimonial:hover, .next-testimonial:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
  background-color: var(--neutral-light);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  background-color: var(--neutral-white);
  color: var(--neutral-mid);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: var(--neutral-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-item {
  opacity: 1;
  transition: opacity var(--transition-medium);
}

.portfolio-item.hide {
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  color: var(--neutral-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--spacing-xl) 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.2);
}

.resource-card h3 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

.resource-card p {
  color: var(--neutral-white);
  margin-bottom: 0;
}

/* ===== EVENTS SECTION ===== */
.events-section {
  background-color: var(--neutral-white);
}

.events-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.events-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--primary-light);
  z-index: var(--z-back);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-lg);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.timeline-content {
  width: calc(50% - 40px);
  margin-left: auto;
  box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.event-date {
  position: absolute;
  top: 0;
  right: calc(50% + 50px);
  background-color: var(--accent-color);
  color: var(--neutral-dark);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-tooltip);
}

.timeline-item:nth-child(even) .event-date {
  right: auto;
  left: calc(50% + 50px);
}

.day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.event-location {
  color: var(--neutral-mid);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--neutral-white);
  padding: var(--spacing-xl) 0;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.testimonial-cards {
  display: flex;
  transition: transform var(--transition-medium);
}

.testimonial {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
}

.testimonial .card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border: 4px solid var(--primary-color);
}

.testimonial-text {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.testimonial-author h4 {
  color: var(--accent-color);
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--neutral-light);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* ===== CUSTOMER STORIES SECTION ===== */
.customer-stories-section {
  background-color: var(--neutral-light);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

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

.story-card .card-image {
  height: 250px;
}

.story-card h3 {
  color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--neutral-white);
}

.contact-wrapper {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  background-color: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

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

.contact-image {
  margin-top: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  flex: 1.5;
  background-color: var(--neutral-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--neutral-dark);
}

input, 
select, 
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.2);
}

textarea {
  resize: vertical;
}

.form-toggle {
  display: flex;
  align-items: center;
}

.toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: var(--neutral-light);
  border-radius: 34px;
  margin-right: var(--spacing-sm);
  transition: background-color var(--transition-fast);
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--neutral-white);
  border-radius: 50%;
  transition: transform var(--transition-medium);
}

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

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

/* ===== FOOTER ===== */
.main-footer {
  background-color: var(--neutral-dark);
  color: var(--neutral-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: var(--neutral-light);
  transition: color var(--transition-fast), transform var(--transition-medium);
  display: inline-block;
}

.footer-column a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--spacing-xs);
}

.social-links a {
  padding: 5px 10px;
  color: var(--neutral-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  font-size: 0.85rem;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--neutral-light);
}

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

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

/* ===== TERMS & PRIVACY PAGES ===== */
.terms-page, .privacy-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-lg);
}

.terms-content, .privacy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--neutral-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.fade-in {
  animation: fadeIn var(--transition-medium) forwards;
}

.slide-up {
  animation: slideUp var(--transition-slow) forwards;
}

.scale-in {
  animation: scaleIn var(--transition-slow) forwards;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hide {
  display: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .contact-info, .contact-form {
    width: 100%;
  }
  
  .events-timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 0;
  }
  
  .event-date {
    left: 10px;
    top: 10px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .event-date {
    left: 10px;
    right: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--neutral-white);
    flex-direction: column;
    padding-top: 80px;
    align-items: center;
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: var(--spacing-xs) 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: var(--spacing-sm);
    width: 100%;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .stats-container {
    gap: var(--spacing-md);
  }
  
  .stat-item {
    width: calc(50% - var(--spacing-md));
  }
  
  .portfolio-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .footer-logo, .footer-links {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-item {
    width: 100%;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial {
    padding: var(--spacing-md);
  }
}