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

:root {
    --back: #0a0d12;
    --back-light: #11151c;
    --accent: #fd7d62;
    --accent-glow: rgba(253, 125, 98, 0.4);
    --accent-light: #ff9a8b;
    --txt: #f0f0f0;
    --txt-muted: rgba(255, 255, 255, 0.6);
    --glass: rgba(20, 23, 30, 0.85);
    --glass-light: rgba(30, 34, 45, 0.9);
    --border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--back);
    color: var(--txt);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(253, 125, 98, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 125, 98, 0.05) 0%, transparent 50%);
}

/* ========== NAVIGATION ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background: rgba(10, 13, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10000;
    transition: all 0.3s ease;
}

nav.scrolled {
    height: 70px;
    background: rgba(10, 13, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

#logo img { 
    height: 50px; 
    max-width: 100%;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    transition: all 0.3s ease;
}

#logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px var(--accent-glow));
}

#nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center;
}

nav a {
    color: var(--txt);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover, nav a.active { 
    color: var(--accent); 
    opacity: 1;
}

.dropbtn {
    color: var(--txt);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.dropbtn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.dropbtn:hover::after,
details.dropdown[open] .dropbtn::after {
    width: 100%;
}

.dropbtn:hover, details.dropdown[open] .dropbtn { 
    color: var(--accent); 
    opacity: 1;
}

.dropbtn small {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

details.dropdown[open] .dropbtn small {
    transform: rotate(180deg);
}

details.dropdown {
    position: relative;
    display: block;
}

details.dropdown summary {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

details.dropdown summary::-webkit-details-marker {
    display: none;
}

details.dropdown summary::marker {
    content: '';
}

details.dropdown .dropdown-content {
    display: none;
}

details.dropdown[open] .dropdown-content {
    display: block;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    background: rgba(30, 34, 45, 0.95);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 10001;
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--txt-muted);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(253, 125, 98, 0.1);
    color: var(--accent);
    padding-left: 28px;
}

/* ========== HERO SECTION ========== */
.hero-container {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.glitch-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin: 0;
    letter-spacing: -3px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.accent { color: var(--accent); }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--txt-muted);
    margin-bottom: 50px;
    max-width: 600px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ========== STATS ROW ========== */
#stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 260px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 125, 98, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(253, 125, 98, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(253, 125, 98, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.label { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    opacity: 0.5; 
    margin: 0;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.value { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #fff; 
    margin: 0;
    letter-spacing: 0.5px;
}

/* ========== ACTION PANEL ========== */
#action-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 24px;
    max-width: 520px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#action-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 125, 98, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.ip-box p { 
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ip-copy-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.ip-copy-wrapper:hover {
    border-color: rgba(253, 125, 98, 0.3);
    box-shadow: 0 0 20px rgba(253, 125, 98, 0.05);
}

#ip { 
    font-family: 'JetBrains Mono', 'Fira Code', monospace; 
    font-size: 0.95rem; 
    color: #fff;
    letter-spacing: 1px;
}

#copy-ip {
    background: rgba(253, 125, 98, 0.1);
    border: 1px solid rgba(253, 125, 98, 0.3);
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#copy-ip:hover {
    background: rgba(253, 125, 98, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 125, 98, 0.2);
}

.btn-primary-connect {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(253, 125, 98, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary-connect:hover::before {
    left: 100%;
}

.btn-primary-connect:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(253, 125, 98, 0.4);
}

.btn-primary-connect img {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

/* ========== FEATURES SIDEBAR ========== */
#img-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 35%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.6) saturate(0.8);
}

#features-list-right {
    position: absolute;
    right: 5%;
    top: 55%; 
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;       
    width: 420px;    
    pointer-events: auto;
}

