:root {
    --primary: #ba94db;
    --secondary: #8e71a7;
    --background: #121212;
    --text: #ffffff;
    --dark-bg: #0a0a0a;
    --light-text: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--secondary);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
    z-index: 101;
}

nav .logo:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.nav-overlay.active {
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--dark-bg);
    border-left: 1px solid var(--secondary);
    z-index: 100;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(142, 113, 167, 0.2);
}

.mobile-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav a::after {
    display: none;
}

.mobile-nav a:hover {
    color: var(--primary);
    background-color: rgba(186, 148, 219, 0.1);
    padding-left: 35px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main */
main {
    flex: 1;
    padding-top: 60px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    border-top: 1px solid var(--secondary);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--secondary);
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1.3rem;
    }

    .mobile-nav {
        max-width: 100%;
        width: 100%;
    }

    .mobile-nav a {
        padding: 16px 20px;
    }

    .mobile-nav a:hover {
        padding-left: 30px;
    }
}
