/* Custom styles for TSJ Manufacturing */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 212, 168, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 212, 168, 0.5);
}

/* Selection */
::selection {
    background: rgba(52, 212, 168, 0.3);
    color: #fff;
}

/* Nav transitions */
#navbar.scrolled {
    background: rgba(5, 13, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) translate(-50%, -50%); }
    50% { transform: translateY(-20px) translate(-50%, -50%); }
}

.hero-gradient-orb {
    animation: float 8s ease-in-out infinite;
}

.hero-gradient-orb:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-gradient-orb:nth-child(3) {
    animation-delay: -5s;
    animation-duration: 12s;
}

/* Hero entrance */
.hero-eyebrow {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtext {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-stats {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section labels */
.section-label {
    display: block;
}

/* Section titles */
.section-title {
    opacity: 1;
}

/* Section descriptions */
.section-desc {
    opacity: 1;
}

/* Service cards */
.service-card {
    opacity: 1;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

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

/* Process steps */
.process-step {
    opacity: 1;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu.open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

/* Mobile menu button active state */
#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5px;
}

/* Select dropdown styling */
select option {
    background: #0a1628;
    color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    blockquote {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 4px;
    }
    
    .hero-stats > div {
        text-align: left;
    }
    
    .hero-stats > div:not(:first-child) {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 12px;
    }
}
