:root {
    --butter: #E6D7A8;
    --clay: #A66A4C;
    --dark: #080B12;
    --dark-card: #111827;
    --dark-card-2: #151D2C;
    --border: #3A342E;
    --text: #F3EFE6;
    --muted: #B8B0A3;
    --shadow: rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    transition: 0.4s ease;
}


/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 6%;

    background: rgba(8, 11, 18, 0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--butter);
    font-size: 24px;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--butter);
}

.theme-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--butter);

    padding: 8px 13px;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.3s;
}

.theme-btn:hover {
    background: var(--clay);
    color: white;
}


/* GENERAL SECTIONS */

section {
    padding: 60px 7%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    color: var(--butter);
    margin-bottom: 30px;
    font-size: 28px;
}


/* HERO */

.hero {
    min-height: 85vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.hero-text {
    max-width: 600px;
}

.small-title {
    color: var(--clay);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 70px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--butter);
}

.hero h3 {
    color: var(--clay);
    margin-bottom: 15px;
}

.hero p {
    color: var(--muted);
    margin-bottom: 25px;
}


/* BUTTON */

.btn {
    display: inline-block;

    background: linear-gradient(
        135deg,
        var(--clay),
        var(--butter)
    );

    color: #17130F;

    padding: 11px 23px;

    border: none;
    border-radius: 8px;

    font-weight: bold;
    text-decoration: none;

    cursor: pointer;

    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(166, 106, 76, 0.25);
}


/* PROFILE */

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-ring {
    width: 270px;
    height: 270px;

    padding: 8px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--butter),
        var(--clay)
    );

    box-shadow:
        0 15px 40px var(--shadow);
}

.profile-pic {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 6px solid var(--dark);
}


/* ABOUT */

.about-box {
    max-width: 850px;
    margin: auto;

    background: var(--dark-card);

    border: 1px solid var(--border);

    padding: 28px;

    border-radius: 14px;

    box-shadow: 0 10px 30px var(--shadow);
}

.about-box p {
    color: var(--muted);
    margin-bottom: 15px;
}

.about-box p:last-child {
    margin-bottom: 0;
}


/* STORY */

.story {
    max-width: 900px;
    margin: auto;

    padding: 10px 20px;
}

.story p {
    color: var(--muted);
    margin-bottom: 20px;
}

.story strong {
    color: var(--butter);
}

.story-ending {
    text-align: center;

    color: var(--butter) !important;

    font-size: 18px;

    margin-top: 25px;
}


/* CARDS */

.cards {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 22px;
}

.card {
    width: 280px;

    background: var(--dark-card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 24px;

    text-align: center;

    box-shadow: 0 10px 25px var(--shadow);

    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);

    border-color: var(--clay);

    box-shadow:
        0 15px 30px rgba(166, 106, 76, 0.16);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.card h3 {
    color: var(--butter);
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
}


/* SKILL BARS */

.skill-box {
    max-width: 650px;

    margin: 30px auto 0;

    padding: 25px;

    background: var(--dark-card);

    border: 1px solid var(--border);

    border-radius: 14px;
}

.skill-box h3 {
    text-align: center;

    color: var(--butter);

    margin-bottom: 22px;
}

.skill {
    margin-bottom: 18px;
}

.skill:last-child {
    margin-bottom: 0;
}

.skill-name {
    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 14px;
}

.bar {
    width: 100%;
    height: 7px;

    background: #202938;

    border-radius: 20px;

    overflow: hidden;
}

.progress {
    height: 100%;

    border-radius: 20px;

    background: linear-gradient(
        90deg,
        var(--clay),
        var(--butter)
    );
}

.progress.html {
    width: 85%;
}

.progress.css {
    width: 75%;
}

.progress.javascript {
    width: 60%;
}


/* PROJECTS */

.project-btn {
    display: inline-block;

    margin-top: 15px;

    color: var(--butter);

    text-decoration: none;

    font-size: 14px;

    border-bottom: 1px solid var(--clay);

    transition: 0.3s;
}

.project-btn:hover {
    color: var(--clay);
}


/* MOTTO */

.motto-box {
    max-width: 650px;

    margin: auto;

    padding: 25px 30px;

    text-align: center;

    background: var(--dark-card);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 10px 25px var(--shadow);
}

.motto-box p {
    color: var(--text);
    font-style: italic;
}

.quote {
    color: var(--clay);

    font-size: 30px;

    font-weight: bold;
}


/* CONTACT */

.contact-section {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;

    padding: 25px;

    background: var(--dark-card);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: 0 10px 25px var(--shadow);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section p {
    width: 100%;

    color: var(--muted);

    text-align: center;

    margin-bottom: 20px;
}

.contact-section input,
.contact-section textarea {
    width: 100%;

    background: #101722;

    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 12px;

    margin-bottom: 12px;

    font-family: inherit;

    outline: none;

    transition: 0.3s;
}

.contact-section input {
    height: 45px;
}

.contact-section textarea {
    min-height: 130px;

    resize: vertical;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--butter);

    box-shadow:
        0 0 0 2px rgba(230, 215, 168, 0.1);
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #777;
}

#whatsappBtn {
    width: fit-content;

    min-width: 220px;

    margin: 5px auto 0;
}


/* BACK TO TOP */

#backToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--clay),
        var(--butter)
    );

    color: #17130F;

    font-size: 22px;

    cursor: pointer;

    display: none;

    z-index: 999;

    box-shadow: 0 8px 20px var(--shadow);

    transition: 0.3s;
}

#backToTop:hover {
    transform: translateY(-4px);
}


/* FOOTER */

footer {
    text-align: center;

    padding: 25px 15px;

    margin-top: 30px;

    background: var(--dark-card);

    border-top: 1px solid var(--border);
}

footer p {
    color: var(--muted);

    font-size: 14px;
}

.footer-text {
    margin-top: 5px;

    color: var(--butter) !important;
}


/* LIGHT MODE */

body.light-mode {
    --dark: #F4F0E6;
    --dark-card: #FFFDF7;
    --dark-card-2: #F8F3E8;
    --border: #D8CDBB;
    --text: #302923;
    --muted: #6E6258;
    --shadow: rgba(75, 55, 40, 0.12);
}

body.light-mode header {
    background: rgba(255, 253, 247, 0.92);
}

body.light-mode .profile-pic {
    border-color: #FFFDF7;
}

body.light-mode .contact-section input,
body.light-mode .contact-section textarea {
    background: #FFFDF7;
    color: var(--text);
}

body.light-mode .bar {
    background: #E4DCCE;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    header {
        flex-wrap: wrap;

        gap: 12px;

        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
    }

    nav {
        gap: 12px;

        flex-wrap: wrap;

        justify-content: center;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        flex-direction: column-reverse;

        text-align: center;

        padding-top: 50px;
    }

    .profile-ring {
        width: 210px;
        height: 210px;
    }

    section {
        padding: 45px 5%;
    }
}


@media (max-width: 500px) {

    .section-title {
        font-size: 24px;
    }

    .card {
        width: 100%;
        max-width: 330px;
    }

    .contact-section {
        padding: 18px;
    }

    #whatsappBtn {
        width: 100%;
    }

    #backToTop {
        right: 15px;
        bottom: 15px;
    }
}