/* ========== BASE & PERFORMANCE OPTIMIZATIONS ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Disable smooth scrolling for better performance */
html {
  scroll-behavior: auto;
  /* Changed from smooth */
}

/* Brand mapping:
   Primary: #d99542 (gold)
   Secondary (kept as variable but intentionally NOT used): #07430f
*/

:root {
  /* BRAND COLORS */
  --brand-primary: #d99542;
  --brand-primary-light: #e8aa65;
  --brand-primary-dark: #b67a32;
  --brand-primary-rgb: 217, 149, 66;
  --brand-primary-light-rgb: 232, 170, 101;
  --brand-primary-dark-rgb: 182, 122, 50;

  --brand-secondary: #07430f;
  --brand-secondary-light: #0e6a1c;
  --brand-secondary-dark: #021806;
  --brand-secondary-rgb: 7, 67, 15;
  --brand-secondary-light-rgb: 14, 106, 28;
  --brand-secondary-dark-rgb: 3, 39, 10;

  /* DARK MODE BASE */
  --dark-bg: #1a1815;
  --dark-secondary: #262421;
  --dark-surface: #2e2b27;

  --text-light: #f6f3ef;
  --text-muted-dark: #c0b8aa;

  /* COMPONENT-COMPATIBLE TOKENS */
  --gold-primary: #d99542;
  --gold-secondary: #b67a32;
  --gold-light: #e8aa65;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Enable GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

body.light-mode {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: #2c3e50;
}

/* Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== NAVBAR ========== */
.navbar {
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  padding: 1rem 0;
  transition: transform 0.3s ease;
  /* Simplified transition */
  z-index: 1030;
  background: rgba(26, 24, 21, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(217, 149, 66, 0.08);
  /* Optimize for scrolling */
  transform: translateZ(0);
  will-change: transform;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-light) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 54px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.navbar-brand:hover {
  color: var(--gold-primary) !important;
}

.navbar-toggler {
  border: 2px solid rgba(var(--brand-primary-rgb), 0.3);
  background: rgba(var(--brand-primary-rgb), 0.08);
  padding: 0.6rem;
  border-radius: 8px;
}

.navbar-nav {
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold-primary) !important;
  background: rgba(var(--brand-primary-rgb), 0.08);
}

/* Navbar Controls */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-dropdown-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lang-dropdown-btn i.fa-globe {
  color: var(--gold-primary);
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.18);
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: #2c3e50;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

.dropdown-item.active {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: var(--text-light);
  font-weight: 600;
}

.theme-toggle {
  cursor: pointer;
  border-radius: 50%;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* Light Mode Navbar */
body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .navbar-brand,
body.light-mode .nav-link {
  color: #2c3e50 !important;
}

body.light-mode .nav-link:hover {
  color: var(--gold-primary) !important;
}

body.light-mode .lang-dropdown-btn {
  background: rgba(0, 0, 0, 0.04);
  color: #2c3e50;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  color: #2c3e50;
  border-color: rgba(0, 0, 0, 0.1);
}

/* ========== HERO SECTION ========== */
#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background: url('imgs/1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Optimize for performance */
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 24, 21, 0.6) 0%, rgba(38, 36, 33, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--gold-light), #fff, var(--gold-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ========== BUTTONS ========== */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-secondary) 100%);
  color: #000;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(var(--brand-primary-rgb), 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  /* Reduced from -5px */
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.5);
  color: #000;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #000;
  transform: translateY(-2px);
  /* Reduced from -5px */
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.4);
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 0;
  /* Optimize for scrolling */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text-light);
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--gold-primary), var(--brand-secondary));
  border-radius: 2px;
}

/* Light mode section title */
body.light-mode .section-title {
  color: var(--brand-secondary);
}

/* ========== SERVICES SECTION ========== */
#services {
  background: linear-gradient(135deg, #262421 0%, #2e2b27 100%);
  position: relative;
}

