/* Variables */
:root {
  /* Brutalist Design System Colors - Split-Complementary Scheme */
  --primary-color: #ff3e4d;
  --primary-dark: #cc2a36;
  --primary-light: #ff6b76;
  
  --secondary-color: #3e91ff;
  --secondary-dark: #2a6ecc;
  --secondary-light: #6babff;
  
  --tertiary-color: #40e0b5;
  --tertiary-dark: #2bac89;
  --tertiary-light: #6cf0cc;
  
  --dark-color: #1a1a1a;
  --light-color: #f5f5f5;
  --gray-color: #7a7a7a;
  --light-gray: #e0e0e0;
  
  /* Typography */
  --heading-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Border Radius */
  --border-radius: 0;
  --border-radius-sm: 4px;
  --card-border: 4px solid var(--primary-color);
  
  /* Shadows */
  --box-shadow: 12px 12px 0 0 rgba(0,0,0,0.2);
  --text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

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

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

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

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

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

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--spacing-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn-primary,
.btn-secondary,
button,
input[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: 
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 6px 6px 0 0 var(--primary-dark);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 0 var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 6px 6px 0 0 var(--secondary-dark);
}

.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 0 var(--secondary-dark);
  text-decoration: none;
}

/* Section Styles */
section {
  padding: var(--spacing-lg) 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 6px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-color);
  padding: var(--spacing-sm) 0;
}

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

.logo a {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

.nav-links li {
  margin-left: var(--spacing-md);
}

.nav-links a {
  color: var(--light-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--light-color);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--spacing-md);
}

.hero-content h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  text-shadow: var(--text-shadow);
  transform: perspective(1000px) rotateX(0deg);
  transition: transform var(--transition-normal);
}

.hero-content p {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  text-shadow: var(--text-shadow);
}

.hero-content:hover h1 {
  transform: perspective(1000px) rotateX(5deg);
}

/* Services Section */
.services-section {
  background-color: var(--light-color);
}

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

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

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

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

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

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

.card-content {
  padding: var(--spacing-md);
  text-align: center;
  flex: 1;
}

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

/* Process Section */
.process-section {
  background-color: var(--light-gray);
  position: relative;
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
}

.process-step {
  position: relative;
  padding-left: 60px;
  margin-bottom: var(--spacing-lg);
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
  z-index: 1;
}

.step-content {
  background-color: white;
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--box-shadow);
}

.step-content h3 {
  color: var(--primary-color);
}

/* Projects Section */
.projects-section {
  background-color: var(--light-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.portfolio-section .section-title {
  color: var(--light-color);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 350px;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: var(--spacing-md);
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

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

.portfolio-overlay p {
  color: var(--light-color);
}

/* Stats Section */
.stats-section {
  background-color: var(--tertiary-color);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}

.stat-card {
  padding: var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-sm);
  font-family: var(--heading-font);
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
}

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

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

.resource-card {
  background-color: white;
  padding: var(--spacing-md);
  border: var(--card-border);
  box-shadow: var(--box-shadow);
}

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

.resource-card ul {
  list-style-type: none;
}

.resource-card li {
  margin-bottom: var(--spacing-xs);
}

.resource-card a {
  color: var(--secondary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

/* Behind the Scenes */
.behind-scenes-section {
  background-color: var(--light-color);
}

.scenes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.scenes-image img {
  width: 100%;
  height: auto;
  box-shadow: var(--box-shadow);
  border: var(--card-border);
}

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

/* History Section */
.history-section {
  background-color: var(--light-gray);
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

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

.timeline-year {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  background-color: white;
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
}

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

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

.webinars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--light-gray);
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.testimonial {
  background-color: white;
  padding: var(--spacing-md);
  border: var(--card-border);
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-content {
  text-align: center;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding: 0 var(--spacing-sm);
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  font-size: 3rem;
  color: var(--light-gray);
  position: absolute;
  line-height: 1;
}

.testimonial-content p::before {
  top: -20px;
  left: 0;
}

.testimonial-content p::after {
  bottom: -40px;
  right: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-sm);
}

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

.author-info h4 {
  margin-bottom: 0;
  color: var(--primary-color);
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--gray-color);
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
}

.contact-info {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow);
}

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

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

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  background-color: var(--light-color);
  font-family: var(--body-font);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  position: relative;
}

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

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

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

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

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

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

.social-links a {
  display: inline-block;
  color: var(--light-color);
  transition: color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

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

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

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

.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;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
}

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

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

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

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

.privacy-content h1,
.terms-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.privacy-content h2,
.terms-content h2 {
  color: var(--secondary-color);
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .scenes-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    padding: var(--spacing-md);
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: var(--spacing-xs) 0;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
  }
  
  .timeline-year {
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .process-timeline::before {
    left: 10px;
  }
  
  .process-step {
    padding-left: 40px;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .testimonial {
    min-width: 100%;
  }
}

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

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

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

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

@keyframes countUp {
  from {
    content: "0";
  }
  to {
    content: attr(data-count);
  }
}

/* 3D Effects */
.card,
.portfolio-item,
.testimonial,
.resource-card,
.contact-form,
.contact-info {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: 
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.card:hover,
.portfolio-item:hover,
.testimonial:hover,
.resource-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 15px 15px 0 0 rgba(0,0,0,0.3);
}

/* Success page */
.success-page {
  background-color: var(--light-color);
}

/* Additional Animations */
[data-aos="custom-fade"] {
  opacity: 0;
  transition-property: opacity;
}

[data-aos="custom-fade"].aos-animate {
  opacity: 1;
}

/* Script for counting animation */
document.addEventListener('DOMContentLoaded', function() {
  // Initialize AOS
  AOS.init({
    duration: 800,
    easing: 'ease-in-out',
    once: true,
    mirror: false
  });

  // Animated counting for stats
  const statNumbers = document.querySelectorAll('.stat-number');
  
  statNumbers.forEach(stat => {
    const target = parseInt(stat.getAttribute('data-count'));
    const duration = 2000; // ms
    const stepTime = 50; // ms
    const steps = duration / stepTime;
    const increment = target / steps;
    let current = 0;
    
    const counter = setInterval(() => {
      current += increment;
      
      if (current >= target) {
        stat.textContent = target;
        clearInterval(counter);
      } else {
        stat.textContent = Math.floor(current);
      }
    }, stepTime);
  });

  // Burger menu toggle
  const burgerMenu = document.getElementById('burger-menu');
  const navLinks = document.querySelector('.nav-links');
  
  if (burgerMenu) {
    burgerMenu.addEventListener('click', () => {
      navLinks.classList.toggle('active');
      burgerMenu.classList.toggle('active');
    });
  }
});