:root {
    --mahindra-red: #E31837;
    --dark-bg: #0a0a0b;
    --text-light: #f5f5f7;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(227, 24, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(227, 24, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(227, 24, 55, 0.05) 0%, transparent 40%);
}

/* Scroll Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--mahindra-red);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--mahindra-red);
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--mahindra-red);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--mahindra-red);
}

/* Container and Slides */
.container {
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.slide {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    scroll-snap-align: start;
    position: relative;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 40px;
    width: 100%;
    max-width: 1100px;
    min-height: 70vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accent-text {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#slide1 .accent-text {
    background: linear-gradient(to right, #fff, var(--mahindra-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.8;
    color: #ccc;
    border-left: 4px solid var(--mahindra-red);
    padding-left: 20px;
}

/* Feature Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature, .principle, .style-box {
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s;
}

.glass-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.feature h3, .principle h4, .style-box h4 {
    color: var(--mahindra-red);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature:hover, .principle:hover, .style-box:hover {
    background: rgba(227, 24, 55, 0.1);
    transform: translateY(-5px);
    border-color: var(--mahindra-red);
}

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

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

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 50px;
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--mahindra-red);
    transition: 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

/* Learn More Buttons */
.learn-more-btn {
    background: transparent;
    border: 1px solid var(--mahindra-red);
    color: var(--mahindra-red);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 30px;
    align-self: flex-start;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learn-more-btn:hover {
    background: var(--mahindra-red);
    color: white;
    box-shadow: 0 0 15px var(--mahindra-red);
    transform: scale(1.05);
}

/* Timeline/Milestone layout */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.milestone-image img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.content-flex {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-container img {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* Modal Body Typography */
#modalBody h2 {
    color: var(--mahindra-red);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

#modalBody p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ddd;
}

#modalBody ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

#modalBody li {
    margin-bottom: 10px;
    color: #bbb;
}

/* Mobile & Typography Enhancements */
@media (max-width: 768px) {
    .glass-nav {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 10px 15px;
    }
    .logo { font-size: 1rem; }
    .nav-links { display: none; }
    
    .accent-text {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .tagline {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .glass-card {
        padding: 25px;
        min-height: 85vh;
        border-radius: 30px;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 40px 20px;
    }
    
    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .learn-more-btn {
        width: 100%;
        text-align: center;
        padding: 18px;
        font-size: 1rem;
    }
}

/* Accessibility & Animation */
.slide {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mahindra-red);
}
