/* Base Reset & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
body {
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Cinematic Hero Animations */
.hero-container {
    overflow: hidden;
    position: relative;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

/* Native HTML5 Video Styling */
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.85; /* Slightly darkened for better text contrast */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(10,10,10,0.5) 100%);
    z-index: 1;
}

/* Navigation Transitions */
nav {
    transition: all 0.4s ease-in-out;
}
nav.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-link {
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #e60000; /* CFI Red */
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Scroll Reveal Animations (Intersection Observer targets) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Cinematic Focus Cards */
.focus-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: hover;
}
.focus-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.focus-card:hover .focus-card-img {
    transform: scale(1.08);
}
.focus-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    transition: background 0.5s ease;
}
.focus-card:hover .focus-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.3) 100%);
}
.focus-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}
.focus-card:hover .focus-card-content {
    transform: translateY(0);
}
.focus-card-text {
    opacity: 0.7;
    transition: opacity 0.5s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.focus-card:hover .focus-card-text {
    opacity: 1;
}
.focus-accent-line {
    width: 40px;
    height: 3px;
    background-color: #e60000; /* CFI Red */
    margin-bottom: 1rem;
    transition: width 0.5s ease;
}
.focus-card:hover .focus-accent-line {
    width: 80px;
}

/* TireConnect widget corner clipping and softer shape */
.tireconnect-shell {
    border-radius: 1rem;
}
.tireconnect-shell iframe,
.tireconnect-shell > div {
    border-radius: 1rem;
}