/* ============================================
   PKO Vehicle Service & Detail — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection */
::selection {
    background: #0d9488;
    color: white;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
}

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

#navbar.scrolled .nav-text {
    color: #0f172a !important;
}

#navbar.scrolled .nav-link {
    color: #475569 !important;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0d9488;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #0d9488 !important;
}

/* ============================================
   Mobile Menu
   ============================================ */
.menu-line {
    display: block;
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-link {
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* ============================================
   Services
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #0d9488;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ============================================
   Form
   ============================================ */
select option {
    background: white;
    color: #334155;
}

/* ============================================
   Animations
   ============================================ */
.hero-element {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-element:nth-child(1) { transition-delay: 0.1s; }
.hero-element:nth-child(2) { transition-delay: 0.25s; }
.hero-element:nth-child(3) { transition-delay: 0.4s; }
.hero-element:nth-child(4) { transition-delay: 0.55s; }

.service-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.service-reveal:nth-child(1) { transition-delay: 0.05s; }
.service-reveal:nth-child(2) { transition-delay: 0.15s; }
.service-reveal:nth-child(3) { transition-delay: 0.25s; }

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

.about-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.about-reveal:nth-child(1) { transition-delay: 0.05s; }
.about-reveal:nth-child(2) { transition-delay: 0.15s; }
.about-reveal:nth-child(3) { transition-delay: 0.25s; }
.about-reveal:nth-child(4) { transition-delay: 0.35s; }

.cta-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.cta-reveal:nth-child(1) { transition-delay: 0.05s; }
.cta-reveal:nth-child(2) { transition-delay: 0.15s; }
.cta-reveal:nth-child(3) { transition-delay: 0.25s; }

.contact-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.contact-reveal:nth-child(1) { transition-delay: 0.05s; }
.contact-reveal:nth-child(2) { transition-delay: 0.15s; }
.contact-reveal:nth-child(3) { transition-delay: 0.25s; }

.contact-form-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-form-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}
