/* =========================================
   Co-Ax Enterprises — Custom Styles
   ========================================= */

/* === FONT FALLBACKS / BASE === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* AOS safety — never invisible */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* === GRAIN OVERLAY === */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.4;
}

/* === NAVBAR SCROLLED === */
#navbar.scrolled {
  background: rgba(247, 243, 238, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(20,18,16,0.08);
  border-bottom: 1px solid rgba(42,36,32,0.08);
}
#navbar { background: transparent; }

/* === HERO === */
.hero-bg-gradient {
  background: radial-gradient(ellipse at 20% 60%, rgba(200,96,26,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(158,71,16,0.1) 0%, transparent 50%),
              linear-gradient(135deg, #141210 0%, #2B2420 100%);
}

.hero-shape {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-headline {
  position: relative;
  z-index: 10;
}

/* === SCROLL LINE INDICATOR === */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,96,26,0.8), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* === MARQUEE === */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-block; }

.marquee-track-fast {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track-fast span { display: inline-block; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === HERO IMAGE WRAP === */
.hero-img-wrap {
  z-index: 2;
  pointer-events: none;
}

/* === SERVICES PATTERN === */
.services-pattern {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(200,96,26,0.15) 40px,
    rgba(200,96,26,0.15) 41px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(200,96,26,0.15) 40px,
    rgba(200,96,26,0.15) 41px
  );
}

/* === CTA PATTERN === */
.cta-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.1) 0px,
    rgba(255,255,255,0.1) 1px,
    transparent 1px,
    transparent 12px
  );
}

/* === SERVICE CARD hover line === */
.service-card {
  position: relative;
  transition: background-color 0.35s ease, transform 0.25s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8601A;
  transition: width 0.4s ease;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { transform: translateY(-2px); }

/* === GALLERY ITEM === */
.gallery-item {
  position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
  z-index: 20;
}
.gallery-item:hover::after { border-color: #C8601A; }

/* === TESTIMONIAL CARD === */
.testimonial-card { position: relative; }

/* === ABOUT IMG BLOCK === */
.about-img-block {
  transition: transform 0.5s ease;
}
.about-img-block:hover { transform: scale(1.01); }

/* === NAV LINK UNDERLINE === */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #C8601A;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* === MOBILE MENU TRANSITION === */
#mobile-menu:not(.hidden) {
  animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === COUNTER === */
.counter { font-variant-numeric: tabular-nums; }

/* === RESPONSIVE TWEAKS === */
@media (max-width: 640px) {
  .hero-headline .block { letter-spacing: 0.04em; }
  .gallery-item { height: 200px !important; }
}

/* === FORM INPUT FOCUS === */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #C8601A;
  box-shadow: 0 0 0 2px rgba(200,96,26,0.12);
}

/* === SCROLLBAR (webkit) === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F7F3EE; }
::-webkit-scrollbar-thumb { background: #C8601A; border-radius: 3px; }

/* === SELECTION === */
::selection { background: #C8601A; color: #fff; }
