:root {
    --accent-yellow: #ffd700;
    --accent-blue: #00d2ff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.brand-name {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

.menu-item {
    transition: opacity .2s ease, background-color .2s ease, transform .2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
}

.hero-title-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 18px 36px;
    background: rgba(6, 11, 22, 0.9);
    border: 1.5px solid var(--accent-blue);
    border-radius: 999px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-title-pill h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.about-pill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    margin: 20px 0;
}

.pill-bio,
.bio {
    display: block;
    width: min(100%, 900px);
    margin: 20px auto;
    padding: 22px 40px;
    background: rgba(6, 11, 22, 0.9);
    border: 1.5px solid var(--accent-blue);
    border-radius: 999px;
    color: #fff;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
}

.type-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto;
    padding: 14px 28px;
    background: rgba(6, 11, 22, 0.95);
    border: 1.8px solid var(--accent-yellow);
    border-radius: 999px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.30), inset 0 0 10px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
}

#typewriter {
    color: #fff;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-yellow);
    border-radius: 2px;
    animation: blink .8s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.social-note {
    display: block;
    width: min(100%, 800px);
    margin: 25px auto 0;
    padding: 18px 30px;
    background: rgba(6, 11, 22, 0.9);
    border: 1.5px solid var(--accent-blue);
    border-radius: 999px;
    color: #fff;
    text-align: center;
    font-size: .95rem;
    line-height: 1.5;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
    background: transparent;
}

.copyright-pill {
    display: inline-block;
    width: min(100%, 900px);
    padding: 16px 30px;
    background: rgba(6, 11, 22, 0.9);
    border: 1.5px solid var(--accent-blue);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .hero-title-pill {
        width: calc(100% - 24px);
        padding: 16px 20px;
        border-radius: 28px;
    }

    .hero-title-pill h1 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .type-box {
        width: calc(100% - 24px);
        justify-content: center;
        padding: 12px 20px;
        border-radius: 28px;
        font-size: 1rem;
    }

    .pill-bio,
    .bio,
    .social-note,
    .copyright-pill {
        width: calc(100% - 24px);
        padding: 16px 20px;
        border-radius: 28px;
        font-size: .95rem;
    }

    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .navbar nav a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .quick-socials {
        position: fixed;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        display: flex;
        flex-direction: row !important;
        z-index: 1000;
        padding: 6px 12px;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
    }

    .project-grid,
    .stats,
    .dashboard,
    .socials {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 12px !important;
    }

    .portfolio-banner {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
    }

    button,
    a {
        min-width: 44px;
        min-height: 44px;
    }
}
