/* ---------------------------
   Design System: Creative with Hyperrealistic Textures
   Color Scheme: Triadic
   Animations: Bouncy
   Typography: Raleway (headings), Open Sans (body)
   Framework: Bulma
--------------------------- */

:root {
  /* Primary Color Palette - Triadic Scheme */
  --primary-color: #ff5e3a;
  --primary-dark: #e44b2b;
  --primary-light: #ff8266;
  
  --secondary-color: #3a9fff;
  --secondary-dark: #2b85e4;
  --secondary-light: #66b8ff;
  
  --tertiary-color: #9e3aff;
  --tertiary-dark: #8227e4;
  --tertiary-light: #b866ff;
  
  /* Neutral Colors */
  --dark: #272727;
  --dark-gray: #4a4a4a;
  --medium-gray: #7a7a7a;
  --light-gray: #e0e0e0;
  --off-white: #f9f9f9;
  --white: #ffffff;
  
  /* Background Textures & Gradients */
  --texture-overlay: linear-gradient(120deg, rgba(255, 94, 58, 0.1), rgba(158, 58, 255, 0.05));
  --card-gradient: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
  --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  
  /* Typography */
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Animation Speeds */
  --animation-slow: 0.8s;
  --animation-medium: 0.5s;
  --animation-fast: 0.3s;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Base Styles & Typography Overrides */
html, body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

h1, .title.is-1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

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

.section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--texture-overlay);
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

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

/* Hyperrealistic Texture Effects */
.texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

/* Button Styles (Global) */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--animation-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

.button.is-outlined.is-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.button.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 94, 58, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 94, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 94, 58, 0);
  }
}

/* Navbar Styles */
.navbar {
  transition: all var(--animation-medium);
  padding: 0.5rem 0;
  background-color: black;
}

.navbar.is-transparent {
  background-color: black;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--white);
  transition: color var(--animation-fast);
}

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

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

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

/* Scrolled Navbar */
.navbar.is-scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 0.25rem 0;
}

.navbar.is-scrolled .navbar-item {
  color: var(--dark);
}

.navbar.is-scrolled .navbar-brand .title {
  color: var(--primary-color);
}

.navbar.is-scrolled .navbar-burger span {
  background-color: var(--dark);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--hero-overlay);
  z-index: 1;
}

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

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

.animate-hero {
  opacity: 0;
  transform: translateY(20px);
}

.scroll-down {
  animation: bounce 2s infinite;
}

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

/* Mission Section */
.mission-section {
  background-color: var(--white);
}

.mission-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--animation-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.mission-card .card-image {
  overflow: hidden;
}

.mission-card .card-image img {
  transition: transform var(--animation-medium);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

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

.mission-card .card-content {
  background-image: var(--card-gradient);
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

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

/* Statistics */
.statistics-widget {
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  background-color: var(--off-white);
  box-shadow: var(--shadow-md);
}

.stat-card {
  padding: var(--spacing-md);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--heading-font);
  line-height: 1;
}

.stat-title {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-top: var(--spacing-xs);
}

/* Methodology Section */
.methodology-section {
  background-color: var(--off-white);
}

.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 4px;
  background: var(--tertiary-light);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background-color: var(--tertiary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-content .columns {
  align-items: center;
}

.timeline-content h3 {
  color: var(--tertiary-color);
  margin-bottom: var(--spacing-sm);
}

.timeline-content .image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-content .image img {
  transition: transform var(--animation-medium);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

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

/* Portfolio Section */
.portfolio-section {
  background-color: var(--white);
}

.portfolio-grid {
  margin-top: var(--spacing-md);
}

.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--animation-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.portfolio-card .card-image {
  overflow: hidden;
  width: 100%;
}

.portfolio-card .card-image img {
  transition: transform var(--animation-medium);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

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

.portfolio-card .card-content {
  background-image: var(--card-gradient);
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

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

.portfolio-card a.button {
  align-self: center;
  margin-top: auto;
}

/* Resources Section */
.resources-section {
  background-color: var(--off-white);
}

.resource-card {
  display: block;
  transition: transform var(--animation-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

.resource-card .card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--animation-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover .card {
  box-shadow: var(--shadow-lg);
}

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

.resource-card .title {
  color: var(--secondary-dark);
  transition: color var(--animation-fast);
}

.resource-card:hover .title {
  color: var(--primary-color);
}

.resource-card .tag {
  margin-top: var(--spacing-sm);
}

/* Team Section */
.team-section {
  background-color: var(--white);
}

.team-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--animation-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-card .card-image {
  overflow: hidden;
  width: 100%;
}

.team-card .card-image img {
  transition: transform var(--animation-medium);
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0 auto;
}

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

.team-card .card-content {
  background-image: var(--card-gradient);
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.team-card .title {
  color: var(--tertiary-dark);
  margin-bottom: 0.25rem;
}

.team-card .subtitle {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.social-links {
  margin-top: auto;
}

.social-links a {
  color: var(--secondary-color);
  transition: color var(--animation-fast);
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  background-color: var(--off-white);
}

.contact-info, .contact-form {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 100%;
}

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

.contact-item strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.map-container {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-form .label {
  color: var(--dark-gray);
  font-weight: 600;
}

.contact-form .input, 
.contact-form .textarea, 
.contact-form .select select {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--animation-fast);
}

.contact-form .input:focus, 
.contact-form .textarea:focus, 
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 94, 58, 0.2);
}

/* Footer Section */
.footer {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  color: var(--light-gray);
  position: relative;
}

.footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(39, 39, 39, 0.9), rgba(39, 39, 39, 0.95));
  z-index: 0;
}

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

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

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

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

.footer-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.footer .social-links {
  margin-top: var(--spacing-md);
}

.footer .social-links a {
  color: var(--light-gray);
  margin-right: var(--spacing-sm);
  transition: color var(--animation-fast);
  text-decoration: none;
}

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

.newsletter-form .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: var(--white);
}

.newsletter-form .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 94, 58, 0.2);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  z-index: 999;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0 var(--spacing-md) var(--spacing-sm) 0;
  flex: 1;
}

/* Utility Classes */
.h-100 {
  height: 100%;
}

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

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--white);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.success-message {
  max-width: 600px;
}

.success-message .title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.success-message .content {
  margin-bottom: var(--spacing-lg);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.privacy-page .content, .terms-page .content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
}

.privacy-page h2, .terms-page h2 {
  color: var(--primary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.privacy-page h3, .terms-page h3 {
  color: var(--tertiary-dark);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

/* Media Queries */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--dark);
    box-shadow: var(--shadow-lg);
  }
  
  .navbar-menu .navbar-item {
    color: var(--white);
  }
  
  .navbar-menu.is-active {
    display: block;
    animation: fadeIn var(--animation-medium);
  }
  
  .timeline:before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: var(--spacing-md);
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-body {
    padding: var(--spacing-xl) 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .timeline-content .columns {
    flex-direction: column;
  }
  
  .timeline-content .column:first-child {
    margin-bottom: var(--spacing-md);
  }
  
  .contact-info, .contact-form {
    margin-bottom: var(--spacing-md);
  }
}

@media screen and (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
  }
  
  h1, .title.is-1 {
    font-size: 2rem;
  }
  
  h2, .title.is-2 {
    font-size: 1.75rem;
  }
  
  .buttons.is-centered {
    flex-direction: column;
  }
  
  .buttons.is-centered .button {
    margin: 0.25rem 0;
    width: 100%;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}