:root {
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --primary: #00a2ff;
    --secondary: #bd00ff;
    --Tertiary: #0041bf;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --glow-primary: 0 0 20px rgba(0, 210, 255, 0.4);
    --glow-secondary: 0 0 20px rgba(189, 0, 255, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
    background: var(--bg-dark);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: var(--text-main);
    font-family: var(--font-main);
    background: transparent;
    min-height: 100vh;
    height: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: none;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite alternate;
}
.nebula-1 { width: 600px; height: 600px; background: var(--primary); top: -20%; left: -10%; }
.nebula-2 { width: 500px; height: 500px; background: var(--primary); bottom: -10%; right: -10%; animation-delay: -5s; }
.stars {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo i { color: var(--primary); }

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.discord-btn {
    background: #5865F2;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}
.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.menu-trigger {
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}
.menu-trigger:hover { color: var(--primary); }

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 10000;
    padding: 30px;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}
.sidebar.active { right: 0; }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.nav-links li { list-style: none; margin-bottom: 25px; }
.nav-links a {
    text-decoration: none;
    color: #bbb;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-links a:hover {
    color: var(--primary);
    padding-left: 10px;
}
.sidebar-footer { margin-top: auto; font-size: 0.8rem; color: #555; text-align: center; }

#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 0;
    background: transparent;
}
.badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid rgba(0, 210, 255, 0.2);
    margin-bottom: 20px;
    display: inline-block;
}
#hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--Tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#hero p { max-width: 600px; margin: 0 auto 30px; color: var(--text-muted); font-size: 1.1rem; }

.hero-btns { display: flex; gap: 15px; justify-content: center; }
.btn { padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #000; box-shadow: var(--glow-primary); }
.btn-primary:hover { background: #fff; transform: translateY(-3px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px;
    background: rgba(255,255,255, 0.02);
    border-top: 1px solid rgba(255,255,255, 0.05);
    border-bottom: 1px solid rgba(255,255,255, 0.05);
    margin-bottom: 50px;
    background: transparent;
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { color: #666; font-size: 0.9rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background: transparent;
}
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; }
.highlight { color: var(--secondary); }
.section-title p { color: var(--text-muted); margin-top: 10px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-image { position: relative; height: 180px; overflow: hidden; }
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.project-card:hover .card-image img { transform: scale(1.1); }
.version-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #333;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card-content .desc { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }
.tech-stack { display: flex; gap: 10px; margin-bottom: 20px; margin-top: auto; }
.tech-stack span {
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ccc;
}
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-top: auto;
}
.price { font-weight: bold; color: var(--primary); }
.btn-sm {
    background: #fff;
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}
.btn-sm:hover { background: var(--secondary); color: #fff; }

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: transparent;
}
.team-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    width: 300px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}
.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(189, 0, 255, 0.1);
}
.avatar-glow {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary), var(--primary));
}
.avatar-glow img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #000;
}
.team-card h3 { margin-bottom: 5px; }
.team-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.team-card .socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}
.team-card .socials a {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: 0.3s;
}
.team-card .socials a:hover { color: var(--primary); }

footer {
    background: #000000;
    padding: 0 20px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer-text p {
    color: #999;
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.5;
    margin-top: 0;
}

.footer-icon {
    padding-top: 2px;
}

.footer-icon a {
    color: #888;
    font-size: 1.8rem;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
}

.footer-icon a:hover {
    color: #fff;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .footer-text p {
        margin: 0 auto;
    }
}

.discord-widget-area {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: -30px auto 0;
    width: 100%;
}

.widget-container {
    width: 350px;
    height: 500px;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .discord-widget-area {
        justify-content: center;
        margin-top: 20px;
    }
    .widget-container {
        width: 100%;
        max-width: 400px;
        transform: none;
    }
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: #151515;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn i {
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .scroll-top-btn:hover {
        border-color: var(--primary);
        transform: translateY(-3px);
    }
    .scroll-top-btn:hover i {
        color: var(--primary);
    }
}

.scroll-top-btn:active,
.scroll-top-btn.clicked {
    transform: scale(0.95);
    border-color: var(--primary);
}

.scroll-top-btn:active i,
.scroll-top-btn.clicked i {
    color: var(--primary);
}
