:root {
  /* Tetrad color scheme */
  --primary-color: #4a00e0;
  --primary-light: #6c2ff1;
  --primary-dark: #3900b3;
  
  --secondary-color: #e0004a;
  --secondary-light: #f12f72;
  --secondary-dark: #b3003b;
  
  --tertiary-color: #00e04a;
  --tertiary-light: #2ff16c;
  --tertiary-dark: #00b33b;
  
  --quaternary-color: #e0a400;
  --quaternary-light: #f1bc2f;
  --quaternary-dark: #b38300;
  
  /* Neutral colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --black: #212529;
  
  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 10px;
  
  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Work Sans', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --card-padding: 25px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Border radius */
  --border-radius-small: 6px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

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

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

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--black);
  text-align: center;
  font-weight: 700;
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--dark-gray);
}

/* Glassmorphism effect */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  padding: var(--card-padding);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px 0 var(--glass-shadow);
}

/* Header and Navigation */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-area.sticky {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--black) !important;
  padding: 10px 15px !important;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: 5px;
  left: 15px;
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link:hover:after {
  width: calc(100% - 30px);
}

/* Button styles */
.btn {
  font-family: var(--heading-font);
  font-weight: 500;
  border-radius: var(--border-radius-small);
  padding: 12px 30px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

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

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 0, 224, 0.2);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 0, 224, 0.2);
}

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

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(224, 0, 74, 0.2);
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(224, 0, 74, 0.2);
}

.btn-outline-light {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-link {
  color: var(--primary-color);
  padding: 0;
  font-weight: 600;
  position: relative;
  text-decoration: none;
  box-shadow: none;
}

.btn-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  bottom: -2px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

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

.btn-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

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

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

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--white);
  max-width: 80%;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Products Section */
.products-section {
  position: relative;
  background-color: var(--white);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium);
  overflow: hidden;
}

.product-card .card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--border-radius-small);
  margin-bottom: 20px;
}

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

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

.product-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.product-stats {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 15px;
}

.stat-item {
  background-color: rgba(74, 0, 224, 0.1);
  padding: 5px 12px;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
}

.stat-label {
  font-weight: 600;
  margin-right: 5px;
  color: var(--primary-color);
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 15px 0;
}

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

.methodology-card {
  text-align: center;
  height: 100%;
  transition: transform var(--transition-medium);
}

.methodology-card .card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.methodology-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.methodology-process {
  margin-top: 50px;
  padding: 30px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

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

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

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

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

.resource-links li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.resource-links li:before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

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

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

/* Case Studies Section */
.case-studies-section {
  background-color: var(--light-gray);
  position: relative;
}

.case-study-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-study-card .card-image {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: var(--border-radius-small);
  margin-bottom: 20px;
}

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

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

.case-study-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.case-study-stats {
  display: flex;
  gap: 30px;
  margin-top: auto;
  padding-top: 20px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

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

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius-small);
  margin-bottom: 20px;
}

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

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

.project-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Customer Stories Section */
.customer-stories-section {
  background-color: var(--light-gray);
  position: relative;
}

.story-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.story-card .card-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
}

.story-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card .card-content {
  flex: 1;
}

.story-card h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.customer-role {
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.rating {
  color: var(--quaternary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Events Section */
.events-section {
  background-color: var(--white);
  position: relative;
}

.event-card {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.event-date {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 15px;
  border-radius: var(--border-radius-small);
  min-width: 80px;
  flex-shrink: 0;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

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

.event-content {
  flex: 1;
}

.event-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.event-location, .event-time {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-content .btn {
  margin-top: 15px;
}

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

.press-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.press-logo {
  margin-bottom: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-logo img {
  max-height: 100%;
  object-fit: contain;
}

.press-card h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.press-date {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 15px;
}

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

.contact-info {
  height: fit-content;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.contact-list li i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

.contact-list li div {
  flex: 1;
}

.contact-list li h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.opening-hours h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.map-container {
  height: 300px;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
}

.contact-form {
  height: 100%;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-small);
  padding: 12px 15px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(74, 0, 224, 0.25);
}

/* Footer */
.footer-section {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 70px 0 20px;
  position: relative;
}

.footer-info h3, .footer-links h3, .footer-newsletter h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-info h3:after, .footer-links h3:after, .footer-newsletter h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.footer-contact li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li i {
  color: var(--primary-color);
  margin-top: 5px;
}

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

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

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

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.social-links a {
  color: var(--white);
  margin-right: 10px;
  transition: color var(--transition-fast);
}

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

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

/* Page specific styles */
.about-page, .privacy-page, .terms-page {
  padding-top: 100px;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 0;
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary-color);
  margin-bottom: 30px;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    max-width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    margin-bottom: 15px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .case-study-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-info h3:after, .footer-links h3:after, .footer-newsletter h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-info, .footer-links, .footer-newsletter {
    text-align: center;
  }
  
  .footer-contact li {
    justify-content: center;
  }
}

/* Animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.active {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
  opacity: 1;
  transform: scale(1);
}

/* Scroll animations */
.reveal-from-bottom {
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.reveal-from-bottom.revealed {
  transform: translateY(0);
  opacity: 1;
}

.reveal-from-left {
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.reveal-from-left.revealed {
  transform: translateX(0);
  opacity: 1;
}

.reveal-from-right {
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.reveal-from-right.revealed {
  transform: translateX(0);
  opacity: 1;
}

/* Cookie consent */
#cookieConsent {
  background-color: rgba(33, 37, 41, 0.9) !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

#acceptCookies {
  background-color: var(--primary-color) !important;
  transition: background-color var(--transition-fast);
}

#acceptCookies:hover {
  background-color: var(--primary-light) !important;
}