/* ============================================
   FARMNEY COSTA S.A.C - Professional Stylesheet
   ============================================ */

:root {
  /* Color Palette */
  --navy-900: #060e1a;
  --navy-800: #0a1628;
  --navy-700: #0f1f38;
  --navy-600: #15294a;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-dark: #a88a30;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #c4cad4;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1280px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.25);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dark);
  margin-bottom: 16px;
  position: relative;
  padding-left: 48px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--navy-600);
}

.btn-outline:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar.scrolled .navbar-brand {
  color: var(--navy-800);
}

.navbar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold-light);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--navy-800);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .menu-toggle span {
  background: var(--navy-800);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--gold);
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  backdrop-filter: blur(10px);
  position: relative;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--gold);
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.about-experience .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}

.about-experience .label {
  font-size: 0.85rem;
  color: var(--navy-700);
  font-weight: 500;
  margin-top: 4px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.about-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--gray-50);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   PROJECTS / PORTFOLIO SECTION
   ============================================ */
.projects {
  background: var(--white);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 26, 0.9) 0%, rgba(6, 14, 26, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.project-overlay p {
  color: var(--gold-light);
  font-size: 0.85rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--navy-800);
  color: var(--white);
}

.testimonials .section-label {
  color: var(--gold-light);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 32px;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-author p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy-800);
  border-radius: 16px;
  padding: 48px 40px;
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px 40px;
}

.contact-form-wrapper h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  padding-top: 120px;
  background: var(--gray-50);
  min-height: 100vh;
}

.privacy-content {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.privacy-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy-800);
  margin-bottom: 12px;
}

.privacy-content .last-updated {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: 1.3rem;
  color: var(--navy-800);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.privacy-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content ul li {
  color: var(--gray-600);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.navbar.scrolled .lang-btn {
  border-color: var(--gray-300);
  color: var(--gray-500);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
}

.lang-btn:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.navbar.scrolled .lang-btn:hover {
  color: var(--navy-800);
  border-color: var(--navy-600);
}

.lang-btn.active:hover {
  background: var(--gold-dark);
  color: var(--navy-900);
  border-color: var(--gold-dark);
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy-800);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1000;
  }

  .services-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --navy-900: #f8f9fb;
  --navy-800: #0a1628;
  --navy-700: #0f1f38;
  --navy-600: #15294a;
  --white: #0f1f38;
  --gray-50: #060e1a;
  --gray-100: #0a1628;
  --gray-200: #15294a;
  --gray-300: #4b5563;
  --gray-400: #6b7280;
  --gray-500: #9ca3af;
  --gray-600: #c4cad4;
  --gray-700: #e2e6ea;
  --gray-800: #f0f2f5;
}

[data-theme="dark"] body {
  background: #060e1a;
  color: #c4cad4;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: #f0f2f5;
}

[data-theme="dark"] .section-title {
  background: linear-gradient(to right, #f0f2f5, var(--gold-light));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

[data-theme="dark"] .section-subtitle {
  color: #9ca3af;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(6, 14, 26, 0.95);
}

[data-theme="dark"] .navbar.scrolled .navbar-brand,
[data-theme="dark"] .navbar.scrolled .nav-links a {
  color: #e2e6ea;
}

[data-theme="dark"] .navbar.scrolled .nav-links a:hover {
  color: var(--gold-light);
}

[data-theme="dark"] .about { background: #060e1a; }
[data-theme="dark"] .services { background: #060e1a; }
[data-theme="dark"] .projects { background: #060e1a; }
[data-theme="dark"] .contact { background: #060e1a; }
[data-theme="dark"] .privacy-page { background: #060e1a; }

[data-theme="dark"] .about .section-subtitle,
[data-theme="dark"] .about-feature p,
[data-theme="dark"] .about .section-title + p[style] {
  color: #9ca3af !important;
}

[data-theme="dark"] .service-card {
  background: #0a1628;
  border-color: #1a3359;
}

[data-theme="dark"] .service-card p {
  color: #9ca3af;
}

[data-theme="dark"] .contact-form-wrapper {
  background: #0a1628;
  border-color: #1a3359;
}

[data-theme="dark"] .form-group label {
  color: #c4cad4;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
  background: #0f1f38;
  color: #e2e6ea;
  border-color: #1a3359;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .hero {
  background: #060e1a;
}

[data-theme="dark"] .navbar.scrolled .menu-toggle span {
  background: #e2e6ea;
}

[data-theme="dark"] .cookie-banner {
  background: #0a1628;
  color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .cookie-btn.reject {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.2);
}

[data-theme="dark"] .cookie-btn.reject:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .contact-info-card h3,
[data-theme="dark"] .contact-form-wrapper h3 {
  color: #f0f2f5;
}

[data-theme="dark"] .privacy-content h1,
[data-theme="dark"] .privacy-content h2 {
  color: #f0f2f5;
}

[data-theme="dark"] .privacy-content p,
[data-theme="dark"] .privacy-content li {
  color: #c4cad4;
}

[data-theme="dark"] .privacy-content h2 {
  border-top-color: #1a3359;
}

[data-theme="dark"] .btn-outline {
  color: #c4cad4;
  border-color: #4b5563;
}

[data-theme="dark"] .btn-outline:hover {
  background: #c4cad4;
  color: #0a1628;
}

[data-theme="dark"] .testimonials .section-title {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

[data-theme="dark"] .testimonials .section-subtitle {
  color: rgba(255,255,255,0.55);
}

[data-theme="dark"] .testimonials .section-label {
  color: var(--gold-light);
}

[data-theme="dark"] .footer ul li a {
  color: rgba(255,255,255,0.55);
}

[data-theme="dark"] .footer ul li a:hover {
  color: var(--gold-light);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
}

.navbar.scrolled .theme-toggle-btn {
  border-color: var(--gray-400);
  color: var(--navy-800);
  background: transparent;
}

.theme-toggle-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: rotate(20deg);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--navy-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.preloader-logo span {
  color: var(--gold);
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy-900);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0a1628;
  color: rgba(255,255,255,0.9);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 0.9rem;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  flex: 1;
  min-width: 240px;
  line-height: 1.6;
}

.cookie-banner a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.cookie-btn.accept {
  background: var(--gold);
  color: #0a1628;
}

.cookie-btn.accept:hover {
  background: var(--gold-dark);
}

.cookie-btn.reject {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
}

.cookie-btn.reject:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #22c55e !important;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444 !important;
}

.form-group .error-message {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  padding: 0;
  margin-top: -40px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
