/* =====================================================
   VARIABLES
===================================================== */

:root {
    --light-bg: #ffffff;
    --light-hover: #fcf4ff;

    --dark-bg: #11001F;
    --dark-hover: #2a004a;

    --text: #1f1f1f;
    --muted: #666666;
    --border: #d1d1d1;

    --purple: #b820e6;
    --orange: #da7d20;
    --lime: #bef264;

    --font-main: "Outfit", sans-serif;
    --font-title: "Ovo", serif;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--font-main);
    line-height: 1.7;

    color: var(--text);
    background: var(--light-bg);

    overflow-x: hidden;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


body.dark {
    color: white;
    background: var(--dark-bg);
}


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


button,
input,
textarea {
    font: inherit;
}


button {
    border: none;
    background: none;
    cursor: pointer;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 16px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 100;

    transition:
        background-color 0.3s ease,
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(14px);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05);
}


body.dark .navbar.scrolled {
    background: rgba(17, 0, 31, 0.85);

    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.08);
}


.logo,
.footer-logo {
    font-family: var(--font-title);
    font-size: 25px;
}


.logo span,
.footer-logo span {
    font-size: 32px;
}


.desktop-nav {
    display: flex;

    align-items: center;

    gap: 32px;

    padding: 12px 48px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.06);

    font-family: var(--font-title);
}


.desktop-nav a {
    transition: color 0.2s ease;
}


.desktop-nav a:hover {
    color: var(--purple);
}


body.dark .desktop-nav {
    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.45);
}


.nav-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}


.theme-button {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: currentColor;
}


.theme-button svg {
    width: 22px;
    height: 22px;

    fill: currentColor;
    stroke: currentColor;

    stroke-width: 1.5;
}


.nav-contact {
    border: 1px solid #777;

    padding: 8px 28px;

    border-radius: 999px;

    transition: all 0.3s ease;
}


.nav-contact:hover {
    background: #000;
    color: white;
}


body.dark .nav-contact {
    border-color: rgba(255, 255, 255, 0.6);
}


.mobile-menu-button {
    display: none;

    color: currentColor;
}


.mobile-menu-button svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
}


/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {
    position: fixed;

    top: 0;
    right: -280px;

    width: 280px;
    height: 100vh;

    padding: 80px 35px;

    display: flex;
    flex-direction: column;

    gap: 24px;

    background: #fff5f8;

    z-index: 200;

    transition: right 0.4s ease;

    box-shadow:
        -5px 0 30px rgba(0, 0, 0, 0.1);
}


.mobile-menu.open {
    right: 0;
}


body.dark .mobile-menu {
    background: var(--dark-hover);
}


.close-menu {
    position: absolute;

    top: 25px;
    right: 25px;

    color: currentColor;
}


.close-menu svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
}


.mobile-menu a {
    font-family: var(--font-title);
    font-size: 18px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    width: 90%;
    max-width: 850px;

    margin: auto;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    gap: 16px;
}


.hero-profile {
    margin-top: 70px;
}


.hero-profile img {
    width: 128px;
    height: 128px;

    object-fit: cover;

    border-radius: 14px;

    box-shadow:
        0 10px 35px rgba(149, 0, 162, 0.12);
}


.hero-greeting {
    display: flex;

    align-items: center;

    gap: 8px;

    font-family: var(--font-title);

    font-size: 20px;
}


.hand-icon {
    width: 25px;
    height: 25px;

    fill: currentColor;
}


.hero h1 {
    font-family: var(--font-title);

    font-size: clamp(42px, 7vw, 75px);

    line-height: 1.1;

    font-weight: 400;
}


.hero-description {
    max-width: 620px;

    color: var(--muted);

    font-size: 17px;
}


body.dark .hero-description {
    color: #cfcfcf;
}


.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 15px;
}


.primary-button,
.secondary-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 26px;

    border-radius: 999px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.primary-button {
    color: white;

    background:
        linear-gradient(
            90deg,
            var(--purple),
            var(--orange)
        );
}


