/* =====================================
   CSS VARIABLES & THEME SYSTEM
   ===================================== */

:root {
  /* Primary Colors */
  --primary-color: #2c5282;
  --primary-light: #3182ce;
  --primary-dark: #1a365d;
  --primary-gradient: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
  
  /* Secondary Colors */
  --secondary-color: #38a169;
  --secondary-light: #48bb78;
  --secondary-dark: #2f855a;
  --secondary-gradient: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
  
  /* Accent Colors */
  --accent-color: #ed8936;
  --accent-light: #f6ad55;
  --accent-dark: #c05621;
  --accent-gradient: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
  
  /* Neutral Colors */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-white: #ffffff;
  --text-light: #f3f4f6;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #1f2937;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-overlay-light: rgba(0, 0, 0, 0.3);
  
  /* Glassmorphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-bg-light: rgba(255, 255, 255, 0.1);
  --glass-bg-dark: rgba(0, 0, 0, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --glass-shadow-hover: 0 15px 35px rgba(31, 38, 135, 0.25);
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-neutral: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* =====================================
   GLOBAL STYLES & RESET
   ===================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* =====================================
   TYPOGRAPHY
   ===================================== */

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

.title {
  font-family: var(--font-heading) !important;
  font-weight: var(--font-weight-bold) !important;
}

.subtitle {
  font-family: var(--font-body) !important;
  font-weight: var(--font-weight-regular) !important;
  opacity: 0.9;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

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

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

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

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

/* =====================================
   LAYOUT & CONTAINERS
   ===================================== */

.main-container {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

/* =====================================
   GLASSMORPHISM EFFECTS
   ===================================== */

.glassmorphism-card {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-medium);
  overflow: hidden;
}

.glassmorphism-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(255, 255, 255, 0.2) !important;
}

.glassmorphism-header {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-medium);
}

.glassmorphism-footer {
  background: var(--gradient-overlay) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}

.glassmorphism-input {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  transition: all var(--transition-medium);
}

.glassmorphism-input:focus {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.2);
}

.glassmorphism-input::placeholder {
  color: var(--text-muted);
}

.glassmorphism-select select {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
}

/* =====================================
   BUTTONS & INTERACTIVE ELEMENTS
   ===================================== */

.btn,
.button,
button,
input[type="submit"] {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.button.is-primary,
.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.button.is-primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.button.is-secondary,
.btn-secondary {
  background: var(--secondary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

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

.button.is-outlined.is-white {
  color: var(--text-white);
  border-color: var(--text-white);
}

.button.is-outlined:hover {
  background: currentColor;
  color: var(--text-white);
}

.glassmorphism-btn {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-white) !important;
}

.glassmorphism-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.button.is-text {
  background: none;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  border: none;
  padding: var(--spacing-xs) 0;
  position: relative;
}

.button.is-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

.button.is-text:hover::after {
  width: 100%;
}

.button.is-text:hover {
  color: var(--primary-dark);
  background: none;
}

/* =====================================
   NAVIGATION
   ===================================== */

.navbar {
  padding: var(--spacing-sm) 0;
  z-index: 1000;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-brand .navbar-item {
  padding: var(--spacing-sm);
}

.navbar-menu {
  background: transparent;
}

.navbar-item {
  color: var(--text-white);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-medium);
  position: relative;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-medium);
  transform: translateX(-50%);
}

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

.navbar-burger {
  color: var(--text-white);
}

/* =====================================
   HERO SECTION
   ===================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-fullheight {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

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

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

.hero .title {
  color: var(--text-white) !important;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  color: var(--text-white) !important;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =====================================
   GRADIENT BACKGROUNDS
   ===================================== */

.gradient-bg {
  background: var(--gradient-neutral);
  position: relative;
}

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

/* =====================================
   CARDS & CONTENT BLOCKS
   ===================================== */

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

/* Customer Stories / Testimonials */
.card .card-image .image-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
}

.card .card-image .image-container img {
  border-radius: 50%;
}

/* =====================================
   GALLERY SECTION
   ===================================== */

#gallery .columns {
  align-items: stretch;
}

#gallery .column {
  display: flex;
}

#gallery .card {
  width: 100%;
}

