/* ===== ROOT VARIABLES ===== */
:root {
  /* Typography */
  --font-primary: 'Manrope', sans-serif;
  --font-secondary: 'Rubik', sans-serif;
  
  /* Tetrad Color Scheme */
  --color-primary: #FF6B35;      /* Orange-Red */
  --color-secondary: #4ECDC4;    /* Teal */
  --color-tertiary: #45B7D1;     /* Blue */
  --color-quaternary: #96CEB4;   /* Mint Green */
  
  /* Darker variations */
  --color-primary-dark: #E55A2B;
  --color-secondary-dark: #3DB3AA;
  --color-tertiary-dark: #3A9BC1;
  --color-quaternary-dark: #7FB69E;
  
  /* Neutral colors */
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-gray-light: #F8F9FA;
  --color-gray-medium: #6C757D;
  --color-gray-dark: #343A40;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-quaternary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
  
  /* Shadows */
  --shadow-brutalist: 8px 8px 0px var(--color-black);
  --shadow-brutalist-hover: 12px 12px 0px var(--color-black);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.title {
  font-family: var(--font-primary) !important;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.brutalist-title {
  text-shadow: 4px 4px 0px var(--color-primary);
  font-weight: 800;
  letter-spacing: -1px;
}

/* ===== GLOBAL BUTTON STYLES ===== */
.btn,
.button,
input[type='submit'],
button {
  font-family: var(--font-primary) !important;
  font-weight: 600;
  border: 3px solid var(--color-black) !important;
  box-shadow: var(--shadow-brutalist);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.brutalist-btn {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  border: 3px solid var(--color-black) !important;
  box-shadow: var(--shadow-brutalist);
  transform: translateY(0);
}

.brutalist-btn:hover,
.btn:hover,
.button:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-brutalist-hover) !important;
  background: var(--color-primary-dark) !important;
}

.button.is-outlined {
  background: transparent !important;
  color: var(--color-white) !important;
  border: 3px solid var(--color-white) !important;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.3);
}

.button.is-outlined:hover {
  background: var(--color-white) !important;
  color: var(--color-black) !important;
  box-shadow: 8px 8px 0px rgba(255, 255, 255, 0.5) !important;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--color-primary);
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.navbar-item:hover {
  color: var(--color-primary) !important;
  background: transparent !important;
}

.navbar-item:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--color-primary);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    width: 0%;
  }
  to {
    width: 80%;
  }
}

/* ===== HERO SECTION ===== */
.hero-header {
  position: relative;
}

.hero.is-fullheight-with-navbar {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

.hero.is-fullheight-with-navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

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

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

/* ===== PARTICLE ANIMATION ===== */
.particle-bg {
  position: relative;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Particle effects */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

.section:nth-child(even) {
  background: var(--color-gray-light);
}

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

.has-background-dark {
  background: var(--color-black) !important;
}

/* ===== CARDS ===== */
.card {
  border: 3px solid var(--color-black) !important;
  border-radius: 0 !important;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white) !important;
}

.brutalist-card {
  box-shadow: var(--shadow-brutalist);
  transform: translateY(0);
}

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

.card-image {
  width: 100%;
  text-align: 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-medium);
}

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

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

/* ===== TIMELINE STYLES ===== */
.timeline {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: var(--spacing-lg) 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  margin-right: var(--spacing-lg);
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  margin-left: var(--spacing-lg);
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border: 4px solid var(--color-black);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: var(--color-white);
  padding: var(--spacing-md);
  border: 3px solid var(--color-black);
  box-shadow: var(--shadow-brutalist);
}

/* ===== FORMS ===== */
.input,
.textarea,
.select select {
  border: 3px solid var(--color-black) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  font-family: var(--font-secondary);
}

.brutalist-input {
  border: 3px solid var(--color-black) !important;
  box-shadow: var(--shadow-brutalist);
}

.input:focus,
.textarea:focus,
.brutalist-input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 8px 8px 0px var(--color-primary) !important;
  transform: translateY(-2px);
}

/* ===== BLOCKQUOTES ===== */
blockquote {
  border-left: 5px solid var(--color-primary);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  background: rgba(255, 107, 53, 0.05);
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-primary);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: var(--font-primary);
}

/* ===== LINKS ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

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

.read-more {
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.read-more:hover {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 5px 10px;
  margin: -5px -10px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--color-white);
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-sm);
  border: 2px solid var(--color-white);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--color-black) !important;
  padding: var(--spacing-xl) 0 var(--spacing-md) 0;
  border-top: 5px solid var(--color-primary);
}

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

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

.footer-links a {
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 10px;
}

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

.success-content {
  text-align: center;
  color: var(--color-white);
  padding: var(--spacing-xl);
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-content,
.terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.2rem !important;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  .timeline-item .timeline-content {
    width: calc(100% - 60px) !important;
    margin-left: 60px !important;
    text-align: left !important;
    margin-right: 0 !important;
  }
  
  .timeline-marker {
    left: 30px !important;
    transform: none !important;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
}

@media screen and (max-width: 480px) {
  .brutalist-card {
    box-shadow: 4px 4px 0px var(--color-black);
  }
  
  .brutalist-btn {
    box-shadow: 4px 4px 0px var(--color-black);
  }
  
  .image-container {
    height: 200px;
  }
}

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

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

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

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

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

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

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

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

.shadow-hover:hover {
  box-shadow: var(--shadow-brutalist-hover);
}

.border-brutalist {
  border: 3px solid var(--color-black);
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border: 2px solid var(--color-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ===== FOCUS STYLES ===== */
*:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  #particles-canvas {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

.navbar-menu {
  background: #1A1A1A;
}

.container {
  padding: 0 10px;
}