/* ===== Base & Custom Properties ===== */
:root {
  --color-primary: #7BC74D;
  --color-primary-dark: #5A9E35;
  --color-primary-light: #A4E07A;
  --color-dark-green: #1B4332;
  --color-dark-green-deep: #0D2818;
  --color-blue: #2563EB;
  --color-light-blue: #60A5FA;
  --color-yellow: #FACC15;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Remove default focus outline and add custom */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-dark-green-deep);
}

/* ===== Grid Pattern Background ===== */
.bg-grid-pattern {
  background-image:
    linear-gradient(rgba(123, 199, 77, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 199, 77, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ===== Animations ===== */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Scroll line animation */
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.scroll-line {
  animation: scroll-pulse 2s ease-in-out infinite;
  transform-origin: top;
}

/* ===== Navigation ===== */
#navbar {
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 60%;
  left: 20%;
}

/* Mobile menu toggle animation */
#menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

#menu-toggle.active .menu-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

#menu-toggle.active .menu-bar:nth-child(3) {
  width: 0;
}

#mobile-menu.open {
  transform: translateX(0);
}

/* ===== Service Cards ===== */
.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ===== Hero Visual ===== */
.hero-visual img {
  transition: transform 0.6s ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
}

/* ===== Partner Logos ===== */
.partner-logo img {
  transition: filter 0.3s ease, transform 0.3s ease;
}

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

/* ===== GSAP Initial States (using clip-path and transforms, NOT opacity) ===== */
.hero-content {
  clip-path: inset(0 0 100% 0);
}

.hero-visual {
  clip-path: inset(100% 0 0 0);
}

.about-left,
.about-right {
  clip-path: inset(0 100% 0 0);
}

.services-header {
  clip-path: inset(100% 0 0 0);
}

.service-card {
  clip-path: inset(0 0 100% 0);
}

.estimate-content {
  clip-path: inset(0 0 100% 0);
}

.testimonial-content {
  clip-path: inset(0 100% 0 0);
}

.partners-header {
  clip-path: inset(100% 0 0 0);
}

.partner-logo {
  clip-path: inset(0 0 100% 0);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero-geo {
    display: none;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.75rem;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}