@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    background-size: 100% 100%;
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

/* Improved Responsiveness */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    .container { padding: 0 20px; }
    
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
}

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Animations */
.fade-in { opacity: 0; animation: fadeUp 0.8s var(--ease-out) forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cursor Blink */
.cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Navigation */
.nav-glass {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1000px;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}


/* Floating Bubbles (CSS Only) */
.particlesContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
    display: flex;
    justify-content: center;
    overflow: hidden;
    pointer-events: none; /* Click-through */
    padding: 0;
}

.bubbles {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    position: relative;
}

.bubbles span {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(124, 58, 237, 0.4); /* Purple base */
    margin: 0 4px;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.1), 
                0 0 50px rgba(124, 58, 237, 0.4), 
                0 0 100px rgba(124, 58, 237, 0.4);
    animation: animateBubbles 15s linear infinite;
    animation-duration: calc(125s / var(--i));
    opacity: 0.6;
}

.bubbles span:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 
                0 0 50px rgba(255, 255, 255, 0.1), 
                0 0 100px rgba(255, 255, 255, 0.1);
}

@keyframes animateBubbles {
    0% {
        transform: translateY(110vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}
