/* CSS Variables */
:root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  
  /* Secondary Colors */
  --secondary-color: #1e40af;
  --secondary-dark: #1e3a8a;
  --secondary-light: #3b82f6;
  
  /* Neutral Colors */
  --dark: #111827;
  --gray-dark: #374151;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --light: #f9fafb;
  --white: #ffffff;
  
  /* Accent Colors */
  --accent-color: #4f46e5;
  --accent-dark: #4338ca;
  --accent-light: #818cf8;
  
  /* Font Families */
  --heading-font: 'Archivo Black', sans-serif;
  --body-font: 'Roboto', sans-serif;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  
  /* Box Shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glassmorphism: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

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

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

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  text-transform: none;
  box-shadow: var(--shadow);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

/* Header/Navigation */
header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glassmorphism);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

nav a {
  position: relative;
  font-weight: 500;
}

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

nav a:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobileMenu {
  transition: var(--transition-fast);
}

#mobileMenuBtn {
  transition: var(--transition-fast);
}

#mobileMenuBtn:hover {
  transform: scale(1.1);
}

/* Hero Section */
#hero {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  z-index: 1;
}

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

#hero h1 {
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease-out;
  color: var(--white);
}

#hero p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out;
  color: var(--white);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* About Section */
#about img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

/* Services Section */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

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

/* Research Section */
#research img {
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#research img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Clients Section */
#clients {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

#clients .card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Testimonials */
#clients .rounded-full {
  border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Accolades Section */
#accolades .bg-blue-50 {
  transition: var(--transition);
  background: rgba(239, 246, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 246, 255, 0.2);
}

#accolades .bg-blue-50:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Press Section */
#press .rounded-xl {
  transition: var(--transition);
}

#press .rounded-xl:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#press a {
  font-weight: 600;
  position: relative;
  display: inline-block;
}

#press a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

#press a:hover::after {
  width: 100%;
}

/* FAQ Section */
.faq-question {
  transition: var(--transition-fast);
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--primary-bg);
}

.faq-answer {
  transition: var(--transition-fast);
  max-height: 0;
  overflow: hidden;
}

.faq-answer.show {
  max-height: 500px;
}

/* Contact Section */
#contact {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

#contact input,
#contact textarea {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#contact img {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

#contact img:hover {
  transform: scale(1.02);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
}

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

footer a:hover {
  color: var(--white);
}

footer .border-t {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
#cookieConsent {
  transition: var(--transition);
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#acceptCookies {
  transition: var(--transition-fast);
}

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

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

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

/* Privacy & Terms Pages */
.page-content {
  padding-top: 120px;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

/* Image styles */
img {
  max-width: 100%;
  height: auto;
}

/* Glassmorphism utility classes */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glassmorphism);
}

.glass-dark {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glassmorphism);
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-up {
  animation: slideUp 1s ease-out;
}

.slide-down {
  animation: slideDown 1s ease-out;
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* External Resources Section */
#research .mt-16 {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.7), rgba(219, 234, 254, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(239, 246, 255, 0.3);
  transition: var(--transition);
}

#research .mt-16:hover {
  box-shadow: var(--shadow-lg);
}

#research .mt-16 a {
  transition: var(--transition);
}

#research .mt-16 a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Read more links */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-right: 20px;
}

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

.read-more:hover::after {
  right: -5px;
}

/* Media queries */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  #hero {
    background-attachment: scroll;
  }
  
  .card-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .btn, button, input[type="submit"] {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .card-image {
    height: 160px;
  }
}

/* Statistics widgets */
.bg-blue-50 {
  background-color: rgba(239, 246, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.bg-blue-50:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bg-blue-50 h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Card image container styles */
.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Image container styles */
.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 50px;
}

.privacy-page h1, .terms-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.privacy-page h2, .terms-page h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--light);
}

.success-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.success-page p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.success-page .btn {
  margin-top: 1rem;
}

/* Social media links in footer */
footer a {
  position: relative;
  display: inline-block;
}

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

/* Additional Glassmorphism styles */
.bg-white.bg-opacity-10 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glassmorphism);
}

.bg-white.bg-opacity-5 {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glassmorphism);
}