/* Root Variables for Moody/Minimalist Theme */
:root {
    --bg-color-main: #0a0a0c;
    /* Deep, almost black indigo */
    --bg-color-secondary: #050505;
    --text-color-primary: #f0f0f5;
    --text-color-secondary: #8c8c9a;
    --accent-color: #94a3b8;
    /* Light, almost white blue for subtle accents */
    --accent-hover: #ff2a40;
    --glass-bg: rgba(10, 10, 12, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Outfit', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color-main);
    color: var(--text-color-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Subtle line under h2 */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100%;
}

p {
    color: var(--text-color-secondary);
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 600px;
}

.center-text p {
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-color-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo-container .logo {
    height: 100px;
    width: auto;
    /* Optional: filter to make dark logos bright if necessary */
    /* filter: brightness(0) invert(1); */
    transition: transform var(--transition-smooth);
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--text-color-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-color-primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../assets/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 12, 0.3) 0%,
            rgba(10, 10, 12, 0.8) 80%,
            var(--bg-color-main) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--accent-color);
    font-weight: 600;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--text-color-primary);
    color: var(--bg-color-main);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-hover);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-primary:hover {
    color: white;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background-color: var(--accent-color);
    transition: height var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card:hover::before {
    height: 100%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    font-size: 1rem;
}

/* Hover Dropdown Rules */
.ride-card {
    display: flex;
    flex-direction: column;
}

.ride-rules {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.ride-card:hover .ride-rules {
    max-height: 200px;
    opacity: 1;
}

.ride-rules h4 {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.ride-rules ul {
    list-style-type: none;
    padding-left: 0;
}

.ride-rules ul li {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
}

.ride-rules ul li::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.6rem;
    color: var(--accent-color);
}

/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding-top: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-height: 80px;
    max-width: 250px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(200%);
    /* Makes it stark white */
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color-secondary);
}

footer p {
    margin: 0 auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
/* Fading in elements on load */
.hidden-onload {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-content {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal classes applied by JS */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide for mobile, could add a burger menu later */
    }

    .section {
        padding: 5rem 0;
    }
}