.feature-card {
    background: rgba(10, 12, 18, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    padding: 25px 30px; 
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateX(-20px) scale(1.02); 
    border-color: rgba(253, 125, 98, 0.4);
    background: rgba(253, 125, 98, 0.08);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(253, 125, 98, 0.1);
}

.feature-card .f-icon {
    width: 50px;  
    height: 50px;
    flex-shrink: 0;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(253, 125, 98, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(253, 125, 98, 0.2);
}

.feature-card h3 {
    font-size: 1.1rem; 
    color: #fff;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--txt-muted);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* ========== TEAM SECTION ========== */
.team-container {
    padding: 100px 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent);
    margin-bottom: 60px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    letter-spacing: 3px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.team-grid {
    display: grid;
    width: 100%;
    gap: 25px;
    margin-bottom: 80px;
}

.team-grid.zarzad-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-grid.staff {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.member-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 125, 98, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.member-card:hover {
    transform: translateY(-12px);
    border-color: rgba(253, 125, 98, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(253, 125, 98, 0.1);
}

.member-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--back-light);
    position: relative;
}

.member-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(10, 13, 18, 0.8), transparent);
    pointer-events: none;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.member-card:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.member-info h3 { 
    color: #fff; 
    font-size: 1.3rem; 
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.member-info .role { 
    color: var(--accent); 
    font-weight: 700; 
    font-size: 0.8rem; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.member-info .desc { 
    font-size: 0.85rem; 
    opacity: 0.6; 
    margin-top: 10px;
    line-height: 1.5;
}

/* ========== FOOTER ========== */
.global-footer { 
    padding: 50px 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(10, 13, 18, 0.5);
    backdrop-filter: blur(10px);
}

.footer-wrap p { 
    font-size: 0.8rem; 
    opacity: 0.5; 
    margin: 5px 0;
    letter-spacing: 0.5px;
}

.footer-wrap .credits {
    color: var(--accent);
    opacity: 0.7;
}

/* ========== HAMBURGER MENU ========== */
#hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

#hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

#hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--txt);
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

#hamburger-icon span:nth-child(1) { top: 0; }
#hamburger-icon span:nth-child(2) { top: 8px; }
#hamburger-icon span:nth-child(3) { top: 16px; }

body.mobile-nav-active #hamburger-icon span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

body.mobile-nav-active #hamburger-icon span:nth-child(2) {
    opacity: 0;
}

body.mobile-nav-active #hamburger-icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
    #features-list-right {
        width: 380px;
    }
    .feature-card h3 { font-size: 1rem; }
}

@media (max-width: 1200px) {
    #img-panel {
        width: 30%;
    }
}

@media (max-width: 1100px) {
    #img-panel { 
        display: none;
    }
    
    #main-panel {
        width: 100% !important;
    }
    
    #features-list-right { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        margin: 60px auto;
        width: 100%;
        max-width: 600px;
    }
    
    .hero-container {
        padding: 60px 5%;
    }
}

@media (max-width: 900px) {
    #hamburger-menu {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 13, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        border-bottom: 1px solid var(--border);
    }

    body.mobile-nav-active #nav-menu {
        transform: translateY(0);
        opacity: 1;
    }

    #nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }

    details.dropdown:not([open]) .dropdown-content {
        display: none;
        position: static;
        background: rgba(253, 125, 98, 0.05);
        border: 1px solid var(--border);
        margin-top: 10px;
        border-radius: 12px;
    }

    details.dropdown[open] .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        text-align: center;
        padding: 12px;
    }

    #stats-row {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
        width: 100%;
    }

    #action-panel {
        max-width: 100%;
        width: 100%;
    }

    .team-grid.zarzad-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .glitch-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-card {
        padding: 15px 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .btn-primary-connect {
        padding: 16px 24px;
        font-size: 0.85rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(253, 125, 98, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(253, 125, 98, 0);
    }
}

.stat-card.discord-card {
    animation: pulse 2s infinite;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--back);
}

::-webkit-scrollbar-thumb {
    background: rgba(253, 125, 98, 0.3);
    border-radius: 5px;
    border: 2px solid var(--back);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 125, 98, 0.5);
}

/* ========== SELECTION ========== */
::selection {
    background: var(--accent);
    color: var(--back);
}
