:root {
    --bg-color: #050508;
    --surface-color: rgba(18, 20, 32, 0.4);
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #00f2fe;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.05);
    --mesh-1: #1e1b4b;
    --mesh-2: #312e81;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Premium Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(at 0% 0%, var(--mesh-1) 0, transparent 50%),
        radial-gradient(at 100% 0%, var(--mesh-2) 0, transparent 50%),
        radial-gradient(at 50% 100%, #1e1b4b 0, transparent 50%);
    z-index: -2;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out alternate;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation - Floating Isle Style */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin: 20px 5%;
    height: 70px;
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(15, 17, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    gap: 16px;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    flex-shrink: 0;
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 98;
    backdrop-filter: blur(4px);
}

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

/* Language Pill Switcher */
.lang-pill {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 4px;
    height: 42px;
    width: 130px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lang-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 100px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.lang-pill.en-active .lang-indicator {
    transform: translateX(100%);
}

.lang-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.lang-opt img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    filter: grayscale(0.4);
    transition: filter 0.3s ease;
}

.lang-opt.active {
    color: white;
}

.lang-opt.active img {
    filter: grayscale(0);
}

.lang-pill:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-primary,
.btn-primary-small,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-small {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
}

.btn-discord,
.btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    color: white !important;
    border: none;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    min-width: 200px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-discord:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    padding: 14px 32px;
    font-size: 1.1rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5% 40px;
    min-height: 80vh;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* New Animated Glow */
.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-color);
}

.glitch::before,
.glitch::after {
    display: none;
    /* Removing the clipping lines as requested */
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-image {
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    animation: floatImage 6s ease-in-out infinite alternate;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

/* Music Player Demo Widget */
.music-player-demo {
    position: absolute;
    bottom: -30px;
    right: 1%;
    width: 320px;
    padding: 25px;
    z-index: 10;
    animation: floatImage 7s ease-in-out infinite alternate-reverse;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.track-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.track-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    width: 45%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.player-controls i {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.player-controls i.fa-pause {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.player-controls i:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Spectrum Visualizer */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.bar {
    width: 2.5px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out alternate;
    box-shadow: 0 0 5px rgba(0, 242, 254, 0.4);
}

.bar:nth-child(1) {
    animation-duration: 0.4s;
}

.bar:nth-child(2) {
    animation-duration: 0.7s;
}

.bar:nth-child(3) {
    animation-duration: 0.5s;
}

.bar:nth-child(4) {
    animation-duration: 0.9s;
}

.bar:nth-child(5) {
    animation-duration: 0.6s;
}

.bar:nth-child(6) {
    animation-duration: 0.8s;
}

.bar:nth-child(6) {
    animation-duration: 0.8s;
}

.bar:nth-child(7) {
    animation-duration: 0.45s;
}

.bar:nth-child(8) {
    animation-duration: 0.75s;
}

@keyframes equalize {
    0% {
        height: 20%;
        opacity: 0.4;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

/* Features Section */
.section-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.features {
    padding: 80px 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(114, 137, 218, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Commands Terminal */
.commands {
    padding: 60px 5% 100px;
}

.terminal {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

.terminal-title {
    margin-left: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 25px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.8;
}

.cmd {
    color: var(--accent-color);
    font-weight: bold;
}

.comment {
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
        margin: 12px 3%;
    }

    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background: rgba(10, 12, 22, 0.97);
        border-left: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 28px 40px;
        gap: 8px;
        z-index: 99;
        transition: transform 0.3s ease;
    }

    .nav-links.open { display: flex; }
    .nav-overlay.open { display: block; }

    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5% 100px;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .hero h1 { font-size: 2.8rem; }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-image {
        margin-top: 40px;
        width: 100%;
    }

    .floating-image {
        width: 100%;
        max-width: 300px;
    }

    .music-player-demo {
        position: relative;
        bottom: 0;
        right: 0;
        left: 0;
        margin: 20px auto 0;
        width: 100%;
        max-width: 300px;
    }
}

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

    .logo span {
        display: none;
        /* Only icon on very small screens */
    }

    .terminal-body {
        padding: 15px;
        font-size: 0.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.4);
}