body.light-mode #services {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ========== GLASS CARDS ========== */
.glass-card {
  background: rgba(46, 43, 39, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 149, 66, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  /* Optimize for performance */
  transform: translateZ(0);
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-8px);
  /* Reduced from -15px */
  box-shadow: 0 15px 40px rgba(var(--brand-primary-rgb), 0.3);
  border-color: rgba(var(--brand-primary-rgb), 0.4);
}

body.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(7, 67, 15, 0.15);
  box-shadow: 0 8px 32px rgba(7, 67, 15, 0.08);
}

body.light-mode .glass-card:hover {
  box-shadow: 0 15px 40px rgba(7, 67, 15, 0.15);
  border-color: rgba(var(--brand-primary-rgb), 0.3);
}

.text-gold {
  color: var(--gold-primary);
}

.glass-card h3,
.glass-card h5 {
  color: var(--text-light);
  font-weight: 700;
  margin-top: 1rem;
}

body.light-mode .glass-card h3,
body.light-mode .glass-card h5 {
  color: #2c3e50;
}

/* ========== ABOUT SECTION ========== */
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  /* Optimize for performance */
  transform: translateZ(0);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.02);
  /* Reduced from 1.05 */
}

#about {
  background: linear-gradient(135deg,
      var(--brand-secondary) 0%,
      var(--brand-secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}

#about .section-title {
  color: #ffffff;
}

#about .lead,
#about p {
  color: rgba(255, 255, 255, 0.85);
}

body.light-mode #about {
  background: linear-gradient(135deg,
      rgba(14, 106, 28, 0.08) 0%,
      rgba(7, 67, 15, 0.12) 100%);
}

body.light-mode #about .section-title {
  color: var(--brand-secondary);
}

body.light-mode #about .lead,
body.light-mode #about p {
  color: #2c3e50;
}

/* ========== PORTFOLIO SECTION ========== */
#portfolio {
  background: linear-gradient(135deg, #262421 0%, #2e2b27 100%);
  position: relative;
}

body.light-mode #portfolio {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#portfolio .section-title {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

body.light-mode #portfolio .section-title {
  color: var(--brand-secondary);
}

.project-card {
  background: rgba(46, 43, 39, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Optimize for performance */
  transform: translateZ(0);
  will-change: transform;
}

body.light-mode .project-card {
  background: #ffffff;
  border-color: rgba(7, 67, 15, 0.1);
  box-shadow: 0 4px 20px rgba(7, 67, 15, 0.08);
}

body.light-mode .project-card:hover {
  box-shadow: 0 15px 40px rgba(7, 67, 15, 0.12);
}

.project-card:hover {
  transform: translateY(-8px);
  /* Reduced from -10px */
  box-shadow: 0 15px 40px rgba(var(--brand-primary-rgb), 0.2);
  border-color: rgba(var(--brand-primary-rgb), 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: #000;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  /* Reduced from 1.1 */
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.95), rgba(var(--brand-primary-dark-rgb), 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content i {
  font-size: 3rem;
  color: #fff;
}

.project-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.15), rgba(var(--brand-primary-rgb), 0.1));
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  width: fit-content;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

body.light-mode .project-title {
  color: #000;
}

.project-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

body.light-mode .project-description {
  color: rgba(0, 0, 0, 0.6);
}

/* Clickable Project Cards */
.swiper-slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.swiper-slide a:hover {
  text-decoration: none;
}

/* Project Details Page */
.project-description-full {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.project-description-full p {
  margin-bottom: 1rem;
}

.project-description-full h1,
.project-description-full h2,
.project-description-full h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-description-full ul,
.project-description-full ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

/* Swiper */
.portfolioSwiper {
  padding: 2rem 0 4rem;
}

.portfolioSwiper .swiper-slide {
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  display: flex !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(var(--brand-primary-rgb), 0.95);
  border-radius: 50%;
  color: #fff !important;
  justify-content: center;
  align-items: center;
  z-index: 50;
  cursor: pointer;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--gold-primary);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

body.light-mode .swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.2);
}

