/* ==========================================================================
   CSS Variables & Scoped Reset
   ========================================================================== */
.mt-wrapper {
    --primary-color: #0F2A47;
    --secondary-color: #4482FF;
    --accent-color: #00F5FF;
    --text-dark: #FFFFFF;
    --text-muted: #CBD5E1;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s ease;

    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

body {
    overflow-x: hidden;
}

.mt-wrapper * {
    box-sizing: border-box;
}

.mt-wrapper h1,
.mt-wrapper h2,
.mt-wrapper h3,
.mt-wrapper h4,
.mt-wrapper h5,
.mt-wrapper h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--bg-white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mt-wrapper p {
    margin-bottom: 1.25rem;
    color: #E2E8F0;
    font-size: 1rem;
}

.mt-wrapper a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

.mt-wrapper a:hover {
    color: var(--bg-white);
}

.mt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ==========================================================================
   Global Background Video, Overlay & Glow System
   ========================================================================== */
#global-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -999;
}

#global-bg-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.7) 50%, rgba(3, 7, 18, 0.95) 100%);
    z-index: -998;
}

.global-glow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -997;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(123, 92, 255, 0.12), transparent 40%);
}

/* ==========================================================================
   Hero Section Layout
   ========================================================================== */
.mt-hero {
    position: relative;
    padding: 8rem 0 5rem 0;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.mt-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.mt-hero-content {
    position: relative;
    z-index: 10;
}

.mt-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.mt-hero-content h1 span {
    color: var(--accent-color);
}

.mt-hero-content p {
    font-size: 1.2rem;
    color: #CBD5E1;
    margin-bottom: 2rem;
    max-width: 600px;
}

.mt-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mt-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #00f5ff, #4482FF);
    color: #0f061c !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mt-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 245, 255, 0.4);
    color: #0f061c !important;
}

