/* CSS Variables */
:root {
  /* Colors - Monochromatic Scheme */
  --primary-color: #2c3e50;
  --primary-dark: #1a252f;
  --primary-light: #34495e;
  --secondary-color: #ecf0f1;
  --secondary-dark: #bdc3c7;
  --accent-color: #3498db;
  --accent-dark: #2980b9;
  --accent-light: #5dade2;
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ffffff;
  --text-muted: #95a5a6;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  --bg-light: #ecf0f1;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  --gradient-overlay: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.5));
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Borders */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-color: #e1e8ed;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 6px rgba(44, 62, 80, 0.1);
  --shadow-lg: 0 10px 15px rgba(44, 62, 80, 0.1);
  --shadow-3d: 0 8px 32px rgba(44, 62, 80, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

p {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

/* Global Button Styles */
.btn, 
button, 
input[type="submit"], 
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--gradient-accent);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.btn::before,
button::before,
input[type="submit"]::before,
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-normal);
}

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

.btn:hover::before,
button:hover::before,
input[type="submit"]:hover::before,
.button:hover::before {
  left: 100%;
}

.btn:active,
button:active,
input[type="submit"]:active,
.button:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--text-light);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 900;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-normal);
}

.navbar-item:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.hero .hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xxl) 0;
}

.hero .title {
  color: var(--text-light) !important;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
  color: var(--text-light) !important;
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  will-change: transform;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(52, 152, 219, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-3d);
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  text-align: center;
}

.card-content .title {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-content p {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Sections */
.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section.has-background-light {
  background-color: var(--bg-secondary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-primary);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: var(--spacing-md);
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

/* FAQ Accordion */
.accordion {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: var(--spacing-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
}

.accordion-header:hover {
  background: var(--bg-secondary);
}

.accordion-header .title {
  margin: 0;
  color: var(--text-primary);
}

.accordion-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 var(--spacing-lg);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: var(--bg-primary);
}

.accordion-item.active .accordion-content {
  padding: var(--spacing-lg);
  max-height: 500px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer .title {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  padding: var(--spacing-xs) 0;
}

.footer a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

/* Awards Section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.award-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.award-item:hover {
  transform: translateY(-5px) rotateY(5deg);
  box-shadow: var(--shadow-3d);
}

.award-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  display: block;
}

/* Animation Classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.6s ease forwards;
}

.animate-zoom-in {
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3D Effects */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

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

.success-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-3d);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xxl);
}

.content-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-page h1 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-color);
}

.content-page h2 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

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

.read-more:hover {
  color: var(--accent-dark);
  transform: translateX(3px);
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2rem;
    --spacing-xl: 1.5rem;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero .hero-body {
    padding: var(--spacing-xl) 0;
  }
  
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .card:hover {
    transform: translateY(-4px);
  }
  
  .card-3d:hover {
    transform: translateY(-4px);
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 480px) {
  .success-content {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg);
  }
  
  .content-page {
    padding-top: 80px;
  }
  
  .accordion-header {
    padding: var(--spacing-md);
  }
  
  .accordion-item.active .accordion-content {
    padding: var(--spacing-md);
  }
}

/* High Contrast Improvements */
.has-text-white {
  color: var(--text-light) !important;
}

.has-text-dark {
  color: var(--text-primary) !important;
}

.has-text-light {
  color: var(--text-light) !important;
}

.has-text-grey-dark {
  color: var(--text-secondary) !important;
}

/* Ensure proper contrast for all text elements */
.section .title,
.section .subtitle {
  color: var(--text-primary);
}

.hero .title,
.hero .subtitle {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 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 accessibility */
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  button,
  .btn {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

.is-4by3 {
  position: static;
}
.is-square {
  position: static;

}