* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
    overflow-x: hidden;
}

image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

/*--NAV--*/

.nav-logo {
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1rem;
    color: #6C63FF;
    letter-spacing: 0.05em;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5rem;
    background: rgba(10, 10, 15, 0.85);
    /* backdrop-filter: blur(120px); */
    border-bottom: 1px solid #1E1E2E;
}

.nav-links {
    width: 400px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    /* background-color: red; */
    margin-left: -85px;
}

.nav-links a {
    color: #6B6B8A;
    text-decoration: none;
    font-size: 1rem;
    font-family: monospace;
    transition: color .4s;
}

.nav-links a:hover {
    color: #E2E2F0;
}


:root {
    --bg: #0A0A0F;
    --surface: #111118;
    --border: #1E1E2E;
    --accent: #6C63FF;
    --accent2: #00D4FF;
    --text: #E2E2F0;
    --muted: #6B6B8A;
    --mono: 'JetBrains Mono', monospace;
    --display: 'Syne', sans-serif;
    --sans: sans-serif;
}

/* ── HERO ── */
#hero {
    width: 100%;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: row wrap;
}

#hero-section {
    width: 60%;
    height: 550px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-flow: column wrap;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    max-width: 100vw;
    background: radial-gradient(circle, rgba(108, 99, 255, .15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero-label {
    width: 25%;
    height: 30px;
    padding-left: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
}

.hero-name {
    font-size: 6rem;
    width: 100%;
    height: 100px;
    padding-left: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 800;
    font-family: sans-serif;
}

.hero-name .cursor {
    width: 10px;
    height: 78px;
    background-color: #6C63FF;
    margin-right: 10px;
    vertical-align: text-bottom;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-role {
    width: 55%;
    height: 80px;
    padding-left: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: monospace;
    font-size: 21px;
    color: #00D4FF;
}

.hero-desc {
    width: 65%;
    height: 100px;
    padding-left: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #6B6B8A;
    font-size: 17px;
    margin-bottom: 1.5rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: #1E1E2E;
}

/* ── ABOUT ── */

#about {
    width: 100%;
    height: 630px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-flow: column wrap;
    background-color: #111118;
}

.about-header {
    width: 140px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: row wrap;
    position: absolute;
    margin-left: 85px;
    margin-bottom: 25.5rem;
}

.section-label {
    font-family: monospace;
    font-size: 12px;
    color: #6C63FF;
    letter-spacing: 2.4px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 25px;
    font-weight: 700;
    font-family: sans-serif;
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.about-grid {
    position: relative;
    width: 90%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row wrap;
    margin: auto;
}

.photo-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
    background-image: url(./1000010852.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, .15) 0px, transparent 290px);
}

.photo-tag {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.about-text {
    width: 650px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    /* background-color: blue; */
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-text p strong {
    color: var(--text);
}

.about-stats {
    width: 350px;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    gap: 1.5rem;
}

.stat-card {
    width: 140px;
    height: 130px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    /* padding: 1.5rem; */
    transition: border-color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
}

.stat-card:hover {
    border-color: var(--accent);
}

.stat-number {
    width: 100%;
    height: 30px;
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    width: 100%;
    height: 40px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── SKILLS ── */
#skills {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    background-color: #0A0A0F;
    position: relative;
}

.skills-header {
    width: 140px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-flow: row wrap;
    position: absolute;
    margin-right: 71rem;
    margin-bottom: 14rem;
}

.skills-grid {
    /* background-color: red; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    width: 100%;
    height: 70%;
    margin-top: 100px;
}

.skills-group,
.skills-top {
    display: flex;
    align-items: center;
    flex-flow: row wrap;
}

.skills-group {
    width: 30%;
    height: 50px;
    justify-content: center;
}

.skills-top {
    width: 85%;
    height: 20px;
    justify-content: space-between;
}

.skills-name {
    font-size: 16px;
}

.skills-percent {
    font-size: 15px;
    color: var(--accent2);
    font-family: monospace;
}

.skills-track {
    width: 90%;
    height: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    position: relative;
    color: var(--accent);
}

.skills-fill {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    height: 100%;
    background-image: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ── BLOG ── */

#blog {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    background-color: #111118;
}

.blog-header {
    width: 155px;
    height: 90px;
    /* background-color: red; */
    margin-bottom: 20rem;
    margin-bottom: 20rem;
    margin-right: 82rem;
    margin-top: 75px;
    position: absolute;
}

.blog-grid {
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    width: auto;
    height: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    margin-top: 100px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color .2s, transform .2s;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.blog-date {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--display);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.blog-excerpt {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.blog-readmore {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
}

.blog-readmore::after {
    content: ' →';
}

/* ── CONTACT ── */

#contact {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    background: var(--surface);
    text-align: center;
}

.contact-header,
.contact-desc,
.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
}

.contact-header {
    width: 150px;
    height: 80px;
    margin-top: 10px;
}

.contact-desc {
    width: 350px;
    height: 50px;
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.contact-links {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    gap: 1rem;
    margin-top: -50px;
}

.contact-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--muted);
    transition: 0.5s;
}

.contact-link::after {
    font-size: 1rem;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    position: absolute;
    top: 45px;
    left: 35px;
    z-index: 500;
    color: var(--accent);
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
    border-radius: 15px;
    background-color: var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.contact-link:hover::after {
    opacity: 1;
    visibility: visible;
}

#gmail::after {
    content: "Gmail";
}

#github::after {
    content: "Github";
}

#linkedin::after {
    content: "Linkedin";
}

