/* ===== CSS VARIABLES ===== */
:root {
  /* Analogous Color Scheme - Blue to Green */
  --primary-color: #0066CC;
  --secondary-color: #0080FF;
  --accent-color: #00B359;
  --success-color: #00CC66;
  --info-color: #33A3FF;
  --warning-color: #FFB366;
  --danger-color: #FF6B6B;
  
  /* Dark variants */
  --primary-dark: #004499;
  --secondary-dark: #0066CC;
  --accent-dark: #008040;
  
  /* Light variants */
  --primary-light: #E6F2FF;
  --secondary-light: #F0F7FF;
  --accent-light: #E6F7ED;
  
  /* Neutral colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #6C757D;
  --dark-gray: #495057;
  --black: #212529;
  
  /* Background colors */
  --bg-primary: linear-gradient(135deg, #0066CC 0%, #0080FF 50%, #00B359 100%);
  --bg-secondary: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 50%, #E6F7ED 100%);
  --bg-accent: linear-gradient(135deg, #00B359 0%, #00CC66 100%);
  --bg-dark: linear-gradient(135deg, #212529 0%, #495057 100%);
  
  /* Typography */
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Lato', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --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: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 102, 204, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 102, 204, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 102, 204, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 102, 204, 0.25);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-backdrop: blur(10px);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--black);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

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

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

/* ===== GLOBAL BUTTON STYLES ===== */
.btn, .button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

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

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

.btn::before, .button::before, button::before, input[type="submit"]::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-slow);
}

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

/* Button Variants */
.btn.is-outlined, .button.is-outlined {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn.is-outlined:hover, .button.is-outlined:hover {
  background: var(--bg-primary);
  color: var(--white);
  border-color: transparent;
}

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

.btn.is-white:hover, .button.is-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Bio Button Styles */
.bio-btn {
  border-radius: var(--radius-xl);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.125rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-md);
}

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

.navbar-item {
  color: var(--dark-gray);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

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

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

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

/* ===== MAIN CONTAINER ===== */
.main-container {
  padding-top: 60px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.7), rgba(0, 179, 89, 0.5));
  z-index: 1;
}

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

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

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

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

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

.section.has-background-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section .title {
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section .title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.section .title.has-text-left::after {
  left: 0;
  transform: none;
}

/* ===== CARDS ===== */
.card, .bio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  border: 1px solid rgba(0, 102, 204, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card:hover, .bio-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

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

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

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

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

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

.card-content .subtitle {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* ===== IMAGE CONTAINERS ===== */
.image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ===== GALLERY ===== */
.gallery-container {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.gallery-item {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== FORMS ===== */
.bio-form {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

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

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

.input, .textarea, .select select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(0, 102, 204, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background-color: var(--white);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  outline: none;
  transform: scale(1.02);
}

.input.is-rounded, .textarea.is-rounded {
  border-radius: var(--radius-xl);
}

.select.is-fullwidth {
  width: 100%;
}

.select.is-rounded select {
  border-radius: var(--radius-xl);
}

/* Toggle Switch Styles */
.toggle-switch {
  display: none;
}

.toggle-switch + label {
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-lg);
  margin: 0;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
}

.toggle-switch:checked + label {
  background: var(--bg-primary);
  color: var(--white);
}

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

.field.has-addons {
  display: flex;
  gap: 0;
}

.field.has-addons .control {
  flex: 1;
}

.field.has-addons .control:first-child label {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.field.has-addons .control:last-child label {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}

.field.has-addons .control:not(:first-child):not(:last-child) label {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* ===== BIO INFO ===== */
.bio-info {
  background: var(--primary-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  margin-top: var(--spacing-lg);
}

.bio-info p {
  margin-bottom: var(--spacing-sm);
  color: var(--black);
}

.bio-info p:last-child {
  margin-bottom: 0;
}

/* ===== READ MORE LINKS ===== */
.read-more {
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-fast);
}

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

.read-more:hover {
  color: var(--accent-color);
  text-decoration: none;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg) 0;
}

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

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
  padding-left: var(--spacing-xs);
}

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

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-bold);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: var(--spacing-lg);
}

.success-content {
  background: var(--white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.page-content {
  padding-top: 100px;
  min-height: 100vh;
}

.page-content .container {
  max-width: 800px;
}

.page-content .content {
  background: var(--white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-lg) 0;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero .title { font-size: clamp(2rem, 4vw, 3rem); }
  .hero .subtitle { font-size: clamp(1rem, 2vw, 1.25rem); }
  .section { padding: var(--spacing-xl) 0; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }
  
  .main-container { padding-top: 70px; }
  .hero { min-height: 80vh; }
  .hero .title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero .subtitle { font-size: clamp(0.875rem, 3vw, 1.125rem); }
  
  .section { padding: var(--spacing-lg) 0; }
  .container { padding: 0 var(--spacing-sm); }
  
  .card-image { height: 200px; }
  .gallery-item { height: 150px; }
  
  .bio-form { padding: var(--spacing-lg); }
  .success-content { padding: var(--spacing-lg); }
  .page-content .content { padding: var(--spacing-lg); }
  
  .field.has-addons {
    flex-direction: column;
  }
  
  .field.has-addons .control label {
    border-radius: var(--radius-md) !important;
    border: 2px solid var(--primary-color) !important;
    margin-bottom: var(--spacing-xs);
  }
  
  .social-links {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1.125rem; }
}

@media screen and (max-width: 480px) {
  .hero { min-height: 70vh; }
  .card-image { height: 180px; }
  .gallery-item { height: 120px; }
  .bio-btn { padding: var(--spacing-sm) var(--spacing-lg); font-size: 1rem; }
  
  .buttons.is-centered {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .buttons.is-centered .button,
  .buttons.is-centered .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.parallax-bg {
  will-change: transform;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:focus, .button:focus, button:focus, input[type="submit"]:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0056b3;
    --accent-color: #007a40;
    --black: #000000;
    --white: #ffffff;
  }
}