/* CSS Variables for Consistent Theme */
:root {
  /* Primary Colors - Monochromatic Scale */
  --primary-color: #2c5aa0;
  --primary-light: #4a7bc8;
  --primary-dark: #1e3f73;
  --primary-darker: #152d52;
  
  /* Secondary Colors */
  --secondary-color: #5a7ba0;
  --secondary-light: #7c9bc8;
  --secondary-dark: #3f5a73;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8fafc;
  --gray: #e2e8f0;
  --dark-gray: #64748b;
  --darker-gray: #475569;
  --black: #1e293b;
  
  /* Glass Effect Colors */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  
  /* Typography */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Rubik', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary) !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

.title.is-1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.title.is-2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.subtitle.is-3 {
  font-size: 1.75rem;
  font-weight: 500;
}

/* Global Button Styles */
.btn, 
.button, 
button, 
input[type="submit"] {
  font-family: var(--font-secondary);
  font-weight: 500;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

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

.button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 90, 160, 0.3);
  border-color: var(--primary-light);
}

.glass-button {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--white);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--glass-shadow);
}

.button.is-outlined {
  border: 2px solid currentColor;
  background: transparent;
}

.button.is-outlined:hover {
  background: currentColor;
  color: var(--white);
  transform: translateY(-2px);
}

/* Glass Effect Components */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all var(--transition-normal);
}

.glass-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Header Styles */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
}

.navbar-item {
  color: var(--black);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  margin: 0 var(--spacing-xs);
}

.navbar-item:hover {
  color: var(--primary-color);
  background: rgba(44, 90, 160, 0.1);
  transform: translateY(-1px);
}

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

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

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

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

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

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

.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-in:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-in:nth-child(3) {
  animation-delay: 0.4s;
}

.animate-in:nth-child(4) {
  animation-delay: 0.6s;
}

/* Stat Widget */
.stat-widget {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Card Styles */
.card {
  border-radius: var(--border-radius-lg);
  border: none;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.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 var(--transition-slow);
  margin: 0 auto;
}

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

.card-content {
  padding: var(--spacing-lg);
  text-align: center;
  flex-grow: 1;
}

/* Process Cards */
.process-card {
  height: 100%;
  text-align: center;
}

.process-card .card-image {
  height: 180px;
}

.progress-indicator {
  margin-top: var(--spacing-md);
}

.progress {
  height: auto;
  border-radius: var(--border-radius-sm);
}

.progress.is-primary {
  background-color: var(--gray);
}

.progress.is-primary::-webkit-progress-value {
  background: var(--gradient-primary);
}

.progress.is-primary::-moz-progress-bar {
  background: var(--gradient-primary);
}

/* Timeline Container */
.timeline-container {
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  z-index: -1;
}

/* Gallery Styles */
.gallery-item {
  height: 100%;
  text-align: center;
}

.gallery-item .card-image {
  height: 160px;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Clientele Cards */
.clientele-card {
  height: 100%;
  text-align: center;
}

.clientele-card .card-image {
  height: 150px;
}

/* Section Styles */
.section {
  padding: var(--spacing-2xl) 0;
}

.section .container {
  max-width: 1200px;
}

/* Contact Form */
.contact-form .field {
  margin-bottom: var(--spacing-md);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border: 2px solid var(--gray);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  font-family: var(--font-secondary);
  transition: all var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.contact-form .label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--black);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  cursor: pointer;
  margin-bottom: var(--spacing-sm);
  transition: color var(--transition-fast);
}

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

.faq-answer {
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

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

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

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

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.social-links a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  display: inline-block;
}

.social-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  transform: translateX(5px);
}

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

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

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

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

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

.success-content {
  text-align: center;
  padding: var(--spacing-2xl);
  max-width: 600px;
}

/* Privacy & Terms Pages */
.legal-page {
  padding-top: 100px;
}

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

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: var(--primary-color);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-content p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .timeline-container::before {
    display: none;
  }
  
  .parallax-section {
    background-attachment: scroll;
  }
  
  .stat-widget {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }
  
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
  
  .hero-body {
    padding: var(--spacing-xl) 0;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .columns.is-multiline .column {
    margin-bottom: var(--spacing-lg);
  }
  
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .title.is-1 {
    font-size: 2rem;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .buttons .button {
    margin-bottom: var(--spacing-sm);
  }
  
  .stat-widget {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Performance Optimizations */
.card-image img,
.hero {
  will-change: transform;
}

.glass-effect {
  will-change: transform, box-shadow;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Focus States */
.button:focus,
.input:focus,
.textarea:focus,
.select select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .footer {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .glass-effect {
    background: var(--white);
    border: 1px solid var(--gray);
    box-shadow: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.3);
  }
  
  .glass-effect {
    border-width: 2px;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
 
}