.swiper-pagination-bullet-active {
  background: var(--gold-primary);
  width: 35px;
  border-radius: 6px;
}

/* ========== CLIENTS SECTION ========== */
#clients {
  background: linear-gradient(135deg,
      rgba(7, 67, 15, 0.85) 0%,
      rgba(3, 39, 10, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

#clients .section-title {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

#clients .lead {
  color: rgba(255, 255, 255, 0.8);
}

body.light-mode #clients {
  background: linear-gradient(135deg,
      rgba(14, 106, 28, 0.08) 0%,
      rgba(7, 67, 15, 0.12) 100%);
}

body.light-mode #clients .section-title {
  color: var(--brand-secondary);
}

body.light-mode #clients .lead {
  color: rgba(0, 0, 0, 0.7);
}

.clientsSwiper {
  padding: 2rem 0;
  overflow: visible;
}

.clientsSwiper .swiper-slide {
  width: auto !important;
  margin-right: 2.5rem;
}

.client-item {
  width: 180px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Optimize for performance */
  transform: translateZ(0);
  will-change: transform;
}

body.light-mode .client-item {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(7, 67, 15, 0.12);
  box-shadow: 0 4px 15px rgba(7, 67, 15, 0.06);
}

.client-item:hover {
  transform: translateY(-6px) scale(1.03);
  /* Reduced effects */
  border-color: rgba(var(--brand-primary-rgb), 0.3);
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.2);
}

body.light-mode .client-item:hover {
  box-shadow: 0 10px 30px rgba(7, 67, 15, 0.12);
  border-color: rgba(var(--brand-primary-rgb), 0.25);
}

.client-item img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.client-item:hover img {
  transform: scale(1.05);
  /* Reduced from 1.1 */
}

/* ========== CTA SECTION ========== */
#cta {
  background: linear-gradient(135deg, #262421 0%, #2e2b27 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

#cta .cta-title,
#cta .cta-subtitle {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

body.light-mode #cta {
  background: linear-gradient(135deg,
      #ffffff 0%,
      #f8f9fa 100%);
}

body.light-mode #cta .cta-title {
  color: var(--brand-secondary);
}

body.light-mode #cta .cta-subtitle {
  color: #4a5568;
}

.cta-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(var(--brand-primary-rgb), 0.3);
}

.cta-icon i {
  font-size: 2.5rem;
  color: var(--text-light);
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 1rem;
}

body.light-mode .cta-title {
  color: #2c3e50;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

body.light-mode .cta-subtitle {
  color: rgba(0, 0, 0, 0.7);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== CONTACT SECTION ========== */
#contact {
  background: linear-gradient(135deg, #262421 0%, #2e2b27 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

#contact .section-title {
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

body.light-mode #contact {
  background: linear-gradient(135deg,
      #ffffff 0%,
      #f0f4f1 100%);
}

body.light-mode #contact .section-title {
  color: var(--brand-secondary);
}

.modern-form {
  background: rgba(46, 43, 39, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.15);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.2);
}

body.light-mode .modern-form {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(7, 67, 15, 0.1);
  box-shadow: 0 10px 30px rgba(7, 67, 15, 0.08);
}

.modern-form .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.modern-form label {
  font-weight: 600;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

body.light-mode .modern-form label {
  color: #2c3e50;
}

.modern-form label i {
  margin-right: 0.5rem;
  color: var(--gold-primary);
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(46, 43, 39, 0.15);
  color: var(--text-light);
  font-size: 0.95rem;
  outline: none;
}

body.light-mode .modern-form input,
body.light-mode .modern-form textarea {
  background: #ffffff;
  border-color: rgba(7, 67, 15, 0.15);
  color: #2c3e50;
}

.modern-form textarea {
  min-height: 140px;
  resize: vertical;
}

.modern-form button {
  width: 100%;
  padding: 1rem 0;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-secondary));
  color: #000;
  border: none;
  cursor: pointer;
}

