/* =========================================
   GLOBAL: BASE & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;  
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #f8fafc;
    padding: 1.5rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.accent-text {
    color: #38bdf8;
}

/* =========================================
   GLOBAL: KEYFRAMES
   ========================================= */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #38bdf8;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(56, 189, 248, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* =========================================
   GLOBAL: REUSABLE COMPONENTS
   ========================================= */
.container {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary { 
    background: #38bdf8; 
    color: #0f172a; 
}

.btn-primary:hover { 
    background: #7dd3fc; 
    transform: translateY(-2px); 
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.1); 
    transform: translateY(-2px); 
}

/* Section Headers */
.section-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.section-subtitle { 
    font-size: 1.05rem; 
    color: #94a3b8; 
    max-width: 550px; 
    margin: 0 auto; 
}

/* =========================================
   GLOBAL: NAVIGATION BAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);         
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled { 
    background: rgba(15, 23, 42, 0.9); 
}

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

.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.2s ease;
}

.nav-logo:hover {
    color: #7dd3fc;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #f8fafc;
    border-bottom-color: #38bdf8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        border-bottom: none;
        text-align: center;
        width: 100%;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }
}

/* =========================================
   GLOBAL: FOOTER
   ========================================= */
.site-footer {
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

.footer-heart {
    color: #ef4444;
    display: inline-block;
    transition: transform 0.2s ease;
}

.footer-heart:hover {
    transform: scale(1.3);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.social-link {
    color: #64748b;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 6px;
    text-decoration: none;
}

.social-link:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-socials {
        gap: 1.5rem;
    }
}