/* =========== ROOT VARIABLES =========== */
:root {
  /* Main Colors */
  --primary-color: #3a7bd5;
  --primary-dark: #2c5fb0;
  --primary-light: #5f94e0;
  --secondary-color: #00d1b2;
  --secondary-dark: #00a189;
  --secondary-light: #1edbbd;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f8f9fa;
  --neutral-300: #e9ecef;
  --neutral-400: #dee2e6;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;

  /* Accent Colors */
  --accent-1: #ff6b6b;
  --accent-2: #f39c12;
  --accent-3: #27ae60;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Sizes */
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-rounded: 50%;
}

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

html {
  scroll-behavior: smooth;
}

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

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

p {
  margin-bottom: 1.5rem;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========== NAVBAR STYLES =========== */
.navbar {
  background-color: transparent !important;
  transition: all var(--transition-normal);
}

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

.navbar-brand img {
  max-height: 50px;
}

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

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

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

.navbar-menu.is-active {
  background-color: var(--neutral-800);
}

.navbar.scrolled {
  background-color: var(--neutral-900) !important;
  box-shadow: var(--shadow-md);
}

/* =========== BUTTON STYLES =========== */
.button {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

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

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

.button.is-light {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--neutral-100);
  color: var(--neutral-100);
}

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

.button.is-rounded {
  border-radius: 50px;
}

/* =========== HERO SECTION =========== */
.hero {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: var(--neutral-100);
}

.hero-body {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 5rem 0;
  z-index: 2;
}

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

.hero .title.is-1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero .subtitle.is-3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* =========== ABOUT SECTION =========== */
.section {
  padding: 5rem 1.5rem;
}

.section .title.is-2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--neutral-800);
}

.section .title.is-2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  height: 4px;
  width: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.content {
  color: var(--neutral-700);
}

/* =========== SERVICES SECTION =========== */
.card {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

.card-content {
  padding: 1.5rem;
  background-color: var(--neutral-100);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-content .title {
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--neutral-600);
}

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

/* =========== SUCCESS STORIES SECTION =========== */
#success-stories .card {
  margin-bottom: 2rem;
}

.media {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.media-left {
  margin-right: 1rem;
}

.media-left .image {
  border-radius: var(--radius-rounded);
  overflow: hidden;
}

.media-content .title {
  margin-bottom: 0.25rem;
}

.media-content .subtitle {
  color: var(--neutral-600);
}

/* =========== PROJECTS SECTION =========== */
#projects .card {
  margin-bottom: 2rem;
}

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

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

/* =========== RESOURCES SECTION =========== */
#resources .card {
  height: 100%;
}

#resources ul {
  list-style-type: none;
  padding: 0;
}

#resources ul li {
  margin-bottom: 0.75rem;
}

#resources ul li a {
  color: var(--primary-color);
  transition: color var(--transition-fast);
  display: inline-block;
}

#resources ul li a:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* =========== BLOG SECTION =========== */
#blog .card-content {
  text-align: left;
}

#blog .subtitle.is-6 {
  color: var(--neutral-500);
  margin-bottom: 1rem;
}

#blog .button {
  margin-top: auto;
}

/* =========== MISSION SECTION =========== */
#mission .content {
  margin-bottom: 3rem;
}

/* =========== PORTFOLIO SECTION =========== */
#portfolio .card {
  height: 100%;
}

/* =========== SUSTAINABILITY SECTION =========== */
#sustainability ul {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#sustainability ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

#sustainability ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* =========== FAQ SECTION =========== */
.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--neutral-300);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item .title {
  color: var(--neutral-800);
  margin-bottom: 0.75rem;
}

/* =========== CAREERS SECTION =========== */
#careers .box {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

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

#careers .box .title {
  margin-bottom: 0.5rem;
}

/* =========== AWARDS SECTION =========== */
#awards .card {
  height: 100%;
  text-align: center;
}

#awards .image.is-96x96 {
  margin: 0 auto;
}

/* =========== CONTACT SECTION =========== */
#contact .box {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.form-control {
  margin-bottom: 1rem;
}

.label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neutral-700);
}

.input, .textarea, .select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-md);
  background-color: var(--neutral-100);
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
  outline: none;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

/* =========== FOOTER SECTION =========== */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--neutral-100);
  margin-bottom: 1.25rem;
}

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

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

.footer ul li a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer ul li a:hover {
  color: var(--neutral-100);
}

.footer hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--neutral-700);
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer .has-text-centered {
  margin-top: 1rem;
}

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

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

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

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

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

/* =========== UTILITY CLASSES =========== */
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }

.has-text-centered { text-align: center; }
.has-text-white { color: var(--neutral-100) !important; }
.has-background-light { background-color: var(--neutral-200); }

/* =========== RESPONSIVE STYLES =========== */
@media (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .columns {
    display: block;
  }
  
  .column {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  
  .navbar-menu {
    background-color: var(--neutral-800);
  }
  
  .navbar-item {
    color: var(--neutral-300);
  }
}

/* =========== SPECIAL PAGES =========== */
/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

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

.privacy-page .container, .terms-page .container {
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin: 2rem auto;
}

/* =========== CUSTOM STYLES FOR SPECIFICS =========== */
/* Image aspect ratios */
.image.is-square {
  position: relative;
  padding-top: 100%;
}

.image.is-4by3 {
  position: relative;
  padding-top: 75%;
}

.image.is-16by9 {
  position: relative;
  padding-top: 56.25%;
}

.image.is-square img, .image.is-4by3 img, .image.is-16by9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navbar mobile menu */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    position: absolute;
    width: 100%;
    top: var(--header-height);
  }
}

/* Ensure all card images are properly styled */
.card-image, 
.card .image,
.card .image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

/* Ensure all text in cards is properly aligned */
.card-content {
  width: 100%;
  text-align: center;
}

.card-content .title,
.card-content .subtitle,
.card-content p {
  text-align: center;
}

.card-content .button {
  margin-left: auto;
  margin-right: auto;
}

/* Social media icons in footer */
.footer a[href*="facebook"],
.footer a[href*="twitter"],
.footer a[href*="instagram"],
.footer a[href*="linkedin"],
.footer a[href*="youtube"] {
  display: inline-block;
  margin-right: 1rem;
  font-weight: bold;
  transition: all var(--transition-fast);
}

.footer a[href*="facebook"]:hover,
.footer a[href*="twitter"]:hover,
.footer a[href*="instagram"]:hover,
.footer a[href*="linkedin"]:hover,
.footer a[href*="youtube"]:hover {
  transform: translateY(-3px);
}

/* Read more links */
a.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

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

a.read-more::after {
  content: ' →';
  transition: all var(--transition-fast);
}

a.read-more:hover::after {
  margin-left: 3px;
}