/* ===== VARIABLES ===== */
:root {
  /* Primary Colors - Split-complementary scheme */
  --primary-color: #0d6efd;
  --primary-dark: #0555c8;
  --primary-light: #3d8aff;
  --secondary-color: #fd7e14;
  --secondary-dark: #d56c0c;
  --secondary-light: #ff9f49;
  --accent-color: #aa44bb;
  --accent-dark: #8a3399;
  --accent-light: #cc77dd;

  /* Neutral Colors */
  --dark: #212529;
  --gray-dark: #343a40;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --light: #f8f9fa;
  --white: #ffffff;

  /* Font Families */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Merriweather', 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;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);

  /* Animations */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

.button {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-normal);
}

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

.button.is-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.animated-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.animated-button: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: var(--transition-slow);
  z-index: -1;
}

.animated-button:hover:before {
  left: 100%;
}

.title, .subtitle {
  font-family: var(--heading-font);
}

.title.is-1, .title.is-2, .title.is-3 {
  margin-bottom: var(--spacing-md);
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  font-family: var(--heading-font);
  color: var(--dark);
}

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

/* ===== NAVBAR STYLES ===== */
.navbar {
  transition: background-color var(--transition-normal);
  padding: 1rem 0;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-normal);
}

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

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

.hero-body {
  display: flex;
  align-items: center;
  padding: 12rem 1.5rem;
  z-index: 2;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid var(--white);
  border-right: 3px solid var(--white);
  transform: rotate(45deg);
  margin: -10px;
  animation: scrollAnimation 2s infinite;
}

.hero-scroll-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-scroll-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes scrollAnimation {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--light);
}

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

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

.service-card .card-image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

/* ===== CLIENTELE SECTION ===== */
.clientele-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.client-logo {
  background-color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin: var(--spacing-sm);
  transition: transform var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.client-logo img {
  max-height: 80px;
  max-width: 100%;
  filter: grayscale(100%);
  transition: filter var(--transition-normal);
}

.client-logo:hover {
  transform: scale(1.05);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
  background-color: var(--white);
}

.resource-card {
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

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

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

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

/* ===== SUSTAINABILITY SECTION ===== */
.sustainability-section {
  background-color: var(--light);
}

.sustainability-features {
  margin-top: var(--spacing-lg);
}

.feature-item {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  border-left: 4px solid var(--primary-color);
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feature-item .title {
  color: var(--primary-color);
}

.sustainability-image-container {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

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

/* ===== INNOVATION SECTION ===== */
.innovation-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
}

.innovation-features {
  margin-top: var(--spacing-lg);
}

.feature-box {
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary-color);
  transition: transform var(--transition-normal), background-color var(--transition-normal);
  height: 100%;
}

.feature-box:hover {
  transform: translateX(5px);
  background-color: rgba(0, 0, 0, 0.5);
}

.feature-box .title {
  color: var(--secondary-light);
}

.cta-container {
  margin-top: var(--spacing-xl);
}

/* ===== CUSTOMER STORIES SECTION ===== */
.stories-section {
  background-color: var(--white);
}

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

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

.testimonial-card .card-image {
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.testimonial-card .title {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.testimonial-card .subtitle {
  color: var(--gray);
  margin-bottom: var(--spacing-sm);
}

.testimonial-card .content {
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.testimonial-card .rating {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: auto;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: var(--white);
}

.contact-form-container {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.contact-form .label {
  color: var(--white);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  box-shadow: 0 0 0 2px var(--primary-color);
  transform: translateY(-2px);
}

.contact-form .button {
  transition: all var(--transition-normal);
}

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

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--spacing-xl) 0;
}

.footer .title {
  color: var(--white);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-xs);
  display: inline-block;
}

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

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

.footer-links a {
  color: var(--light);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

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

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

.social-links a {
  color: var(--light);
  transition: color var(--transition-fast);
  margin-right: var(--spacing-sm);
  font-weight: 600;
  position: relative;
}

.social-links a:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-normal);
}

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

.social-links a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.footer-legal-links a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* ===== MODAL STYLES ===== */
.modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modal .box {
  padding: var(--spacing-lg);
  text-align: center;
}

.modal .title {
  color: var(--primary-color);
}

.modal .close-modal {
  margin-top: var(--spacing-md);
}

/* ===== ABOUT & TERMS PAGES ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
}

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

.success-container {
  max-width: 600px;
  padding: var(--spacing-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 8rem 1.5rem;
  }

  .hero .title.is-1 {
    font-size: 2.5rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }

  .service-card .card-image img,
  .testimonial-card .card-image img {
    height: 200px;
  }

  .sustainability-image-container {
    margin-top: var(--spacing-md);
  }

  .contact-form-container {
    padding: var(--spacing-md);
  }
}

@media screen and (max-width: 480px) {
  .hero-body {
    padding: 6rem 1rem;
  }

  .hero .title.is-1 {
    font-size: 2rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.25rem;
  }

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

  .client-logo {
    height: 80px;
  }

  .client-logo img {
    max-height: 60px;
  }
}

/* ===== UTILITY CLASSES ===== */
.has-text-primary {
  color: var(--primary-color) !important;
}

.has-text-secondary {
  color: var(--secondary-color) !important;
}

.has-text-accent {
  color: var(--accent-color) !important;
}

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

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

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

.has-shadow {
  box-shadow: var(--shadow-md);
}

.has-radius {
  border-radius: var(--radius-md);
}

.is-glassmorphic {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}