/* Custom styles for Hart's Fuel Service */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #08141f;
}
::-webkit-scrollbar-thumb {
    background: #1e4466;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5f8a;
}

/* Selection */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0fdf4;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(4, 10, 16, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(30, 68, 102, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    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; }

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}
#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Mobile link hover */
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 68, 102, 0.3);
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Pulse animation for the dot */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
}

/* Subtle gradient border effect on cards */
.card-glow {
    position: relative;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), transparent, rgba(74, 222, 128, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-glow:hover::before {
    opacity: 1;
}

/* Asymmetric hero image */
.hero-img-main {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    #navbar, #contactForm, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