.secondary-button {
    border: 1px solid #777;
}


.primary-button svg,
.secondary-button svg {
    width: 18px;
    height: 18px;

    fill: currentColor;
}


.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    width: 100%;

    padding: 90px 10%;

    scroll-margin-top: 70px;
}


.section-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 50px;
}


.section-heading p {
    font-family: var(--font-title);

    font-size: 18px;
}


.section-heading h2 {
    font-family: var(--font-title);

    font-size: clamp(36px, 5vw, 52px);

    font-weight: 400;

    margin-bottom: 12px;
}


.section-heading span {
    color: var(--muted);
}


body.dark .section-heading span {
    color: #ccc;
}


/* =====================================================
   ABOUT
===================================================== */

.about-content {
    display: grid;

    grid-template-columns:
        0.85fr 1.4fr;

    gap: 70px;

    align-items: center;
}


.about-image-area {
    position: relative;

    width: 100%;

    max-width: 400px;

    margin: auto;
}


.about-image {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 28px;

    display: block;
}


.circular-logo {
    position: absolute;

    right: -30px;
    bottom: -25px;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    background: white;

    display: flex;

    align-items: center;
    justify-content: center;

    font-family: var(--font-title);

    font-size: 60px;

    color: var(--purple);

    box-shadow:
        0 4px 55px rgba(149, 0, 162, 0.15);
}


.about-text > p {
    margin-bottom: 15px;

    color: var(--muted);
}


body.dark .about-text > p {
    color: #d0d0d0;
}


.about-cards {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin: 30px 0 40px;
}


.about-card {
    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 22px;

    min-height: 190px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}


.about-card:hover {
    background: var(--light-hover);

    transform: translateY(-5px);

    box-shadow: 4px 4px 0 #000;
}


body.dark .about-card {
    border-color: white;
}


body.dark .about-card:hover {
    background: rgba(42, 0, 74, 0.5);

    box-shadow: 4px 4px 0 white;
}


.about-card-icon {
    width: 35px;
    height: 35px;

    margin-bottom: 12px;

    fill: currentColor;
}


.about-card h3 {
    font-size: 18px;

    margin-bottom: 7px;
}


.about-card p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


body.dark .about-card p {
    color: #ccc;
}


.sub-heading {
    font-family: var(--font-title);

    font-size: 20px;

    margin: 25px 0 15px;
}


.technology-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


.technology-icon {
    width: 52px;
    height: 52px;

    border: 1px solid #bbb;

    border-radius: 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}


.technology-icon:hover {
    transform: translateY(-4px);

    background: var(--light-hover);
}


body.dark .technology-icon {
    border-color: #888;
}


body.dark .technology-icon:hover {
    background: var(--dark-hover);
}


.technology-icon svg {
    width: 27px;
    height: 27px;

    fill: currentColor;

    stroke: none;
}


/* =====================================================
   SERVICES
===================================================== */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.service-card {
    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 30px;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}


.service-card:hover {
    background: var(--light-hover);

    transform: translateY(-5px);

    box-shadow: 4px 4px 0 #000;
}


body.dark .service-card {
    border-color: white;
}


body.dark .service-card:hover {
    background: var(--dark-hover);

    box-shadow: 4px 4px 0 white;
}


.service-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}


.service-icon svg {
    width: 40px;
    height: 40px;

    fill: currentColor;
}


.service-card h3 {
    font-family: var(--font-title);

    font-size: 22px;

    margin-bottom: 10px;
}


.service-card p {
    color: var(--muted);

    margin-bottom: 20px;
}


body.dark .service-card p {
    color: #ccc;
}


.service-card a {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    font-weight: 500;
}


.service-card a svg {
    width: 16px;
    height: 16px;

    fill: currentColor;
}


/* =====================================================
   WORK
===================================================== */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-top: 30px;
}


