/* Base settings to lock layout to the screen size */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a 60%); /* Sleek deep dark gradient */
    color: #f8fafc;                  
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
overflow-y: auto;
}

/* Fullscreen Top Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px); /* Blurred glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #38bdf8; /* Vibrant sky blue */
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

/* Fullscreen Hero Container split into two halves */
.hero-container {
    display: flex;
    flex: 1; /* Automatically takes up all remaining vertical space */
    padding: 0 80px;
    align-items: center;
    gap: 60px;
}

/* Left Half - Typography and Text content */
.hero-text-side {
    flex: 1;
    max-width: 550px;
}

/* Sydney Trains Inspired Progress Badge */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.2), rgba(234, 88, 12, 0.2));
    border: 1px solid #ff9f1c;
    color: #ff9f1c;                             
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-text-side h1 {
    font-size: 4rem; /* Big, modern, bold typography */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: #94a3b8;                  
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Sleek Premium Button */
button {
    background: linear-gradient(135deg, #0284c7, #0369a1);       
    color: white;
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    transform: translateY(-3px);     
    box-shadow: 0 8px 30px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #0ea5e9, #0284c7);       
}

/* Right Half - Interactive Image Panel */
.hero-image-side {
    flex: 1.2;
    height: 70%; /* Sizes perfectly inside the vertical frame */
    display: flex;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    backdrop-filter: blur(8px);
}

/* Responsive fix for smaller laptop/tablet screens */
@media (max-width: 968px) {
    body { overflow-y: auto; }
    .navbar { padding: 20px 40px; }
    .hero-container { flex-direction: column; padding: 40px; text-align: center; }
    .hero-text-side h1 { font-size: 2.8rem; }
    .hero-image-side { width: 100%; height: 300px; margin-top: 20px; }
    .navbar .nav-links { display: none; } /* Simplicity for mobile layouts */
}
/* Styles for your newly added Project Rail screenshot */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* Crops/fills the area perfectly like a modern banner */
    border-radius: 24px;             /* Matches the smooth rounded layout corners */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Deep shadow to make the screenshot pop */
    border: 1px solid rgba(255, 255, 255, 0.1);  /* Subtle sleek border border */
    transition: transform 0.4s ease;
}

/* Subtle interactive effect when hovering over the image */
.hero-img:hover {
    transform: scale(1.02);          /* Gently breathes/grows when you hover over it */
}
/* Container to manage both screenshots */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Splits the right side into two equal columns */
    gap: 20px;                      /* Clean spacing between the two shots */
    width: 100%;
    height: 75%;                    /* Keeps it perfectly framed within the screen */
}

/* Base style for both images */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}

/* Subtle staggered layout effect to make it feel premium */
.img-one {
    transform: translateY(-15px); /* Pushes the first image slightly up */
}

.img-two {
    transform: translateY(15px);  /* Pushes the second image slightly down */
}

/* Hover effects to make them interactive when your mouse moves over them */
.hero-img:hover {
    transform: scale(1.04) translateY(0); /* Brings the hovered image forward */
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.3); /* Adds a glowing sky-blue shadow */
    z-index: 10;
}

/* Mobile responsive layout adjustment */
@media (max-width: 968px) {
    .image-grid {
        grid-template-columns: 1fr; /* Stacks the images vertically on small screens */
        height: auto;
    }
    .img-one, .img-two {
        transform: translateY(0); /* Resets the staggering layout on mobile devices */
    }
}
/* Sleek hover underline effect for your top navbar links */
.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

/* Creates a hidden animated line under the links */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #38bdf8; /* Matches your sky blue logo color */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

/* Animates the line to slide out smoothly when you hover over 'Roblox Group' */
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* Fleet Section Base Layout */
.fleet-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0%, rgba(7, 10, 22, 1) 100%);
    display: flex;
    justify-content: center;
}

.section-container {
    width: 100%;
    max-width: 1200px;
}

