* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #080808;
    color: #f5f5f5;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 90%);
    margin: auto;
}


/* NAVBAR */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.logo span {
    color: #7c5cff;
}

nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #aaa;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: white;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
}


/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 75px;
    background:
        radial-gradient(circle at 75% 35%, rgba(124,92,255,0.15), transparent 30%),
        radial-gradient(circle at 20% 70%, rgba(0,170,255,0.08), transparent 25%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.hero-small {
    color: #7c5cff;
    font-size: 13px;
    letter-spacing: 4px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 100px);
    line-height: 1;
    margin: 15px 0;
    letter-spacing: -5px;
}

.hero h1 span {
    color: #7c5cff;
}

.hero h2 {
    font-size: 22px;
    color: #ccc;
    font-weight: 500;
}

.hero-description {
    max-width: 600px;
    margin: 25px 0;
    color: #999;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 13px 23px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-btn {
    background: #7c5cff;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid #333;
}

.secondary-btn:hover {
    background: #171717;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #888;
    font-size: 13px;
}

.social-links a:hover {
    color: white;
}


/* HERO CARD */

.hero-card {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-circle {
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 75px;
    font-weight: 800;

    background: linear-gradient(135deg, #7c5cff, #00aaff);
    box-shadow: 0 0 100px rgba(124,92,255,0.3);
}

.code-card {
    position: absolute;
    bottom: -50px;
    right: -10px;
    width: 320px;

    background: #111;
    border: 1px solid #292929;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.code-top {
    padding: 12px;
    border-bottom: 1px solid #222;
}

.code-top span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #555;
    margin-right: 5px;
}

.code-card pre {
    padding: 18px;
    overflow: auto;
}

.code-card code {
    color: #aaa;
    font-size: 12px;
}


/* SECTIONS */

.section {
    padding: 110px 0;
}

.dark-section {
    background: #0d0d0d;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading p {
    color: #7c5cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}

.section-heading h2 {
    font-size: 42px;
    margin-top: 5px;
}


/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about-grid h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-grid p {
    color: #999;
    margin-bottom: 18px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-box {
    padding: 25px;
    border: 1px solid #252525;
    border-radius: 10px;
    background: #0e0e0e;
}

.info-box span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 8px;
}

.info-box strong {
    font-size: 14px;
}


/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 30px;
    border: 1px solid #242424;
    border-radius: 10px;
    background: #101010;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #7c5cff;
}

.skill-card span {
    color: #7c5cff;
    font-size: 12px;
}

.skill-card h3 {
    margin: 15px 0 8px;
}

.skill-card p {
    color: #777;
    font-size: 14px;
}


/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    padding: 30px;
    border: 1px solid #242424;
    border-radius: 12px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #7c5cff;
}

.project-number {
    color: #7c5cff;
    font-size: 13px;
}

.project-card h3 {
    margin: 20px 0 15px;
    font-size: 22px;
}

.project-card p {
    color: #888;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.tags span {
    padding: 5px 9px;
    border-radius: 5px;
    background: #181818;
    color: #aaa;
    font-size: 11px;
}


/* EXPERIENCE */

.timeline {
    max-width: 750px;
}

.timeline-item {
    position: relative;
    padding-left: 35px;
    border-left: 1px solid #333;
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7c5cff;
}

.timeline-content span {
    color: #7c5cff;
    font-size: 13px;
}

.timeline-content h3 {
    margin-top: 8px;
}

.timeline-content h4 {
    color: #aaa;
    font-weight: 500;
    margin: 5px 0 12px;
}

.timeline-content p {
    color: #888;
}


/* CONTACT */

.contact-section {
    text-align: center;
}

.contact-box {
    max-width: 700px;
    margin: auto;
    padding: 50px 20px;
    border: 1px solid #292929;
    border-radius: 15px;
    background: #0e0e0e;
}

.contact-box p {
    color: #888;
    margin-bottom: 20px;
}

.email-link {
    display: inline-block;
    font-size: clamp(20px, 4vw, 35px);
    font-weight: 700;
    color: #7c5cff;
    margin-bottom: 30px;
}

.contact-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #aaa;
    font-size: 14px;
}


/* FOOTER */

footer {
    border-top: 1px solid #222;
    padding: 25px 0;
    color: #666;
    font-size: 12px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}


/* MOBILE */

@media (max-width: 850px) {

    nav {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #0b0b0b;

        display: none;
        flex-direction: column;
        padding: 25px;

        border-bottom: 1px solid #222;
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-card {
        margin-top: 50px;
        padding-bottom: 70px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 550px) {

    .hero h1 {
        font-size: 55px;
    }

    .hero h2 {
        font-size: 17px;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
        font-size: 55px;
    }

    .code-card {
        width: 280px;
        right: 50%;
        transform: translateX(50%);
    }

    .skills-grid,
    .projects-grid,
    .about-info {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

}