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

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --accent-primary: #ffffff;
    --accent-secondary: #888888;
    --text-main: #ffffff;
    --text-muted: #aaaaaa; /* Increased brightness for readability */
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.015) 1px,
        rgba(255, 255, 255, 0.015) 2px
    );
    pointer-events: none;
    z-index: 999;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-desktop-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    cursor: pointer;
}

.logo:hover::before {
    content: "MIRONOFF";
    position: absolute;
    left: 2px;
    top: 0;
    color: #ff00ff;
    background: var(--bg-dark);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(80px, 9999px, 30px, 0); }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover {
    color: var(--text-main);
}

.lang-switcher {
    display: flex;
    gap: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.lang-btn {
    cursor: pointer;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.7rem;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle span {
    width: 18px;
    height: 1px;
    background: var(--text-main);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center horizontally */
    text-align: center; /* Center text */
    position: relative;
    z-index: 10;
    overflow: hidden; /* Contain the canvas */
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-intro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    max-width: 860px;
    margin: 0 auto 40px;
}

.hero-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero-profile-frame {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.hero-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    border-radius: 50%;
}

.hero-profile-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.hero-profile-name {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-profile-role {
    font-size: 0.64rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -2px;
    animation: float 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    animation: float 8s ease-in-out infinite 1s;
}

.btn {
    padding: 20px 40px;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

/* Sections */
section {
    padding: 150px 0;
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 80px;
    text-transform: uppercase;
    text-align: center;
}

/* Grid Layouts - MATCHING THE SCREENSHOT */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.1); /* Softer divider */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent */
    backdrop-filter: blur(10px); /* Glass effect */
    padding: 80px 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-size: 3rem; /* LARGE BOLD TITLE */
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 90%;
    line-height: 1.4;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Game Mode Toggle */
body.game-mode section:not(.hero), 
body.game-mode header,
body.game-mode footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

body.game-mode #game-ui {
    opacity: 1 !important;
}

/* Tech Stack */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 90px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-item img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.tech-item span {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.05);
}

.tech-item:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.tech-item:hover span {
    color: var(--text-main);
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: 0.5s;
}

.partner-card:hover::before {
    left: 100%;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Reviews Section */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
    text-align: left;
}

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

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a,
.footer-mobile-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links a:hover,
.footer-mobile-menu a:hover {
    color: var(--text-main);
}

.footer-menu-toggle,
.footer-mobile-shell {
    display: none;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 5rem; }
}

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

    header {
        padding: 18px 0;
    }

    nav {
        gap: 16px;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-desktop-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 0;
        padding: 0 18px;
        border: 1px solid transparent;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(20px);
        transform-origin: top;
        transform: scaleY(0.92);
        opacity: 0;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, padding 0.25s ease, margin-top 0.25s ease;
    }

    body.menu-open .mobile-menu {
        margin-top: 14px;
        padding: 18px;
        border-color: rgba(255, 255, 255, 0.1);
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
        max-height: 420px;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-menu-links a {
        text-decoration: none;
        color: var(--text-main);
        font-size: 0.9rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .mobile-lang-switcher {
        justify-content: flex-start;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-cta {
        width: 100%;
        text-align: center;
    }

    footer {
        padding: 56px 0;
    }

    footer .container {
        gap: 16px;
    }

    .footer-links {
        display: none;
    }

    .footer-menu-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        border: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        transition: var(--transition);
        margin-left: auto;
    }

    .footer-menu-toggle span {
        width: 18px;
        height: 1px;
        background: var(--text-main);
        transition: var(--transition);
    }

    body.footer-menu-open .footer-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.footer-menu-open .footer-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.footer-menu-open .footer-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-mobile-shell {
        display: block;
    }

    .footer-mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 0;
        padding: 0 18px;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(20px);
        transform-origin: top;
        transform: scaleY(0.92);
        opacity: 0;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, padding 0.25s ease, margin-top 0.25s ease;
    }

    body.footer-menu-open .footer-mobile-menu {
        margin-top: 14px;
        padding: 18px;
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
        max-height: 320px;
    }

    .hero-intro {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 32px;
    }

    .hero p {
        text-align: center;
    }

    .hero-profile {
        gap: 12px;
        padding: 8px 14px 8px 8px;
    }

    .hero-profile-frame {
        width: 56px;
        height: 56px;
    }

    .hero-profile-name {
        font-size: 0.78rem;
        letter-spacing: 0.1em;
    }

    .hero-profile-role {
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }

    .hero h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .card h3 { font-size: 2rem; }
}
