:root {
  /* Tetrad Color Scheme */
  --primary-color: #6200ea;
  --primary-light: #9d46ff;
  --primary-dark: #0a00b6;
  
  --secondary-color: #ea0062;
  --secondary-light: #ff5c8d;
  --secondary-dark: #b1003a;
  
  --tertiary-color: #00ea62;
  --tertiary-light: #5cff9d;
  --tertiary-dark: #00b13a;
  
  --quaternary-color: #ea6200;
  --quaternary-light: #ff9d46;
  --quaternary-dark: #b13a00;
  
  /* Neutral Colors */
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-surface-light: #2d2d2d;
  --dark-text: #e0e0e0;
  --dark-text-secondary: #a0a0a0;
  
  /* Font Families */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-blur: 10px;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

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

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

/* ===== Utility Classes ===== */
.section-padding {
  padding: var(--section-padding);
}

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

.mb-5 {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  color: #ffffff;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--dark-text-secondary);
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ===== Glassmorphism Effects ===== */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 10px;
}

.glassmorphism-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 15px;
  padding: 2rem;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glassmorphism-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.glassmorphism-dark {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--glass-shadow);
  border-radius: 15px;
  padding: 2.5rem;
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width var(--transition-fast);
  z-index: -1;
}

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

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

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.animated-button {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.animated-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

.animated-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===== Header ===== */
.header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background: rgba(18, 18, 18, 0.95);
  padding: 0.75rem 0;
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: white;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

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

/* ===== Methodology Section ===== */
#methodology {
  background-color: var(--dark-surface);
  position: relative;
}

.card-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.glassmorphism-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.glassmorphism-card p {
  color: var(--dark-text);
  text-align: center;
}

/* ===== Portfolio Section ===== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.section-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.portfolio-card {
  text-align: center;
  overflow: hidden;
  height: 100%;
}

.portfolio-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

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

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

.portfolio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.portfolio-card p {
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ===== Resources Section ===== */
#resources {
  background-color: var(--dark-surface-light);
}

.resource-card {
  text-align: center;
  padding: 2rem;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.resource-card p {
  margin-bottom: 1.5rem;
}

/* ===== Gallery Section ===== */
.gallery-container {
  position: relative;
}

.gallery-item {
  margin-bottom: 2rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 0;
  height: 250px;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  color: white;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
  text-align: left;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.gallery-overlay p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== FAQ Section ===== */
#faq {
  background-color: var(--dark-surface);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  background: transparent;
}

.accordion-button {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  color: white;
  border-radius: 10px !important;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--glass-border);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background: rgba(30, 30, 30, 0.4);
  border-radius: 0 0 10px 10px;
  color: var(--dark-text);
}

/* ===== Contact Section ===== */
.contact-form {
  padding: 2.5rem;
}

.form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 3px rgba(98, 0, 234, 0.25);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-info {
  padding: 2.5rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--primary-light);
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--dark-text-secondary);
}

/* ===== Footer Section ===== */
.footer-section {
  padding: 4rem 0 2rem;
  background-color: var(--dark-bg);
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-text {
  color: var(--dark-text-secondary);
  margin-bottom: 1.5rem;
}

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

.social-link {
  color: var(--dark-text);
  font-weight: 500;
  transition: color var(--transition-fast);
  margin-right: 1.5rem;
}

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

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

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

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

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

/* ===== Cookie Consent ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  margin-right: 1rem;
  color: white;
}

/* ===== Animations ===== */
.animated-title {
  animation: fadeInUp 1s ease-out;
}

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

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-bg);
}

.success-content {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
}

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.success-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-text);
}

/* ===== Terms & Privacy Pages ===== */
.page-content {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

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

.page-content li {
  margin-bottom: 0.5rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .glassmorphism-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-content {
    padding: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .contact-form, .contact-info {
    padding: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .footer-section {
    padding: 3rem 0 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .accordion-button {
    font-size: 1rem;
    padding: 1.25rem;
  }
}

/* ===== Utility Animations ===== */
/* For ScrollReveal */
.reveal-fade-bottom {
  visibility: hidden;
}

.reveal-fade-left {
  visibility: hidden;
}

.reveal-fade-right {
  visibility: hidden;
}

.reveal-fade-top {
  visibility: hidden;
}

.reveal-zoom-in {
  visibility: hidden;
}

.reveal-flip {
  visibility: hidden;
}

/* ===== Additional Component Styles ===== */
/* Badges */
.badge-primary {
  background-color: var(--primary-color);
}

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

.badge-tertiary {
  background-color: var(--tertiary-color);
}

.badge-quaternary {
  background-color: var(--quaternary-color);
}

/* Read More Links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-color);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Card Hover Effects */
.card-hover-effect {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card-hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
}

/* Image Containers */
.image-container {
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: center;
}

.image-container img {
  transition: transform var(--transition-medium);
  width: 100%;
  height: auto;
  margin: 0 auto;
}

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

/* Forms */
textarea.form-control {
  min-height: 120px;
}

/* Buttons with icons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon i {
  transition: transform var(--transition-fast);
}

.btn-icon:hover i {
  transform: translateX(3px);
}