* {
    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.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar {
    width: min(1150px, 90%);
    height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span,
.hero h1 span,
.section-header h2 span {
    color: #8b5cf6;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: #aaa;
    font-size: 0.92rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    position: relative;
    background:
        radial-gradient(circle at 80% 35%, rgba(139, 92, 246, 0.13), transparent 28%),
        radial-gradient(circle at 20% 70%, rgba(59, 130, 246, 0.08), transparent 25%);
}

.hero-container {
    width: min(1150px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.small-title {
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.small-title span {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: #8b5cf6;
    vertical-align: middle;
    margin-right: 10px;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: -6px;
    font-weight: 800;
}

.hero h2 {
    margin-top: 25px;
    font-size: 1.25rem;
    color: #d0d0d0;
    font-weight: 500;
}

.hero-description {
    max-width: 590px;
    margin-top: 20px;
    color: #929292;
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 23px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: #8b5cf6;
    color: #fff;
}

.primary-btn:hover {
    background: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.3);
}

.secondary-btn {
    border: 1px solid #303030;
    color: #ddd;
    background: rgba(255, 255, 255, 0.02);
}

.secondary-btn:hover {
    border-color: #666;
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-links a,
.footer-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #292929;
    border-radius: 10px;
    color: #aaa;
    transition: 0.3s;
}

.social-links a:hover,
.footer-socials a:hover {
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-3px);
}


/* HERO IMAGE */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.profile-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.18);
    filter: blur(80px);
}

.profile-card {
    width: 340px;
    height: 420px;
    position: relative;
    z-index: 2;
    border: 1px solid #292929;
    border-radius: 25px;
    padding: 10px;
    background: #101010;
    transform: rotate(3deg);
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.profile-tag {
    position: absolute;
    bottom: 20px;
    left: 25px;
    right: 25px;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    color: #ddd;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 6px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid #292929;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.floating-card i {
    color: #8b5cf6;
    font-size: 1.1rem;
}

.floating-card strong {
    display: block;
    font-size: 0.75rem;
}

.floating-card small {
    display: block;
    color: #777;
    font-size: 0.6rem;
}

.card-one {
    top: 80px;
    left: 0;
}

.card-two {
    right: -10px;
    bottom: 70px;
}


/* SECTIONS */

.section {
    width: min(1150px, 90%);
    margin: auto;
    padding: 120px 0;
}

.dark-section {
    width: 100%;
    padding-left: max(5%, calc((100% - 1150px) / 2));
    padding-right: max(5%, calc((100% - 1150px) / 2));
    background: #0d0d0d;
}

.section-header {
    max-width: 750px;
    margin-bottom: 55px;
}

.section-header > p {
    color: #8b5cf6;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -2px;
}


/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    color: #999;
    margin-bottom: 20px;
    max-width: 700px;
}

.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #b89cff;
    font-weight: 600;
    margin-top: 15px;
}

.text-link:hover {
    color: white;
}

.about-stats {
    display: grid;
    gap: 15px;
}

.stat {
    border: 1px solid #262626;
    padding: 22px;
    border-radius: 14px;
    background: #0e0e0e;
}

.stat strong {
    display: block;
    font-size: 2rem;
    color: #fff;
}

.stat span {
    color: #777;
    font-size: 0.8rem;
}


/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 28px;
    border: 1px solid #252525;
    border-radius: 15px;
    background: #111;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #8b5cf6;
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    font-size: 1.3rem;
    margin-bottom: 22px;
}

.skill-card h3 {
    margin-bottom: 7px;
}

.skill-card p {
    color: #777;
    font-size: 0.85rem;
}


/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    padding: 32px;
    min-height: 330px;
    border: 1px solid #242424;
    border-radius: 16px;
    background: #0d0d0d;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: #8b5cf6;
}

.project-number {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
}

.project-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #171717;
    color: #a78bfa;
    margin-bottom: 28px;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.project-card p {
    color: #777;
    font-size: 0.85rem;
}

.project-link {
    position: absolute;
    bottom: 28px;
    display: flex;
    gap: 9px;
    align-items: center;
    color: #b89cff;
    font-size: 0.8rem;
    font-weight: 700;
}


/* CONTACT */

.contact-section {
    padding: 120px 5%;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(139, 92, 246, 0.12), transparent 40%),
        #0b0b0b;
    border-top: 1px solid #191919;
}

.contact-container {
    max-width: 850px;
    margin: auto;
}

.contact-section .section-header {
    margin-left: auto;
    margin-right: auto;
}

.contact-description {
    max-width: 550px;
    margin: 20px auto 0;
    color: #777;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.large-btn {
    min-width: 160px;
}

.email-address {
    margin-top: 30px;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
}

.email-address i {
    color: #8b5cf6;
}


/* FOOTER */

.footer {
    border-top: 1px solid #1d1d1d;
    background: #080808;
}

.footer-container {
    width: min(1150px, 90%);
    min-height: 90px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer p {
    color: #555;
    font-size: 0.75rem;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        min-height: 450px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .navbar {
        height: 70px;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        flex-direction: column;
        background: #0b0b0b;
        border-bottom: 1px solid #222;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 4rem;
        letter-spacing: -4px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .profile-card {
        width: 280px;
        height: 350px;
    }

    .floating-card {
        display: none;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 90px 0;
    }

    .dark-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .footer-container {
        padding: 25px 0;
        flex-direction: column;
    }
}