/* ===== CSS VARIABLES ===== */
:root {
  /* Color System - Complementary Palette */
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8A5C;
  --secondary-color: #00D2FF;
  --secondary-dark: #00B8E6;
  --secondary-light: #33DAFF;
  
  /* Accent Colors */
  --accent-orange: #FF8500;
  --accent-blue: #0066CC;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --black: #000000;
  --dark-gray: #1F1F1F;
  --medium-gray: #666666;
  --light-gray: #F8F9FA;
  --border-gray: #E5E7EB;
  
  /* Neo-Brutalism Colors */
  --brutal-shadow: #000000;
  --brutal-border: #2D2D2D;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-orange) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-blue) 100%);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --card-padding: 30px;
  --button-padding: 15px 30px;
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-large: 20px;
  
  /* Shadows */
  --shadow-light: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-medium: 0 8px 25px rgba(0,0,0,0.15);
  --shadow-heavy: 8px 8px 0px var(--brutal-shadow);
  --shadow-brutal: 6px 6px 0px var(--brutal-border);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 16px;
  color: var(--medium-gray);
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn {
  display: inline-block;
  padding: var(--button-padding);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 160px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-brutal);
  border: 3px solid var(--brutal-border);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px var(--brutal-shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-brutal);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-brutal);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--primary-dark);
}

.btn-full {
  width: 100%;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-padding {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  position: relative;
  display: inline-block;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

/* ===== HEADER STYLES ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 40px;
  color: var(--white);
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

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

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.about-text p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-image {
  position: relative;
  text-align: center;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
  border: 4px solid var(--primary-color);
}

/* ===== METHODOLOGY SECTION ===== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.methodology-card {
  background: var(--white);
  padding: var(--card-padding);
  border-radius: var(--border-radius-large);
  text-align: center;
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.methodology-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px var(--brutal-shadow);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.methodology-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies {
  background: var(--light-gray);
}

.carousel-container {
  position: relative;
}

.cases-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.case-card {
  background: var(--white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0px var(--brutal-shadow);
}

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

.case-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  margin: 0 auto;
}

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

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

.case-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.case-details {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.difficulty, .duration {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty {
  background: var(--gradient-primary);
  color: var(--white);
}

.duration {
  background: var(--gradient-secondary);
  color: var(--white);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: var(--card-padding);
  border-radius: var(--border-radius-large);
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px var(--brutal-shadow);
}

.testimonial-card .card-image {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin: 0 auto;
}

.testimonial-card p {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.testimonial-author strong {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-author span {
  display: block;
  font-size: 14px;
  color: var(--medium-gray);
  margin-top: 5px;
}

/* ===== NEWS SECTION ===== */
.news {
  background: var(--light-gray);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0px var(--brutal-shadow);
}

.news-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  text-align: center;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  margin: 0 auto;
}

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

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

.news-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.news-meta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.date, .category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 15px;
}

.date {
  background: var(--accent-purple);
  color: var(--white);
}

.category {
  background: var(--accent-pink);
  color: var(--white);
}

/* ===== RESOURCES SECTION ===== */
.resources {
  background: var(--white);
}

.resources-content p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--medium-gray);
}

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

.resource-card {
  background: var(--light-gray);
  padding: var(--card-padding);
  border-radius: var(--border-radius-large);
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
  text-align: center;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px var(--brutal-shadow);
}

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

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-item strong {
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-item span {
  color: var(--medium-gray);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-large);
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-brutal);
}

.form-group {
  margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 3px solid var(--border-gray);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

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

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

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
}

.success-content {
  text-align: center;
  max-width: 600px;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--border-radius-large);
  border: 4px solid var(--brutal-border);
  box-shadow: var(--shadow-heavy);
}

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

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.privacy-content h1,
.terms-content h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.privacy-content h2,
.terms-content h2 {
  color: var(--dark-gray);
  margin-top: 40px;
  margin-bottom: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 15px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .methodology-grid,
  .cases-carousel,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .btn {
    min-width: auto;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .case-details,
  .news-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

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

.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.parallax-bg {
  will-change: transform;
}

.card-image img,
.about-image img {
  will-change: transform;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #FF4500;
    --secondary-color: #0080FF;
    --dark-gray: #000000;
    --medium-gray: #333333;
  }
}