/* Custom Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Utility Classes */
.animate-fade-in {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ef283b 0%, #63c86f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ef283b, #63c86f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff3d4f, #7dd98a);
}

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

/* Video Background Fallback */
video::-webkit-media-controls {
    display: none !important;
}

/* Selection */
::selection {
    background: rgba(239, 40, 59, 0.3);
    color: white;
}

/* Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #63c86f;
    outline-offset: 2px;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 40, 59, 0.2);
}

/* Hero Slider Text Transition */
.hero-slide-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
    text-wrap: balance;
    max-width: 18ch;
}

.hero-slide-text.is-leaving {
    opacity: 0;
    transform: translateY(18px);
}

#heroSubtitle {
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

#heroSubtitle.is-leaving {
    opacity: 0;
    transform: translateY(12px);
}

.hero-title-wrap {
    min-height: 200px;
    padding-bottom: 14px;
}

.section-divider {
    position: relative;
    height: 44px;
    margin-top: -1px;
}

.section-divider::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(239, 40, 59, 0.85) 22%, rgba(99, 200, 111, 0.85) 78%, transparent 100%);
}

.section-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    width: 120px;
    height: 16px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(99, 200, 111, 0.2) 0%, rgba(239, 40, 59, 0.15) 45%, transparent 75%);
}

.brand-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,200,111,.55);
    box-shadow: 0 16px 34px rgba(0,0,0,0.45), 0 0 0 1px rgba(239,40,59,.35) inset;
}

.catalog-more-btn {
    background: linear-gradient(90deg, rgba(239,40,59,0.95), rgba(99,200,111,0.95));
    box-shadow: 0 10px 26px rgba(239,40,59,0.25);
}

.catalog-more-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(99,200,111,0.28);
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(239, 40, 59, 0.55);
    background: linear-gradient(135deg, rgba(239,40,59,0.2), rgba(239,40,59,0.08));
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(239,40,59,0.3);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.modal-close-btn:hover {
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.08);
    box-shadow: 0 12px 24px rgba(239,40,59,0.4);
}

.modal-submit-btn {
    background: linear-gradient(90deg, #ef283b 0%, #63c86f 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 14px 32px rgba(99,200,111,0.25), 0 10px 24px rgba(239,40,59,0.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.modal-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 18px 36px rgba(99,200,111,0.32), 0 14px 30px rgba(239,40,59,0.28);
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #1a1a1a);
    border-radius: 1rem;
    z-index: 1;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ef283b, #63c86f);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Button Glow */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ef283b, #63c86f);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-glow:hover::after {
    opacity: 0.5;
}

/* Map Filter */
.map-filter {
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.map-filter:hover {
    filter: grayscale(0%) contrast(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 20s;
    }
    
    .reveal-on-scroll {
        transform: translateY(20px);
    }

    .hero-title-wrap {
        min-height: 0;
        padding-bottom: 6px;
    }

    .hero-slide-text {
        max-width: none;
        text-wrap: pretty;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .animate-marquee {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}