#gallery .card-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =====================================
   METHODOLOGY SECTION
   ===================================== */

#methodology .content h3 {
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

#methodology .image-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* =====================================
   CUSTOMER STORIES SECTION
   ===================================== */

#customer-stories .card {
  text-align: center;
  height: 100%;
}

#customer-stories .card-image {
  padding: var(--spacing-md) var(--spacing-md) 0;
}

#customer-stories .card-content {
  padding-top: 0;
}

/* =====================================
   CLIENTELE SECTION
   ===================================== */

.partner-logo {
  padding: var(--spacing-lg);
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-medium);
}

.partner-logo:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.partner-logo .title {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

/* =====================================
   COMMUNITY SECTION
   ===================================== */

.animated-toggle {
  transform: scale(1.2);
  margin-right: var(--spacing-xs);
}

.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  margin-right: var(--spacing-xs);
}

/* =====================================
   EXTERNAL RESOURCES SECTION
   ===================================== */

.animated-icon {
  transition: transform var(--transition-medium);
}

.animated-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

#resources .card {
  text-align: center;
  padding: var(--spacing-lg);
}

#resources .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
}

/* =====================================
   BLOG SECTION
   ===================================== */

#blog .card {
  height: 100%;
}

#blog .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#blog .image-container {
  height: 200px;
}

#blog article {
  height: 100%;
}

/* =====================================
   CONTACT SECTION
   ===================================== */

.contact-form {
  max-width: 100%;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.contact-info .icon {
  margin-right: var(--spacing-sm);
  margin-top: 2px;
}

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

.label {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.control {
  position: relative;
}

.input, .textarea, .select select {
  width: 100%;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-300);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-medium);
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 82, 130, 0.2);
}

.has-icons-left .icon {
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.has-icons-left .input {
  padding-left: calc(var(--spacing-lg) + var(--spacing-md));
}

/* =====================================
   FOOTER
   ===================================== */

.footer {
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xxl);
}

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

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

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  transition: all var(--transition-medium);
}

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

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-white);
  text-decoration: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-medium);
  font-weight: var(--font-weight-medium);
}

.social-links a:hover {
  background: var(--accent-gradient);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-divider {
  border: none;
  height: 1px;
  background: var(--glass-border);
  margin: var(--spacing-lg) 0;
}

/* =====================================
   SUCCESS PAGE STYLES
   ===================================== */

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
}

.success-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xxl);
  box-shadow: var(--glass-shadow);
  max-width: 600px;
}

.success-content .title {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

.success-content .subtitle {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* =====================================
   PRIVACY & TERMS PAGES
   ===================================== */

.legal-page {
  padding-top: 100px;
  min-height: 100vh;
}

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

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

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

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

.legal-content li {
  margin-bottom: var(--spacing-xs);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media screen and (max-width: 1024px) {
  .parallax-container {
    background-attachment: scroll;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero .title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xxl: 2.5rem;
    --spacing-xl: 2rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-body {
    padding: var(--spacing-xl) 0;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .columns.is-multiline .column {
    margin-bottom: var(--spacing-md);
  }
  
  .navbar-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    margin: var(--spacing-sm);
  }
  
  .buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .buttons .button {
    width: 100%;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .card-content {
    padding: var(--spacing-sm);
  }
  
  .partner-logo {
    padding: var(--spacing-md);
  }
  
  .success-content {
    padding: var(--spacing-lg);
    margin: var(--spacing-sm);
  }
}

/* =====================================
   ANIMATION UTILITIES
   ===================================== */

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* =====================================
   UTILITY CLASSES
   ===================================== */

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

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

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

.mb-6 {
  margin-bottom: var(--spacing-xxl);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

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

.mt-4 {
  margin-top: var(--spacing-lg);
}

.p-4 {
  padding: var(--spacing-lg);
}

.rounded {
  border-radius: var(--radius-md);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.transition {
  transition: all var(--transition-medium);
}

/* =====================================
   ACCESSIBILITY
   ===================================== */

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

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

/* 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);
  }
  
  .glassmorphism-card {
    background: var(--bg-primary) !important;
    border: 2px solid var(--neutral-300);
  }
}