/* ===================================
   SPARTAN INDUSTRIES — Custom Styles
   =================================== */

/* Base & Reset */
*, *::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: 8px;
}
::-webkit-scrollbar-track {
    background: #0D1B2A;
}
::-webkit-scrollbar-thumb {
    background: #00C9A7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00a88e;
}

/* Selection */
::selection {
    background: #00C9A7;
    color: #0D1B2A;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 27, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu active state */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Hamburger animation */
#menu-icon.active #line1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-icon.active #line2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-icon.active #line3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ===================================
   HERO SECTION
   =================================== */
@keyframes scrollDot {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00C9A7, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* ===================================
   FEATURE CARDS
   =================================== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(13, 27, 42, 0.6);
    transform: translateX(4px);
}

/* ===================================
   FORM STYLES
   =================================== */
input:focus,
textarea:focus {
    background: rgba(13, 27, 42, 0.8);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

.rotate-slow {
    animation: rotate-slow 30s linear infinite;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
    
    .feature-card:hover {
        transform: translateX(8px);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    nav, #contact-form, .animate-scroll-dot {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
