/* ===== Root Variables ===== */
:root {
  /* Primary colors */
  --primary-color: #3273dc;
  --primary-dark: #2160c4;
  --primary-light: #4a89dc;
  
  /* Secondary colors */
  --secondary-color: #ff3860;
  --secondary-dark: #db2955;
  --secondary-light: #ff526f;
  
  /* Neutral colors */
  --neutral-dark: #2a2a2a;
  --neutral-medium: #4a4a4a;
  --neutral-light: #f5f5f5;
  
  /* Accent colors */
  --accent-color: #ffdd57;
  --accent-dark: #f8c530;
  --accent-light: #ffe97d;
  
  /* Background gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  --gradient-dark: linear-gradient(135deg, var(--neutral-dark), #1a1a1a);
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

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

/* ===== Retro Design System with Hyperrealistic Textures ===== */
.retro-texture {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  background-color: var(--neutral-light);
}

.retro-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('image/texture-pattern.jpg');
  background-size: cover;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.retro-texture > * {
  position: relative;
  z-index: 2;
}

/* ===== Layout Components ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

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

@media screen and (max-width: 768px) {
  section {
    padding: var(--spacing-md) 0;
  }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255) !important;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-medium);
}

img {
  object-fit: cover;
}

.header .navbar {
  padding: 0.5rem 0;
}

.header .navbar-menu {
  box-shadow: none;
}

.header .navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-medium);
  transition: color var(--transition-fast);
}

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

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

@media screen and (max-width: 1023px) {
  .header .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

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

.hero-body {
  padding: var(--spacing-xl) 0;
  display: flex;
  align-items: center;
}

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

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-progress .progress-indicator {
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

/* ===== Buttons ===== */
.button {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

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

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

.button.is-light {
  color: var(--neutral-dark);
  background-color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

.button.is-light:hover {
  background-color: white;
}

.button.is-light.is-outlined {
  border-color: white;
  color: white;
}

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

/* ===== About Section ===== */
.about-section {
  background-color: var(--neutral-light);
}

.about-section .box {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.about-section .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.progress-container {
  margin: var(--spacing-sm) 0;
}

.progress {
  height: 0.75rem;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.progress.is-primary::-webkit-progress-value {
  background: var(--gradient-primary);
}

.progress.is-info::-webkit-progress-value {
  background: var(--gradient-secondary);
}

/* ===== Services Section ===== */
.services-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.services-section .card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

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

.services-section .image-container {
  height: 220px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.services-section .card-content {
  flex-grow: 1;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

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

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

.team-section .card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

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

.team-section .image-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.team-section .card-content {
  flex-grow: 1;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

.team-section .card-content .title {
  margin-bottom: 0.25rem;
}

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

/* ===== Research Section ===== */
.research-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
}

.research-section .content {
  position: relative;
  z-index: 2;
}

.research-section .box {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--neutral-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.research-section .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.research-section .box .title {
  color: var(--primary-dark);
}

/* ===== Resources Section ===== */
.resources-section {
  background-color: var(--neutral-light);
}

.resources-section .card {
  height: 100%;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

.resources-section .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resources-section .card .button {
  margin-top: auto;
}

/* ===== Blog Section ===== */
.blog-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.blog-section .card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  background-color: white;
}

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

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

.blog-section .image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-section .card-content {
  flex-grow: 1;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
}

.blog-section .card-content .title {
  margin-bottom: 0.5rem;
}

.blog-section .card-content .subtitle {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.blog-section .card-content a.button {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== News Section ===== */
.news-section {
  background-color: var(--neutral-light);
}

.news-section .box {
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  margin-bottom: var(--spacing-md);
}

.news-section .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-section .image {
  overflow: hidden;
  border-radius: var(--border-radius-sm);
}

.news-section .image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-section .box:hover .image img {
  transform: scale(1.05);
}

.news-section .title {
  margin-bottom: 0.5rem;
}

.news-section .subtitle {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== Contact Section ===== */
.contact-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-section .box {
  background-color: rgba(255, 255, 255, 0.95);
}

.contact-section .image-container {
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 300px;
}

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

.contact-section form {
  margin-top: var(--spacing-sm);
}

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

.contact-section .input,
.contact-section .textarea {
  border-radius: var(--border-radius-sm);
  border: 1px solid #e0e0e0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-section .input:focus,
.contact-section .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

/* ===== Testimonials Slider ===== */
.testimonials-section {
  background-color: var(--neutral-light);
}

.custom-slider {
  position: relative;
  margin: var(--spacing-md) 0;
}

.slider-container {
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform var(--transition-medium);
}

.slider-item {
  flex: 0 0 100%;
  padding: 0 var(--spacing-sm);
}

.testimonial-box {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  height: 100%;
}

.testimonial-box p {
  font-style: italic;
  position: relative;
}

.testimonial-box p:first-child::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-family: Georgia, serif;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-md);
}

.slider-prev,
.slider-next {
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin: 0 var(--spacing-sm);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--primary-color);
}

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

.footer .title {
  color: white;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: white;
}

.footer .social-links a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  margin-right: var(--spacing-sm);
  transition: color var(--transition-fast);
}

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

.footer .newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.footer .newsletter .input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Success Page ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-light);
}

.success-container {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

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

/* ===== Privacy & Terms Pages ===== */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

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

/* ===== Animation Effects ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(5) {
  transition-delay: 0.4s;
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
  .box {
    padding: var(--spacing-sm);
  }
  
  .hero-body {
    padding: var(--spacing-lg) 0;
  }
  
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.25rem !important;
  }
  
  .slider-item {
    padding: 0;
  }
  
  .image-container {
    height: 200px !important;
  }
}

/* ===== Utility Classes ===== */
.has-shadow {
  box-shadow: var(--shadow-md);
}

.has-rounded-corners {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

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

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

.is-full-height {
  height: 100%;
}

/* ===== Images Container Styling ===== */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

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

/* Make all cards have centered content */
.card, .item, .testimonial, .team-member, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Center images in cards */
.card img, .item img, .testimonial img, .team-member img, .product-card img {
  margin: 0 auto;
}

/* Script will handle this for navigation toggle */
.navbar-menu.is-active {
  display: block;
}

/* ===== Read More Links ===== */
a.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

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

a.read-more:hover {
  color: var(--primary-dark);
}

a.read-more:hover::after {
  width: 100%;
}

/* Custom progress tracker for scroll */
.progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background-color: var(--primary-color);
  z-index: 5;
}