:root {
  /* Color Palette - Steel & Gold */
  --steel-dark: #0a0c10;
  --steel-darker: #050709;
  --steel-medium: #1a1d24;
  --steel-light: #2a2f3a;
  --gold-primary: #d4af37;
  --gold-secondary: #ffd700;
  --gold-dim: #b8941f;

  /* Gradients */
  --gradient-steel: linear-gradient(
    145deg,
    #050709 0%,
    #0a0c10 30%,
    #1a1d24 70%,
    #2a2f3a 100%
  );
  --gradient-gold: linear-gradient(
    90deg,
    #b8941f 0%,
    #d4af37 50%,
    #ffd700 100%
  );
  --gradient-button: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(212, 175, 55, 0.15) 100%
  );

  /* Typography */
  --font-primary: system-ui, -apple-system, sans-serif;
  --font-secondary: serif;
  --font-mono: monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-text: 0 2px 10px rgba(0, 0, 0, 0.3);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50px;
}

/* ---------- GLOBAL ENHANCEMENTS ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

html {
  scroll-behavior: smooth !important;

  height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-primary);
  background-color: var(--steel-dark);
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}

/* Grain Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- HEADER ENHANCEMENT ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
}

/* Navigation Container */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Brand Enhancement */

.logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo:visited,
.logo:hover,
.logo:active {
  color: inherit;
  text-decoration: none;
}
a .brand {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: transparent;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding: var(--space-xs) 0;
  letter-spacing: 0.2rem;
}

/* Navigation Links Enhancement */
header nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
}
/* Update the target ID */

header nav ul a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: var(--transition-smooth);
  background: transparent;
  border-radius: var(--radius-sm);
}

/* Hover Effect for Nav Links */
header nav ul a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: all 0.3s ease-in-out;
  border-radius: var(--radius-full);
}

header nav ul a:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

header nav ul a:hover::before {
  width: 80%;
}

/* Active Link */
header nav ul a[aria-current="page"] {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

header nav ul a[aria-current="page"]::before {
  width: 80%;
  background: var(--gold-secondary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-primary);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

footer {
  background: linear-gradient(
    to top,
    var(--steel-darker) 0%,
    var(--steel-dark) 100%
  );
  padding: var(--space-xl) 0 0 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

/* Gold accent line */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-primary),
    transparent
  );
  opacity: 0.5;
}

/* Main footer container */
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Footer columns */
.footer-column {
  padding: var(--space-md);
}

/* Brand section */
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.brand-icon {
  font-size: 2rem;
  animation: rotateGear 10s linear infinite;
}

.brand-name {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.cert-badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--gold-primary);
  display: inline-block;
}

/* Quick links */
.footer-heading {
  font-size: 1.1rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-out;
}

footer:hover .footer-heading::after {
  width: 60px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
  position: relative;
}

.footer-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-primary);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 100%;
}

/* Contact items */
.contact-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-icon svg {
  color: var(--gold-primary);
  width: 20px;
  height: 20px;
}

.contact-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Phone link */
.phone-link:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

/* WhatsApp link */
.whatsapp-link {
  position: relative;
  padding-right: 70px;
}

.whatsapp-badge {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  background: #25d366;
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.whatsapp-link:hover {
  color: #25d366;
}

/* Email link */
.email-link:hover {
  color: var(--gold-primary);
}

/* Social links container */
.social-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: socialFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--social-delay) * -1s);
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.social-link:hover {
  animation-play-state: paused;

  transform: translateY(-5px);
  border-color: transparent;
}

.social-icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Individual social media colors */
.facebook:hover::before {
  background: #1877f2;
  opacity: 0.2;
}
.facebook:hover .social-icon {
  color: #1877f2;
}

.instagram:hover::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  opacity: 0.2;
}
.instagram:hover .social-icon {
  color: #e4405f;
}

.youtube:hover::before {
  background: #ff0000;
  opacity: 0.2;
}
.youtube:hover .social-icon {
  color: #ff0000;
}

/* Business hours */
.business-hours {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-lg);
}

.hours-heading {
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-sm);
}

.hours {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

/* Footer bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: var(--space-sm);
  margin-right: 1rem;
}

.badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gold-primary);
  box-shadow: 0px 0px 10px var(--gold-primary);

  animation: socialFloat 5s ease-in-out infinite;
  animation-delay: calc(var(--social-delay, 0) * -1s);
}

.badge:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover::before {
  opacity: 1;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1;
}

.whatsapp-text {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #25d366;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.developer {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}
.developer:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.social-links a:nth-child(1) {
  --social-delay: 0;
}
.social-links a:nth-child(2) {
  --social-delay: 1.3;
}
.social-links a:nth-child(3) {
  --social-delay: 2.6;
}
.footer-badges .badge:nth-child(1) {
  --social-delay: 0;
}
.footer-badges .badge:nth-child(2) {
  --social-delay: 2.5;
}

/* ====================
   RESPONSIVE FOOTER
   ==================== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 817px) {
  a .brand {
    font-size: 1.5rem;
  }
}
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }

  header {
    height: 70px;
    padding: 0 var(--space-md);
  }

  a .brand {
    font-size: 1.1rem;
  }

  nav {
    /* Allow the nav to scroll sideways if needed */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */

    /* Hide the scrollbar (make it look cleaner) */
    scrollbar-width: none; /* Firefox */
  }

  nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  nav ul {
    gap: var(--space-md);
    /* Prevent links from wrapping to a new line */
    white-space: nowrap;
    /* Add padding so the first/last link isn't stuck to the screen edge */
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
  }

  nav a {
    padding: var(--space-xs);
  }
}

@media (max-width: 648px) {
  .desktop-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 12, 16, 0.98);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);

    flex-direction: column;
    gap: 0;
    min-width: 220px;
    padding: var(--space-sm);

    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .desktop-nav.open {
    transform: translateX(0);
  }

  .desktop-nav li {
    padding: var(--space-sm) 0;
  }

  .menu-toggle {
    display: block;
  }
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.fade-in {
  opacity: 1;
  transform: none;
}

/* Only animate when JS is present */
.js .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reveal state */
.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