#telegram::after {
    content: "Telegram";
    top: 40px !important;
    left: 45px !important;
}

#github:hover,
#gmail:hover {
    border-color: white;
    color: white;
}

#linkedin:hover {
    color: #0278B4;
    background-color: white;
}

#telegram:hover {
    color: #2FA3D9;
    background-color: white;
}

/* ── FOOTER ── */
footer {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: monospace;
}

/* top-button */

#top-button-container {
    position: fixed;
    width: 60px;
    height: 60px;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#top-button {
    width: 80%;
    height: 80%;
    border: 3px solid var(--accent);
    background-color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

#top-button i {
    color: var(--accent);
    animation: array-move 0.4s alternate infinite linear;
}

#top-button:hover {
    cursor: pointer;
}

@keyframes array-move {
    from {
        margin-bottom: 0;
    }

    to {
        margin-bottom: 5px;
    }
}

/* Mobile-Menu */

#phone-navbar {
    width: 100%;
    height: 50px;
    justify-content: flex-start !important;
    position: fixed;
    top: 0;
    z-index: 999;
}

#phone-navbar,
.navbar-open-icon,
#menu,
.menu-items {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-open-icon {
    width: 50px;
    height: 50px;
    margin-left: 10px;
    cursor: pointer;
}

.navbar-open-icon i {
    font-size: 25px;
}

#menu {
    width: 100%;
    height: 250px;
    background: rgba(10, 10, 15);
    padding-top: 20px;
    flex-flow: column wrap;
    position: fixed;
    top: -50%;
    transition: 1s;
}

.menu-items {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin: 5px;
}

.menu-items a {
    text-decoration: none;
    font-size: 22px;
    color: #6B6B8A;
    font-family: monospace;
}

.menu-items a:hover {
    color: white;
}


/* Mobile-Responsive */

@media (max-width: 768px) {

    /* NAV */
    nav {
        display: none;
    }

    /* HERO */

    .hero-glow {
        width: 450px;
        height: 450px;
    }

    #hero {
        height: 600px;
        /* background-color: red; */
    }

    #hero-section {
        width: 100%;
        height: 450px;
        /* background-color: red; */
    }

    .hero-label {
        width: 45%;
    }


    .hero-name {
        font-size: 30px;
        height: 70px;
        /* background-color: #00D4FF; */
    }

    .hero-name .cursor {
        width: 5px;
        height: 50px;
    }

    .hero-role {
        width: 100%;
        font-size: 19px;
    }

    .hero-desc {
        width: 90%;
        font-size: 14px;
    }

    /* ABOUT */

    #about {
        height: 1000px;
    }

    .about-header {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-flow: column;
        margin-bottom: 49rem;
    }

    .about-grid {
        width: 100%;
        height: 80%;
        justify-content: center;
        margin-top: 170px;
    }

    .photo-wrapper {
        width: 200px;
        height: 200px;
    }

    .about-text {
        width: 100%;
        padding: 15px;
    }

    .about-text p {
        font-size: 14px;
    }

    .stat-card {
        width: 120px;
        height: 110px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* SKILLS */

    #skills {
        height: 600px;
    }

    .skills-header {
        margin-right: 0;
        margin-bottom: 27rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .skills-group {
        width: 100%;
        margin: 10px;
    }

    .skills-name {
        font-size: 14px;
    }

    .skills-percent {
        font-size: 13px;
    }
}

/* Laptop */

@media (min-width: 768px) {
    #phone-navbar {
        display: none;
    }
}

/* ── SCROLL REVEAL ── */
/* .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
} */