:root {
    --bg-main: #07070a;
    --bg-alt: #0d0d14;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-yt: #e50914;
    --accent-tg: #2aabee;
    --accent-tw: #9146ff;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
}

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

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-tw);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 40px;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent-tw);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
#preloader-tip {
    font-family: var(--font-body);
    font-size: 16px;
    color: #aaa;
    max-width: 400px;
    text-align: right;
    transition: opacity 0.3s ease;
}

#wasted-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: grayscale(100%) contrast(120%) brightness(80%);
    -webkit-backdrop-filter: grayscale(100%) contrast(120%) brightness(80%);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: none; 
}
#wasted-screen.active {
    opacity: 1;
    transition: opacity 0.3s ease;
}
#wasted-screen h1 {
    font-family: var(--font-heading);
    font-size: 15vw;
    color: #ff0000;
    text-shadow: 4px 4px 0 #000, -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000;
    letter-spacing: 15px;
    transform: scale(0.5); 
    opacity: 0;
    transition: none; 
    margin: 0;
}
#wasted-screen.active h1 {
    transform: scale(1); 
    opacity: 1;
    transition: opacity 0.1s ease-out, transform 5s ease-out;
}
#easter-egg-trigger {
    cursor: crosshair;
}

.gta-notif {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #000;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 24px;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 100001;
    transform: translateX(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 2px 2px 0 rgba(0,0,0,1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.gta-notif.show {
    transform: translateX(0);
}
.gta-notif-icon {
    color: #55aa55;
}

body.hesoyam-mode .phone-mockup {
    box-shadow: 0 30px 60px rgba(85, 170, 85, 0.4), inset 0 0 30px rgba(255, 215, 0, 0.4) !important;
    border-color: rgba(255, 215, 0, 0.6);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
body.hesoyam-mode .fancy-btn {
    box-shadow: 0 0 20px rgba(85, 170, 85, 0.6) !important;
    border-color: rgba(255, 215, 0, 0.8);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
body.hesoyam-mode .main-heading {
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gta-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(229, 9, 100, 0.25), transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(42, 171, 238, 0.25), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(145, 70, 255, 0.25), transparent 60%);
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1, .brand {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 7, 10, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-height: 40px;
}

.navbar-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a {
    text-decoration: none;
    cursor: pointer;
}

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.lang-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-select option {
    background: #1a1a1a;
    color: #fff;
}

.nav-item {
    position: relative;
    color: #ccc;
    font-weight: 500;
    font-size: 15px;
    display: block;
    height: 20px;
}

.nav-link-content {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: center;
}

.nav-label-default,
.nav-label-hover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.nav-label-default {
    color: #ccc;
}

.nav-label-hover {
    position: absolute;
    top: 100%;
    left: 0;
    color: #fff;
}

.nav-links a:hover .nav-label-default {
    transform: translateY(-100%);
}

.nav-links a:hover .nav-label-hover {
    transform: translateY(-100%);
}

.nav-links svg {
    width: 16px;
    height: 16px;
}

.hero {
    padding: 160px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-images {
    margin-bottom: 40px;
}

.main-heading {
    font-size: clamp(60px, 10vw, 120px);
    line-height: 1;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
}

.phone-mockup {
    --base-rotate: 0deg;
    width: 260px;
    height: 560px; 
    background: rgba(20, 20, 25, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15); 
    border-radius: 44px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.05);
    margin: 0 auto;
    z-index: 1; 
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateZ(var(--base-rotate)) rotateY(0deg) rotateX(0deg) scale3d(1, 1, 1);
    transition: transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 42px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 20;
}

.phone-mockup .notch {
    position: absolute;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 70px; 
    height: 18px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px; 
    z-index: 10; 
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.phone-mockup .notch::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #0a0a0a; 
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.3);
}

.phone-mockup .screen {
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    background-color: #000;
    background-size: cover;
    background-position: center top 0px; 
    background-repeat: no-repeat;
    border-radius: 36px; 
    z-index: 1;
}

.phone-mockup.left { --base-rotate: -5deg; }
.phone-mockup.right { --base-rotate: 5deg; }
.phone-mockup.center-phone { --base-rotate: 0deg; }

.bg-tk { background-image: url('tk.jpg'); }
.bg-youtube { background-image: url('yt.jpg'); }
.bg-telegram { background-image: url('tg.jpg'); }
.bg-twitch { background-image: url('tw.jpg'); }

.section-intro {
    padding: 80px 0;
}

.section-intro h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.section-feature {
    padding: 100px 0;
}

.alt-bg {
    background-color: rgba(13, 13, 20, 0.4);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-text h2 {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

[dir="rtl"] .grid-2.reverse .feature-visual { order: 0; }
[dir="rtl"] .fancy-btn { flex-direction: row-reverse; padding: 8px 30px 8px 8px; }
[dir="rtl"] .btn-text-wrapper { margin-right: 0; margin-left: 20px; }
[dir="rtl"] .nav-links a .nav-label-default svg,
[dir="rtl"] .nav-links a .nav-label-hover svg { margin-right: 6px; margin-left: 0; }

.fancy-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 8px 8px 30px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.fancy-btn.youtube:hover { background: var(--accent-yt); box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4); transform: translateY(-3px); }
.fancy-btn.telegram:hover { background: var(--accent-tg); box-shadow: 0 15px 40px rgba(42, 171, 238, 0.4); transform: translateY(-3px); }
.fancy-btn.twitch:hover { background: var(--accent-tw); box-shadow: 0 15px 40px rgba(145, 70, 255, 0.4); transform: translateY(-3px); }

.btn-text-wrapper {
    margin-right: 20px;
}

.btn-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    transition: transform 0.3s ease;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.fancy-btn:hover .btn-icon {
    transform: rotate(45deg);
}

.footer {
    padding: 100px 0 50px;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-size: 48px;
    margin-bottom: 10px;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0 auto 50px auto;
    max-width: 600px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.support-links {
    margin-bottom: 30px;
}

.support-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.support-links a:hover {
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 14px;
    color: #555 !important;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .grid-2.reverse .feature-visual {
        order: -1;
    }
    .phone-mockup {
        margin-bottom: 30px;
        transform: rotate(var(--base-rotate)) !important;
    }
    .main-heading {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: rgba(7, 7, 10, 0.9);
    }
    .nav-container {
        flex-wrap: wrap; 
        padding: 15px 20px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-right-wrap {
        display: none; 
        flex-direction: column;
        width: 100%;
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 10px;
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-top: 15px;
    }
    
    .nav-right-wrap.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .lang-switcher {
        justify-content: center;
    }
    
    .nav-item {
        font-size: 20px;
        height: 30px;
    }
    
    .nav-label-default, 
    .nav-label-hover {
        font-size: 18px;
    }
    
    .nav-links svg {
        width: 20px;
        height: 20px;
    }
    
    .hero {
        padding-top: 180px; 
    }
    
    .social-links {
        grid-template-columns: 1fr 1fr; 
    }
}
