/* CSS Variables for Analog Color Scheme with Retro Elements */
:root {
  /* Primary Analog Colors */
  --primary-color: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8F70;
  --secondary-color: #FFD23F;
  --secondary-dark: #E6BE35;
  --secondary-light: #FFE082;
  --tertiary-color: #06FFA5;
  --tertiary-dark: #05E694;
  --tertiary-light: #4DFFB8;
  
  /* Neutral Colors */
  --dark-color: #2D3748;
  --dark-light: #4A5568;
  --light-color: #F7FAFC;
  --light-dark: #EDF2F7;
  --white: #FFFFFF;
  --black: #000000;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-color) 0%, var(--primary-color) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 100%);
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  
  /* Shadows and Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  --shadow-retro: 4px 4px 8px rgba(0, 0, 0, 0.3);
  
  /* 3D UI Elements */
  --border-3d: 2px solid var(--primary-color);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  /* Animation Variables */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-light);
}

/* Global Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--border-radius);
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-tertiary);
  color: var(--white);
}

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

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.btn-animated:hover::before {
  left: 100%;
}

button, input[type="submit"] {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

/* Header/Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark-color) !important;
  position: relative;
  transition: all var(--transition-normal);
  margin: 0 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-attachment: fixed;
  position: relative;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(255, 107, 53, 0.3) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--white) !important;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--tertiary-color);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.floating-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.floating-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Particle Animation */
@keyframes particleFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--tertiary-color);
  border-radius: 50%;
  animation: particleFloat 4s ease-in-out infinite;
  opacity: 0.7;
}

/* Sections */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

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

/* History Section */
.history-section {
  padding: 80px 0;
  background: var(--white);
}

.history-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.history-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

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

/* Case Studies Section */
.case-studies-section {
  padding: 80px 0;
  background: var(--light-dark);
}

.case-study-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: none;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

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

.case-study-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.case-study-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.case-metrics {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}

.metric {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 2px solid var(--light-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card .card-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.testimonial-card .role {
  color: var(--dark-light);
  font-style: italic;
  margin-bottom: 1rem;
}

.rating {
  font-size: 1.2rem;
  margin-top: auto;
}

/* Partners Section */
.partners-section {
  padding: 80px 0;
  background: var(--light-dark);
}

.partner-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.partner-card img {
  width: 100%;
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  border-radius: var(--border-radius);
}

.partner-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Resources Section */
.resources-section {
  padding: 80px 0;
  background: var(--white);
}

.resource-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--light-dark);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.resource-card .card-content {
  flex-grow: 1;
  text-align: center;
}

.external-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.external-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Webinars Section */
.webinars-section {
  padding: 80px 0;
  background: var(--light-dark);
}

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

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

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

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

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

.webinar-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.webinar-date {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.webinar-info {
  display: flex;
  justify-content: space-around;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--dark-light);
}

.webinar-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--white);
  background-image: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-dark);
}

.form-control, .form-select {
  border: 2px solid var(--light-dark);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: all var(--transition-normal);
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

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

.footer-title {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--light-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.social-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  font-weight: 500;
}

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0 1rem;
}

.copyright, .footer-contact {
  color: var(--light-dark);
  margin: 0;
  font-size: 0.95rem;
}

/* Success Page Styles */
.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  text-align: center;
}

.success-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
}

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

.success-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-message {
  color: var(--dark-light);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: 80px;
  background: var(--white);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.content-page h2 {
  color: var(--dark-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-page h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.content-page p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-page ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  color: var(--dark-light);
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Consent */
.cookie-consent {
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 107, 53, 0.3);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.border-gradient {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.border-gradient::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
}

/* Read More Links */
.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all var(--transition-normal);
}

.read-more::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
  
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.6rem; }
  
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .case-study-card .card-content,
  .testimonial-card .card-content,
  .webinar-card .card-content {
    padding: 1.5rem;
  }
}

/* Performance Optimizations */
.card, .btn, .form-control {
  will-change: transform;
}

.parallax-bg {
  transform: translate3d(0, 0, 0);
}

/* Print Styles */
@media print {
  .navbar, .hero-section, .footer {
    display: none;
  }
  
  .content-page {
    padding-top: 0;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}