.section-header {
    margin-bottom: 50px;
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 10px 0 15px 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #94a3b8;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Fleet Card Layout Grid */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Individual Train Cards */
.fleet-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.fleet-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-meta h3 {
    font-size: 1.4rem;
    color: #f8fafc;
    font-weight: 700;
}

.card-meta .percentage {
    font-weight: 700;
    font-size: 1.2rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.fleet-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 45px; /* Keeps cards uniform height */
}

/* Progress Bar Tracking System */
.progress-track {
    background: rgba(15, 23, 42, 0.6);
    width: 100%;
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Custom color fills based on development phase */
.active-fill {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.engineering-fill {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.concept-fill {
    background: linear-gradient(90deg, #64748b, #94a3b8);
    box-shadow: none;
}
/* FORCE SCROLL OVERRIDE */
html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    overflow-y: auto !important;
}
/* Feature Highlights Section Layout */
.features-section {
    padding: 80px 5% 40px 5%;
    background: transparent;
    display: flex;
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Feature Cards Design */
.feature-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-5px);
}

/* Custom Interactive Glowing SVG Icons */
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(56, 189, 248, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 25px;
    transition: all 0.4s;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.feature-card:hover .feature-icon-wrapper {
    color: #ffffff;
    background: #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    border-color: #38bdf8;
}

.feature-icon {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.35rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Badge styling helper used in section headers */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
/* SIZING LOCK FOR BUSTED SVG ICONS */
.features-grid .feature-card svg,
.feature-icon {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: inline-block;
}

/* Ensure the background container wraps them tightly */
.feature-icon-wrapper {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    background: rgba(56, 189, 248, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 25px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}
/* Tech Spec Buttons */
.spec-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
}

.spec-btn:hover {
    background: #0ea5e9;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

/* Modal Window Overlay Layer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Trigger class handled by JavaScript */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Center Popup Card Box */
.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close Window 'X' Button */
.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #f1f5f9;
}

.modal-subtitle {
    color: #64748b;
    margin: 5px 0 25px 0;
    font-size: 0.95rem;
}

/* Technical Specs Table Design */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    color: #f8fafc;
}
/* News/Changelog Section Design */
.news-section {
    padding: 60px 5% 100px 5%;
    display: flex;
    justify-content: center;
    background: transparent;
}

.news-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.news-card {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 35px;
    transition: border-color 0.3s;
}

.news-card:hover {
    border-color: rgba(56, 189, 248, 0.15);
}

.news-card.past-patch {
    opacity: 0.65; /* Makes older updates look historically nested */
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.patch-version {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

.patch-date {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 12px;
}

.news-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Bulleted Patch Logs styling */
.patch-list {
    margin-left: 20px;
    color: #94a3b8;
    line-height: 1.8;
}

.patch-list li strong {
    color: #e2e8f0;
}

/* Footer Container Blocks */
.main-footer {
    background: #070a16;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 5% 30px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #64748b;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links-group h4 {
    color: #f8fafc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Social Icon Pill Grid and Layout Row */
.social-icon-row {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn.discord {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.2);
}

.social-btn.discord:hover {
    background: #5865F2;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.social-btn.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.2);
}

.social-btn.youtube:hover {
    background: #FF0000;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
}
/* MOBILE STRUCTURAL FIX FOR HERO OVERLAP */
@media (max-width: 768px) {
    /* Stack layout columns properly and add spacing */
    .hero-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        padding: 120px 5% 40px 5% !important;
        display: flex !important;
        gap: 40px !important;
    }

    /* Prevent the text wrapper from getting squeezed */
    .hero-text-side {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        z-index: 10;
    }

    /* Force the image wrapper to sit below the text without absolute chaos */
    .hero-image-side {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        margin-top: 20px;
    }

    /* Reset the image grid layout so images stack cleanly or shrink safely */
    .image-grid {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Undo absolute positioning rules that freeze photos over your text */
    .hero-img, 
    .img-one, 
    .img-two {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }
}