/* ===== CSS VARIABLES ===== */
:root {
  /* Primary Bright Colors */
  --primary-color: #FF6B35;
  --primary-light: #FF8C69;
  --primary-dark: #E55A2B;
  --secondary-color: #4ECDC4;
  --secondary-light: #7EDDD6;
  --secondary-dark: #3BA99F;
  
  /* Accent Colors */
  --accent-yellow: #FFD93D;
  --accent-purple: #6A4C93;
  --accent-pink: #FF69B4;
  --accent-green: #32CD32;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #6C757D;
  --dark-gray: #343A40;
  --black: #000000;
  
  /* Gradient Backgrounds */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-yellow), var(--accent-pink));
  --gradient-dark: linear-gradient(135deg, var(--dark-gray), var(--black));
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.25);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

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

/* ===== BUTTON STYLES ===== */
.btn, .button, input[type='submit'] {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md) var(--spacing-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
}

.btn: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.3), transparent);
  transition: left var(--transition-slow);
}

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

.btn:hover, .button:hover, input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

/* Button variants */
.btn-primary, .button.is-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

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

.btn-success, .button.is-success {
  background: var(--accent-green);
  color: var(--white);
}

.btn-warning, .button.is-warning {
  background: var(--accent-yellow);
  color: var(--dark-gray);
}

.btn-outline, .button.is-outlined {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* ===== UTILITY CLASSES ===== */
.hover-lift {
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.animated-element {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
}

.animated-title {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 1s ease forwards;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.navbar {
  background: var(--gradient-primary) !important;
  min-height: 70px;
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white) !important;
}

.navbar-item {
  color: var(--white) !important;
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
}

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

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

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

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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-3xl) var(--spacing-md);
}

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

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

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

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

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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;
  justify-content: space-between;
  text-align: center;
}

.card-content .title {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
}

.card-content p {
  color: var(--gray);
  flex: 1;
}

/* ===== MISSION SECTION ===== */
#mission .image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mission .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESEARCH SECTION ===== */
#research {
  background: var(--light-gray);
}

#research .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#research .card-image {
  height: 250px;
}

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

/* ===== WORKSHOPS SECTION ===== */
#workshops .card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#workshops .card-image {
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#workshops .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

#workshops .tags {
  margin-top: var(--spacing-md);
  justify-content: center;
}

#workshops .tag {
  font-weight: 600;
  border-radius: var(--border-radius-sm);
}

/* ===== MEDIA SECTION ===== */
#media .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#media .card-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#media .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== SUCCESS STORIES SECTION ===== */
#success-stories {
  background: var(--light-gray);
}

#success-stories .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#success-stories .media {
  align-items: center;
  margin-bottom: var(--spacing-md);
}

#success-stories .image img {
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  width: 48px;
  height: 48px;
  object-fit: cover;
}

#success-stories .tags {
  justify-content: center;
  margin-top: var(--spacing-md);
}

/* ===== CUSTOMER STORIES SECTION ===== */
#customer-stories .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#customer-stories .media {
  align-items: center;
  margin-top: var(--spacing-md);
}

#customer-stories .image img {
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  width: 48px;
  height: 48px;
  object-fit: cover;
}

/* ===== PRICING SECTION ===== */
#pricing {
  background: var(--light-gray);
}

#pricing .card {
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#pricing .card.has-background-primary {
  background: var(--gradient-primary) !important;
  color: var(--white);
  transform: scale(1.05);
}

#pricing .card.has-background-primary .title {
  color: var(--white) !important;
}

#pricing .tag.is-warning {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow);
  color: var(--dark-gray);
  font-weight: 700;
}

#pricing ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

#pricing ul li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

#pricing ul li:last-child {
  border-bottom: none;
}

/* ===== CONTACT SECTION ===== */
#contact .card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

#contact .label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
}

#contact .input, 
#contact .textarea, 
#contact .select select {
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

#contact .input:focus, 
#contact .textarea:focus, 
#contact .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#contact .checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray) !important;
  color: var(--white) !important;
  padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
}

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

.footer p, .footer li {
  color: var(--light-gray) !important;
}

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

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

.footer a {
  color: var(--light-gray) !important;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.social-links a {
  display: inline-block;
  margin-right: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255,255,255,0.1);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* ===== RESOURCES SECTION ===== */
#resources {
  background: var(--light-gray);
}

#resources .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .card-image {
    height: 200px;
  }
  
  #pricing .card.has-background-primary {
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 1.5rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .btn, .button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
}

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

/* Focus styles for better accessibility */
.btn:focus, .button:focus, 
.input:focus, .textarea:focus, 
.select select:focus {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ===== ADDITIONAL PAGES STYLES ===== */
.privacy-content, .terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
}

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

.success-content {
  text-align: center;
  padding: var(--spacing-3xl);
  background: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ===== READ MORE LINKS ===== */
.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  margin-top: var(--spacing-md);
}

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

.read-more::after {
  content: '→';
  margin-left: var(--spacing-sm);
  transition: all var(--transition-normal);
}

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

/* ===== IMAGE CONTAINERS ===== */
.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

/* ===== TEAM MEMBER CARDS ===== */
.team-member, .testimonial, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member img, .testimonial img {
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== LOADING ANIMATIONS ===== */
.loading {
  animation: pulse 2s infinite;
}

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

.bouncing {
  animation: bounce 2s infinite;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header, .footer, .btn, .button {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray);
  }
}