.modern-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.3);
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark-bg);
  padding: 4rem 2rem 1rem 2rem;
  color: var(--text-light);
  position: relative;
  font-family: inherit;
}

body.light-mode footer {
  background: linear-gradient(135deg,
      rgba(14, 106, 28, 0.08) 0%,
      rgba(7, 67, 15, 0.12) 100%);
  color: #1d1d1d;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gold-primary);
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column a:hover {
  color: var(--gold-light);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-link {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-primary-rgb), 0.1);
  border-radius: 50%;
  color: var(--gold-primary);
}

.social-link:hover {
  background: var(--gold-primary);
  color: #0a0a0a;
  transform: scale(1.05);
  /* Reduced from 1.1 */
}

.map-container iframe {
  border-radius: 12px;
  border: 0;
  width: 100%;
  height: 200px;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem 0 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.light-mode .footer-bottom {
  color: rgba(0, 0, 0, 0.6);
  border-top-color: rgba(0, 0, 0, 0.1);
}

footer a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

footer a:hover,
.footer-bottom a:hover {
  color: var(--gold-primary) !important;
}

/* Light mode support */
body.light-mode .footer-column h3 {
  color: var(--gold-primary);
}

body.light-mode .footer-column p,
body.light-mode .footer-column a {
  color: rgba(0, 0, 0, 0.7);
}

body.light-mode .social-link {
  background: rgba(var(--brand-primary-rgb), 0.08);
  color: var(--gold-primary);
}

body.light-mode .social-link:hover {
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }

  body.light-mode .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem !important;
  }

  .navbar-controls {
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.light-mode .navbar-controls {
    border-top-color: rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  #hero {
    min-height: 500px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .glass-card {
    padding: 2rem;
  }

  .project-image {
    height: 220px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-gold,
  .btn-outline-gold {
    width: 100%;
    justify-content: center;
  }

  .clientsSwiper .swiper-slide {
    margin-right: 2rem;
  }

  .client-item {
    width: 140px;
    height: 90px;
    padding: 1rem;
  }

  .client-item img {
    max-height: 55px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-icon {
    width: 60px;
    height: 60px;
  }

  .cta-icon i {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn-gold,
  .btn-outline-gold {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .clientsSwiper .swiper-slide {
    margin-right: 1.5rem;
  }

  .client-item {
    width: 120px;
    height: 80px;
    padding: 0.8rem;
  }

  .client-item img {
    max-height: 45px;
  }
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Text Muted - Lighter in Dark Mode */
body:not(.light-mode) .text-muted {
  color: #c0b8aa !important;
  opacity: 0.95;
}

body.light-mode .text-muted {
  color: #6c757d !important;
}

/* Print styles */
@media print {

  .navbar,
  .theme-toggle,
  .hero-particles,
  .hero-sparks,
  footer {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: white !important;
    color: black !important;
  }
}

/* Disable heavy animations on mobile */
@media (max-width: 768px) {
  .hero h1 {
    animation: none;
  }

  .glass-card:hover,
  .project-card:hover,
  .client-item:hover {
    transform: none;
  }
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.05) !important;
}

.form-group .error-message {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

body.light-mode .form-group input.error,
body.light-mode .form-group textarea.error {
  background-color: rgba(239, 68, 68, 0.1) !important;
}

/* Alert Styles for Form Messages */
.alert {
  padding: 1rem 1.25rem !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

body.light-mode .alert-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
}

body.light-mode .alert-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
}

/* Client Name Overlay on Hover */
.client-item {
  position: relative;
  overflow: hidden;
}

.client-name-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(217, 149, 66, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.client-item:hover .client-name-overlay {
  opacity: 1;
}

.client-name-overlay span {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .client-name-overlay {
  background: rgba(217, 149, 66, 0.9);
}