@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --text-white: #ffffff;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --glass-bg: rgba(255, 255, 255, 0.5);
    /* 50% white transparency as requested */
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* Prevent iOS from automatically adjusting font sizes */
}

body {
    background-color: #000;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    /* Prevent iOS from automatically adjusting font sizes */
}

/* Background Image Layer */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/MPP_background.png") no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 1;
    /* Restore original background */
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    gap: 1rem;
    margin-right: auto;
    margin-left: 2rem;
}

.nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* Burger Menu Icon */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: 0.3s ease-in-out;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.lang-switcher {
    display: flex;
    gap: 1rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    padding-top: 150px;
    /* Add spacing above hero heading */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
    display: inline-block;
    opacity: 0;
    pointer-events: none;
    min-width: 240px;
    text-align: center;
    white-space: nowrap;
}

.cta-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

.showreel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
    display: inline-block;
    opacity: 0;
    pointer-events: none;
    min-width: 240px;
    text-align: center;
    white-space: nowrap;
}

.showreel-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.showreel-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3.5rem;
    width: 60%;
    /* Desktop uniform width */
    max-width: 1200px;
    box-shadow: var(--shadow);
    transform: translateY(50px);
    opacity: 0;
    transition: 0.8s ease-out;
}

.glass-card.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Split Card Layout */
.split-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 80%;
    /* Wider than normal cards to accommodate images */
    max-width: 1400px;
}

.card-text {
    flex: 1;
}

.card-image {
    flex: 1.2;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.5s ease;
}

.card-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.split-card.reverse {
    flex-direction: row-reverse;
}

h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

p.desc {
    font-size: 1.15rem;
    color: var(--text-dark);
}

/* Workflow Table Styles */
.workflow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.workflow-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.workflow-row:last-child {
    border-bottom: none;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Footer Section */
.footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4rem 5%;
}

.footer h2 {
    color: white;
}

@media (max-width: 1100px) {
    .burger {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Wider drawer for better readability */
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        padding: 4rem 2rem;
        z-index: 1000;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        width: 100%;
        display: flex;
    }

    .nav-link {
        font-size: 0.84rem;
        /* 70% of 1.2rem for drawer */
        padding: 0.56rem 1.4rem;
        /* 70% of padding */
        width: 100%;
    }

    .lang-switcher {
        flex-direction: row;
        /* Keep flags side by side */
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    .lang-btn {
        padding: 0.35rem 0.7rem;
        /* 70% of padding */
        font-size: 0.7rem;
        /* 70% of 1rem */
    }

    .glass-card {
        width: 92%;
        /* Mobile uniform width */
        padding: 2rem 1.5rem;
    }

    /* Split Card Mobile */
    .split-card {
        flex-direction: column !important;
        gap: 2rem;
        padding-bottom: 2.5rem;
    }

    .card-image {
        width: 100%;
        flex: none;
    }

    .workflow-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Specific adjustments for mobile devices and tablets */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.45rem;
        /* 70% of 3.5rem */
    }

    .hero p {
        font-size: 1.05rem;
        /* 70% of 1.5rem */
    }

    h2 {
        font-size: 1.96rem;
        /* 70% of 2.8rem */
    }

    p.desc {
        font-size: 1.05rem;
        /* 70% of 1.5rem */
    }

    .logo {
        font-size: 1.5rem;
        /* Keep consistent with desktop */
    }

    .cta-btn {
        font-size: 0.91rem;
        /* 70% of 1.3rem */
        padding: 0.77rem 1.75rem;
        /* 70% of padding */
    }

    .showreel-btn {
        font-size: 0.91rem;
        /* 70% of 1.3rem */
        padding: 0.77rem 1.75rem;
        /* 70% of padding */
    }

    .step-content h3 {
        font-size: 1.05rem;
        /* 70% of 1.5rem */
    }

    .step-content p {
        font-size: 0.805rem;
        /* 70% of 1.15rem */
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.6);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Showreel Video Modal */
.showreel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.showreel-modal.active {
    display: flex;
}

.showreel-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: url('images/MPP_background.png') no-repeat center center;
    background-size: cover;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.showreel-close {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    line-height: 1;
}

.showreel-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

#showreel-video {
    width: 100%;
    display: block;
}