/* =========================================
   1. FONTS & GLOBAL RESETS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@400;600;700&family=Rajdhani:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    /* Deep Black Background */
    /* White Text */
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scrollbars */
}




/* =========================================
   2. UTILITIES (Back to Top & Animations)
   ========================================= */
/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    font-size: 16px;
    background-color: #fc7200;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 10000;
}

#backToTop:hover {
    background-color: #e65c00;
    box-shadow: 0 0 15px #fc7200;
}

#backToTop.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Global Fade In Animation */
@keyframes fade {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: appear 1s forwards;
}

@keyframes appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   3. HERO VIDEO SECTION
   ========================================= */
.hero-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.sk {

    color: #ffffff;

}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    color: #fff;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fc7200;
    letter-spacing: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Animated Scroll Arrow */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* =========================================
   4. MISSION INFO (Image Left / List Right)
   ========================================= */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.intro-text p {
    font-size: 1.3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #ccc;
}

/* About Section Text Justification */
.text-block p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #cccccc;
    text-align: justify;
    text-align-last: left;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    margin-bottom: 10px;
}

.mission-objectives-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 80px;
}

.mission-visual {
    flex: 1;
}

.mission-visual img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
}

.mission-text {
    flex: 1;
    padding-left: 40px;
    margin-top: 20px;
}

