/* ================= GLOBAL RESETS & VARS ================= */
:root {
    --primary-orange: #ff6200;
    --dark-bg: #050810;
    --card-bg: #111521;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --blue-accent: #1f6bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utility Helper for Orange Icons */
.icon-orange {
    color: var(--primary-orange);
    margin-right: 10px;
}

/* ================= SCROLL BAR ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brightened overlay as requested previously */
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10vw;
    max-width: 100%;
    font-weight: 800;
    color: var(--primary-orange);
    /* Static Orange */
    line-height: 1;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ddd;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.scroll-down i {
    font-size: 30px;
    color: var(--primary-orange);
}

/* ================= SECTIONS & ANIMATIONS ================= */
.section-padding {
    padding: 100px 8%;
    position: relative;
}

.bg-darker {
    background-color: #020305;
}

.section-heading {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #ffffff;
    display: inline-block;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 10px;
}

/* Split Layout (Text/Image) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-content {
    font-size: 16px;
    color: #ccc;
    text-align: justify;
    line-height: 1.8;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: -10px 10px 0px rgb(0, 0, 0);
    transition: transform 0.3s;
}

.image-content img:hover {
    transform: scale(1.02);
}

/* Objectives List Style */
.objectives-list li {
    margin-bottom: 20px;
    font-size: 18px;
    color: #eee;
    text-align: left;
}

/* ================= SPEC CARDS ================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 6px;
    border-left: 4px solid var(--blue-accent);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
    opacity: 0;
    transition: 0.4s;
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left-color: var(--primary-orange);
}

.spec-card:hover::before {
    opacity: 1;
}

.spec-card h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 15px;
}

.spec-card p {
    font-size: 14px;
    color: #aaa;
}

/* ================= GALLERY ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, black, transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    bottom: 0;
}

/* ================= FOOTER ================= */
/* Footer styles are handled by global foot.css */

/* ================= ANIMATIONS & UTILS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= SYSTEMS MONITOR (SPECS) ================= */
.system-monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #222;
    padding-bottom: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.status-indicator {
    font-family: 'Rajdhani', monospace;
    color: #0f0;
    /* Terminal Green */
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 0, 0.1);
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.blink {
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sys-module {
    background: #0e1015;
    border: 1px solid #222;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.sys-module:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 98, 0, 0.15);
    transform: translateY(-5px);
}

/* Module Header */
.sys-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 15px;
}

.sys-icon {
    font-size: 1.5rem;
    color: var(--primary-orange);
    background: rgba(255, 98, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
}

.sys-header h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
}

/* Module Body */
.sys-body p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Stat Bar */
.sys-stat-bar {
    height: 4px;
    background: #222;
    width: 100%;
    position: relative;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.sys-stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--w);
    background: var(--primary-orange);
    box-shadow: 0 0 10px var(--primary-orange);
}

.sys-micro-text {
    font-family: 'Rajdhani', monospace;
    font-size: 0.8rem;
    color: var(--primary-orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= NEW TEAM SECTION STYLES (ROBOFEST STYLE) ================= */
.team-grid-new {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.team-grid-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1300px;
    margin: 40px auto 0;
}

/* The Creative Card - 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: #ff5e00;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 94, 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: #ff5e00;
}

.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: #ff5e00;
    /* Arrow Orange */
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 8px;
    text-transform: uppercase;
}

/* ================= SPEC CARDS GRID (2x3 Layout) ================= */
.cards-grid {
    display: grid;
    /* repeat(3, 1fr) forces exactly 3 columns. 
       With 6 items, this automatically creates 2 rows (2x3). */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* RESPONSIVE: Switch to 2 columns on tablets/small laptops */
@media (max-width: 1024px) {
    .cards-grid, .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 50px 5%;
    }

    .section-heading {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cards-grid, .systems-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .spec-card, .sys-module {
        padding: 20px !important;
    }

    .spec-card h3, .sys-header h4 {
        font-size: 1.1rem !important;
    }

    .spec-card p, .sys-body p {
        font-size: 0.85rem !important;
    }

    .sys-icon {
        font-size: 1.2rem !important;
        padding: 8px !important;
    }
}