@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --text: #1e293b;
    --light-text: #64748b;
    --bg: #f8fafc;
    --card: #ffffff;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--text);
    background: var(--bg);
    transition: 0.3s;
}

/* NAVBAR */

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar {
    max-width: 1100px;
    margin: auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

#theme-btn {
    border: none;
    background: #eef2ff;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}


/* HERO */

.hero {
    min-height: 100vh;
    max-width: 1100px;
    margin: auto;
    padding: 120px 20px 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
}

.hello {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {
    font-size: 25px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.hero p {
    line-height: 1.8;
    color: var(--light-text);
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 13px 25px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99,102,241,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: white;
    color: var(--primary);
    text-decoration: none;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.social a:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
}


/* AVATAR */

.avatar-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 100px;
    color: white;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    box-shadow:
        0 25px 60px rgba(99,102,241,0.35);

    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


/* SECTION */

.section {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 35px;
    margin-top: 8px;
}


/* ABOUT */

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-card {
    background: var(--card);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.about-card > i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 20px;
}

.about-card p {
    margin: 12px 0;
    color: var(--light-text);
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 15px;
}


/* SKILLS */

.skills-section {
    max-width: 800px;
}

.skill {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );
}

.html {
    width: 90%;
}

.css {
    width: 85%;
}

.js {
    width: 75%;
}

.uiux {
    width: 70%;
}


/* HOBBIES */

.hobbies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.hobby {
    text-align: center;
    padding: 35px 20px;

    background: var(--card);
    border-radius: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

    transition: 0.3s;
}

.hobby:hover {
    transform: translateY(-8px);
}

.hobby i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.hobby h3 {
    margin-bottom: 10px;
}

.hobby p {
    color: var(--light-text);
}


/* CONTACT */

.contact-section {
    max-width: 700px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 15px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    outline: none;
    font-family: inherit;

    background: white;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

form button {
    align-self: flex-start;
}


/* FOOTER */

footer {
    text-align: center;
    padding: 30px;
    background: #111827;
    color: white;
}


/* DARK MODE */

body.dark {
    --text: #f1f5f9;
    --light-text: #94a3b8;
    --bg: #0f172a;
    --card: #1e293b;
}

body.dark header {
    background: rgba(15,23,42,0.9);
}

body.dark .nav-links a {
    color: #f1f5f9;
}

body.dark .social a {
    background: #1e293b;
}

body.dark input,
body.dark textarea {
    background: #1e293b;
    color: white;
    border-color: #334155;
}

body.dark .progress {
    background: #334155;
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .avatar-circle {
        width: 220px;
        height: 220px;
        font-size: 75px;
    }

    .buttons,
    .social {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .hobbies {
        grid-template-columns: 1fr;
    }

}