.section-header-left {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    color: #fc7200;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vertical List */
.mission-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mission-list li {
    display: flex;
    align-items: baseline;
    font-size: 1.1rem;
    color: #eee;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    line-height: 1.6;
}

.mission-list span.number {
    color: #fc7200;
    font-weight: 700;
    font-size: 1.8rem;
    margin-right: 20px;
    font-family: 'Anton', sans-serif;
    min-width: 40px;
}

/* Rules Icons */
.rules-container {
    display: flex;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
}

.rule-card {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 40px 20px;
    width: 300px;
    text-align: center;
    transition: 0.4s;
}

.rule-card:hover {
    transform: translateY(-10px);
    border-color: #fc7200;
    box-shadow: 0 0 30px rgba(252, 114, 0, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(252, 114, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.rule-icon {
    font-size: 2rem;
    color: #fc7200;
}

.rule-card:hover .icon-wrapper {
    background: #fc7200;
    transform: scale(1.1);
}

.rule-card:hover .rule-icon {
    color: #fff;
}

.rule-card h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rule-card p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================
   5. SYSTEM ARCHITECTURE (3D Slider)
   ========================================= */
.schematic-section {
    padding: 80px 20px;
    background: #080808;
    text-align: center;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.section-header {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: #fc7200;
    margin-bottom: 40px;
}

.schematic-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-slide {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.schematic-slide.active {
    display: flex;
    animation: fade 0.5s;
}

.tech-stats {
    flex: 1;
    text-align: left;
    padding: 20px;
    font-family: 'Rajdhani', sans-serif;
}

.sub-title {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}

.main-title {
    font-size: 3.5rem;
    color: #fc7200;
    margin-bottom: 30px;
    line-height: 1;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 15px 0;
    border-bottom: 1px solid #333;
    font-size: 1.2rem;
}

.stats-table .label {
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    width: 40%;
}

.stats-table td:last-child {
    color: #fff;
    font-weight: 600;
    text-align: right;
}

.model-display {
    flex: 1.2;
    height: 500px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
    border-radius: 10px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
}

.schematic-nav {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0 20px;
    transition: 0.3s;
    z-index: 10;
}

.schematic-nav:hover {
    color: #fc7200;
    transform: scale(1.1);
}

/* =========================================
   6. TESTING PROCESS (Cinematic)
   ========================================= */
.testing-section {
    padding: 100px 20px;
    background: #000;
    position: relative;
}

.testing-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testing-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #222;
}

.test-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.test-slide.active {
    display: block;
}

.test-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1);
    transition: transform 6s ease-out, opacity 0.5s ease;
}

.test-slide.active .test-bg {
    transform: scale(1.1);
    opacity: 1;
}

.test-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
}

.test-overlay h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.test-overlay p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 20px;
}

.test-btn {
    text-decoration: none;
    color: #000;
    background: #fc7200;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    transition: 0.3s;
}

.test-btn:hover {
    background: #fff;
}

.test-nav {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    z-index: 10;
    transition: 0.3s;
}

.test-nav:hover {
    background: #fc7200;
}

/* =========================================
   7. TEAM SECTION (IROC STYLE - Glass Cards)
   ========================================= */
.team-section {
    padding: 100px 20px;
    background: #000;
}

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Creative Card - IROC/Robofest Style */
.team-card-new {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    /* Softened corners */
    width: 260px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card-new:hover {
    background: rgba(255, 94, 0, 0.05);
    /* Faint orange tint on hover */
    border-color: #fc7200;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(252, 114, 0, 0.2);
}

/* Softened Rectangle Image */
.image-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 18px;
    /* Slightly less than card for nested look */
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.team-card-new:hover .image-wrapper {
    border-color: #fc7200;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.info-wrapper {
    text-align: left;
    padding: 0 5px;
}

.name-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-box h3 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0;
}

.name-box a {
    color: #0077b5;
    /* LinkedIn Color */
    font-size: 1.3rem;
    transition: 0.3s;
}

.name-box a:hover {
    color: #fff;
    transform: scale(1.2);
}

.name-box i {
    color: #0077b5;
    /* LinkedIn Color */
    font-size: 1.3rem;
    transition: 0.3s;
}

.name-box i:hover {
    color: #fff;
    transform: scale(1.2);
}

.role-tag {
    color: #fc7200;
    /* Arrow Orange */
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-transform: uppercase;
}


/* =========================================
   8. MISSION GALLERY (Restored Slider)
   ========================================= */
.gallery-section {
    padding: 100px 20px;
    background: #000;
    text-align: center;
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
}

/* Main Image Styling */
.main-image-wrapper {
    width: 100%;
    border-radius: 15px;
    /* Rounded corners like the screenshot */
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Orange Navigation Buttons */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fc7200;
    /* Signature Orange */
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(252, 114, 0, 0.4);
}

.nav:hover {
    background-color: #fff;
    color: #fc7200;
    transform: translateY(-50%) scale(1.1);
}

/* Positioning buttons hanging off the edge */
.nav.left {
    left: -30px;
}

.nav.right {
    right: -30px;
}

/* Thumbnails */
.thumbnail-strip {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.5;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #fc7200;
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav {
        width: 40px;
        height: 30px;
        font-size: 1.2rem;
    }

    .nav.left {
        left: 10px;
    }

    .nav.right {
        right: 10px;
    }
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .mission-objectives-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .mission-text {
        padding-left: 0;
    }

    .schematic-slide {
        flex-direction: column;
    }

    .tech-stats {
        width: 100%;
    }

    .model-display {
        width: 100%;
        height: 300px;
    }

    .schematic-nav {
        position: absolute;
        top: 50%;
    }

    .testing-slider {
        height: 400px;
    }

    .test-overlay {
        left: 20px;
        bottom: 20px;
        right: 20px;
        width: auto;
    }

    .gallery-pan-wrapper {
        cursor: grab;
        overflow-x: scroll;
    }

    .gallery-item {
        width: 300px;
    }

    /* Rules Icons Mobile 2-in-1 Fix */
    .rules-container {
        gap: 12px;
        padding: 0 10px;
        justify-content: center;
    }

    .rule-card {
        width: calc(50% - 10px);
        padding: 25px 15px;
        border-radius: 15px;
    }

    .icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .rule-icon {
        font-size: 1.4rem;
    }

    .rule-card h3 {
        font-size: 1.1rem;
        margin-top: 5px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .rule-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Make the 3rd card full width or keep it? 
       Usually 2 in 1 means 2 per row. */
    .rule-card:nth-child(3) {
        width: calc(100% - 20px);
    }
}

/* --- Layout --- */
.mission-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 0 10%;
    max-width: 3000px;
    max-height: 1800px;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* --- Left Side: Image Frame --- */
.mission-visual-panel {
    flex: 1;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.1);
    border: 1px solid #333;
    height: 400px;
    /* Fixed height to prevent jumping */
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
}

/* Cool Scanning Animation Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 102, 0, 0.8);
    box-shadow: 0 0 10px #ff6600;
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- Right Side: Interactive Cards --- */
.mission-text-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.objective-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass */
    border: 1px solid transparent;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effects */
.objective-card:hover,
.active-card {
    background: rgba(255, 102, 0, 0.1);
    /* Orange glow */
    border-color: #ff6600;
    transform: translateX(10px);
    /* Slides slightly to the right */
}

.obj-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #444;
    margin-right: 25px;
    font-family: 'Arial', sans-serif;
    /* Use your font */
    transition: color 0.3s;
}

.objective-card:hover .obj-number,
.active-card .obj-number {
    color: #ff6600;
    /* Number turns orange */
}

.obj-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
}

.obj-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #aaa;
}
.mission-section {
    color: #fc7200;
    text-align: center;
}

.we {
    color: #fff;
    margin: 150px 8%;
}

.hr {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background: #000;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-banner {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 10px !important;
        z-index: 10 !important;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .content-container {
        padding: 40px 20px;
    }

    .section-header-left {
        font-size: 2.5rem;
        text-align: center;
    }

    .mission-objectives-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .mission-text {
        padding-left: 0;
        text-align: center;
    }

    .mission-container {
        flex-direction: column;
    }

    .image-frame {
        height: 300px;
    }

    .objective-card:hover {
        transform: none;
    }

    .rules-container {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .we {
        margin: 50px 20px;
        text-align: justify;
    }

    .text-block p {
        font-size: 1.1rem;
        text-align: left;
    }
}