.mt-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    background: rgba(0, 245, 255, 0.05);
    color: var(--bg-white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mt-btn-outline:hover {
    background: rgba(0, 245, 255, 0.15);
    transform: translateY(-3px);
}

/* Floating Elements Right Side */
.mt-hero-graphics {
    position: relative;
    height: 400px;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(15, 42, 71, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    top: 40%;
    right: 10%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 10%;
    left: 30%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 30%;
    left: -10%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ==========================================================================
   Features Section (Sticky Split Layout)
   ========================================================================== */
.mt-features-section {
    padding: 6rem 0;
    position: relative;
}

.mt-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    align-items: start;
}

/* Left side scrolling features */
.features-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(1, 6, 28, 0.7) 0%, rgba(15, 42, 71, 0.7) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.feature-card:hover {
    border-color: transparent;
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(1, 6, 28, 0.85) 0%, rgba(15, 42, 71, 0.85) 100%);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 245, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.feature-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Right side normal panel */
.sticky-feature-column {
    padding-top: 2rem;
}

.sticky-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sticky-title span {
    color: var(--accent-color);
}

.sticky-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.code-arena-card {
    background: linear-gradient(135deg, rgba(15, 42, 71, 0.8) 0%, rgba(68, 130, 255, 0.2) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.code-arena-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.code-arena-card:hover {
    border-color: transparent;
}

.code-arena-card:hover::after {
    opacity: 1;
}

.code-arena-img {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
}

.code-arena-img img {
    width: 100%;
    height: auto;
    display: block;
}

.code-arena-content {
    padding: 0 2rem 1.5rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.code-arena-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(0, 245, 255, 0.2);
    filter: blur(40px);
    border-radius: 50%;
}

.code-arena-card h4 {
    font-size: 1.8rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.code-arena-card p {
    color: #E2E8F0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Virtual Tech Hub Section
   ========================================================================== */
.mt-virtual-hub-section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.hub-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hub-title span {
    color: var(--accent-color);
}

.hub-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hub-card {
    background: linear-gradient(135deg, rgba(1, 6, 28, 0.6) 0%, rgba(15, 42, 71, 0.4) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 245, 255, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hub-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.15);
}

.hub-card:hover::before {
    opacity: 1;
}

.hub-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.05);
    transition: transform 0.4s ease;
}

.hub-card:hover .hub-icon {
    transform: scale(1.1) rotate(5deg);
}

.hub-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.hub-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   How Marslab Boosts Potential (Slider Section)
   ========================================================================== */
.mt-slider-section {
    padding: 6rem 0;
    position: relative;
}

.slider-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.slider-title span {
    color: var(--accent-color);
}

.swiper-slide {
    padding: 1rem;
    height: auto;
}

.boost-card {
    background: linear-gradient(135deg, rgba(15, 42, 71, 0.4) 0%, rgba(1, 6, 28, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.boost-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.boost-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.boost-card:hover::before {
    opacity: 1;
}

.boost-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.boost-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.boost-card p {
    color: var(--text-muted);
}

/* Swiper Nav Buttons */
.boost-swiper {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 3rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    transform: scale(0.6);
    font-weight: 900;
    width: 3rem !important;
}

.swiper-button-prev {
    left: 0 !important;
}

.swiper-button-next {
    right: 0 !important;
}

.swiper-pagination {
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

/* ==========================================================================
   Explore Labs Section (Terminal Cards)
   ========================================================================== */
.mt-labs-section {
    padding: 6rem 0 8rem 0;
    text-align: center;
}

.labs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.lab-card {
    background: linear-gradient(135deg, rgba(15, 42, 71, 0.4) 0%, rgba(1, 6, 28, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(0, 245, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.lab-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #00f5ff, #7b5cff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.lab-card:hover {
    border-color: transparent;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lab-card:hover::before {
    opacity: 1;
}

.lab-icon-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.icon-ubuntu {
    color: #E95420;
}

.icon-kali {
    color: #557C94;
}

.lab-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lab-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.mt-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mt-fade-in.mt-appeared {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .mt-hero-grid,
    .mt-features-grid,
    .labs-grid {
        grid-template-columns: 1fr;
    }

    .mt-hero-content h1 {
        font-size: 2.8rem;
    }

    .mt-hero {
        padding: 6rem 0 4rem 0;
    }

    .sticky-feature-column {
        position: relative;
        top: 0;
    }

    .mt-hero-graphics {
        display: none;
    }
}

@media (max-width: 768px) {
    .mt-container {
        padding: 0 1rem;
    }

    .mt-hero-content h1 {
        font-size: 2rem;
    }

    .mt-hero-content p {
        font-size: 1rem;
    }

    .slider-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .boost-swiper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 3rem;
    }

    .boost-card {
        padding: 2rem 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .lab-card {
        padding: 2rem 1.5rem;
    }

    .lab-card h3 {
        font-size: 1.5rem;
    }

    .lab-card p {
        font-size: 0.95rem;
    }

    .labs-grid {
        gap: 2rem;
    }

    .sticky-feature-column {
        margin-bottom: 3rem;
    }

    .mt-labs-section {
        margin-top: 4rem;
    }
}

/* ==========================================================================
   Tablet & Terminal Animation Styles
   ========================================================================== */
.mt-hero-fullwidth {
    padding-top: 2.0rem !important;
    /* Reduced to strictly clear the navbar and eliminate the gap */
    padding-bottom: 3rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100%;
    min-height: auto !important;
    /* Stop vertical centering gap */
    align-items: flex-start !important;
    /* Push to the very top right under header */
}

.mt-hero-layered {
    position: relative;
    width: 100%;
    padding: 0 4%;
    /* Nice gap on sides, no gap on top/bottom */
    display: flex;
    flex-direction: row-reverse;
    /* Put text on left, monitor on right */
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.monitor-wrapper {
    position: relative;
    flex: 1;
    /* Take up half the space */
    width: 100%;
    /* Fill the flex container */
    max-width: 900px;
    /* Don't get infinitely wide */
    aspect-ratio: 16 / 9;
    /* Back to 16:9 to preserve taskbar & wallpaper */
    margin: 0;
}

.office-room-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Remove border and border-radius so it spans entirely edge to edge */
    background: #000;
    transition: transform 3s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.5s ease;
}

.office-image {
    width: 100%;
    height: 100%;
    /* Reverted to center to align with the 16:9 zoom */
    background: url('../../images/marslab/office-room.png') center/cover no-repeat;
}

.office-room-container.zoomed {
    /* Zoom specifically into the laptop screen in the office image */
    transform-origin: 50% 65%;
    /* Precisely center the laptop screen */
    transform: scale(3.5);
    /* Stop exactly at the laptop screen size */
}

.os-animation-layer {
    position: absolute;
    inset: 0;
    /* Fill the monitor-wrapper exactly */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.pc-monitor {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    /* Remove border and border-radius for a pure edge-to-edge full width experience */
    position: relative;
    overflow: hidden;
}

.monitor-screen {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Boot Screen */
.os-boot-screen {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.os-boot-screen .boot-logo {
    font-size: 4rem;
    color: #00a4ef;
    /* Windows blue */
    margin-bottom: 2rem;
}

.loading-dots {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Desktop */
.os-desktop {
    position: absolute;
    inset: 0;
    background: url('../../images/marslab/user-desktop.jpg') center/cover no-repeat;
    z-index: 90;
    opacity: 0;
    /* Starts hidden until boot finishes */
    transition: opacity 1s ease;
}

.desktop-icon {
    position: absolute;
    top: 4%;
    /* Responsive positioning */
    left: 8%;
    /* Placed right next to 'This PC' */
    width: 8%;
    /* Responsive sizing */
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    z-index: 95;
}

.desktop-icon .icon-img {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.desktop-icon span {
    font-size: clamp(8px, 1vw, 12px) !important;
}

/* Fake Mouse Cursor */
.fake-cursor {
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 20px;
    color: #fff;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.5));
    z-index: 200;
    pointer-events: none;
    /* Transformation handled by JS or CSS Animation later */
}

/* Terminal Window OS */
.terminal-window-os {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80%;
    height: 70%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 150;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-window-os.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.terminal-header {
    background: #222;
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: #aaa;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12px;
    border-bottom: 1px solid #111;
}

.term-controls {
    display: flex;
    gap: 12px;
}

.terminal-body {
    flex: 1;
    position: relative;
    padding: 2%;
    /* Responsive padding */
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(6px, 1.2vw, 14px);
    /* Perfectly scale font to avoid breaking ASCII art */
    line-height: 1.2;
    color: #0f0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #000;
}

/* Original Terminal Styles */
.terminal-boot-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    z-index: 10;
    opacity: 1;
    transition: opacity 1s ease;
}

.terminal-boot-logo.hidden {
    opacity: 0;
    pointer-events: none;
}

.terminal-boot-logo img {
    max-width: 50%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.terminal-content {
    white-space: pre-wrap;
    line-height: 1.2;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.4);
}

.terminal-infinite-logs {
    margin-top: 10px;
    white-space: pre-wrap;
    line-height: 1.4;
    color: #0f0;
    opacity: 0.8;
}

/* Terminal Text Colors */
.term-blue-purple {
    background: linear-gradient(90deg, #00f5ff, #bd00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.term-red-purple {
    background: linear-gradient(90deg, #ff0055, #bd00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.term-green {
    color: #00ff00;
}

.term-white {
    color: #ffffff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.term-orange {
    color: #ffaa00;
    text-shadow: 0 0 3px rgba(255, 170, 0, 0.6);
}

/* Foreground Glass Text */
.mt-hero-content-glass {
    position: relative;
    z-index: 10;
    flex: 1;
    /* Take up the other half of the space */
    max-width: 600px;
    background: rgba(15, 42, 71, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .mt-hero-fullwidth {
        padding-top: 0.0rem !important;
        /* Move upward fixing the gap behind smaller mobile header */
    }

    .mt-hero-layered {
        flex-direction: column;
        /* Animation on top, text below on mobile */
        padding: 1rem 0;
        /* Less padding to increase animation size box */
        gap: 1.5rem;
    }

    .monitor-wrapper {
        width: 95%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        /* Revert to 16:9 on mobile for better visibility */
    }

    .mt-hero-content-glass {
        padding: 1.5rem;
        margin-top: 0;
        width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .mt-hero-content-glass h1 {
        font-size: 1.6rem;
        /* Reduce the text size */
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .mt-hero-content-glass p {
        font-size: 13px;
        /* Reduce text size */
        margin-bottom: 20px;
    }

    .terminal-window-os {
        width: 95%;
        height: 85%;
    }

    .terminal-body {
        font-size: 8px;
    }

    .desktop-icon {
        top: 20px;
        left: 20px;
    }
}