.project-card {
    aspect-ratio: 1 / 1;

    border-radius: 10px;

    position: relative;

    overflow: hidden;

    cursor: pointer;

    display: flex;

    align-items: flex-end;

    padding: 20px;

    transition: transform 0.3s ease;
}


.project-card:hover {
    transform: translateY(-5px);
}


.project-card > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.project-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.5),
            transparent 55%
        );
}


.project-card:hover > img {
    transform: scale(1.05);
}


.project-content {
    position: relative;

    z-index: 2;

    width: 100%;

    padding: 15px 18px;

    background: white;

    color: black;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.3s ease;
}


.project-card:hover .project-content {
    transform: translateY(-4px);
}


.project-content p {
    font-size: 12px;

    color: #777;
}


.project-content h3 {
    font-family: var(--font-title);

    font-size: 18px;
}


.project-content a {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border: 1px solid black;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    box-shadow: 2px 2px 0 #000;

    transition:
        background-color 0.2s ease;
}


.project-content a:hover {
    background: var(--lime);
}


.project-content a svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


.show-more {
    display: flex;

    justify-content: center;

    margin-top: 40px;
}


.show-more a {
    border: 1px solid #888;

    border-radius: 999px;

    padding: 10px 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    transition: all 0.2s ease;
}


.show-more a:hover {
    background: black;

    color: white;
}


.show-more svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {
    padding: 100px 10%;

    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(184, 32, 230, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 60%,
            rgba(218, 125, 32, 0.08),
            transparent 30%
        );
}


body.dark .contact-section {
    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(184, 32, 230, 0.12),
            transparent 30%
        );
}


.contact-form {
    max-width: 700px;

    margin: auto;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 18px;
}


.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px 18px;

    border: 1px solid #bbb;

    border-radius: 7px;

    outline: none;

    background: rgba(255, 255, 255, 0.8);

    color: var(--text);

    resize: vertical;
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
}


body.dark .contact-form input,
body.dark .contact-form textarea {
    background: rgba(42, 0, 74, 0.35);

    color: white;

    border-color: #777;
}


.contact-form button {
    margin: 25px auto 0;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 28px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.85);

    color: white;

    transition:
        transform 0.2s ease;
}


.contact-form button:hover {
    transform: translateY(-2px);
}


.contact-form button svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 35px 10% 20px;
}


.footer-main {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    padding-bottom: 25px;

    border-bottom: 1px solid #ccc;
}


.footer-logo {
    font-size: 27px;
}


.email-link {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}


.email-link svg {
    width: 18px;
    height: 18px;

    fill: currentColor;
}


.footer-bottom {
    padding-top: 18px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: var(--muted);

    font-size: 13px;
}


.social-links {
    display: flex;

    gap: 20px;
}


.social-links a:hover {
    color: var(--purple);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .desktop-nav,
    .nav-contact {
        display: none;
    }


    .mobile-menu-button {
        display: flex;
    }


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


    .about-image-area {
        max-width: 350px;
    }


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

}


@media (max-width: 650px) {

    .navbar {
        padding: 15px 6%;
    }


    .section {
        padding: 70px 7%;
    }


    .hero {
        width: 88%;
    }


    .hero h1 {
        font-size: 43px;
    }


    .hero-description {
        font-size: 15px;
    }


    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }


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


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


    .contact-section {
        padding: 70px 7%;
    }


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


    .footer-bottom {
        flex-direction: column;

        text-align: center;

        align-items: center;
    }

}


@media (max-width: 400px) {

    .hero h1 {
        font-size: 37px;
    }


    .circular-logo {
        width: 115px;
        height: 115px;

        right: -10px;

        font-size: 45px;
    }

}

/* =====================================================
   LANGUAGE BUTTON
===================================================== */

.language-button {
    padding: 7px 14px;

    border: 1px solid #777;
    border-radius: 999px;

    font-size: 13px;
    font-family: var(--font-main);

    color: inherit;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.language-button:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: white;

    transform: translateY(-1px);
}

body.dark .language-button {
    border-color: rgba(255, 255, 255, 0.6);
}