@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --purple: #7040a1;
    --dark-purple: #3b1d5b;
    --light-purple: #9b6bc7;
    --soft-purple: #eee5f6;
    --cream: #fcfaff;
    --white: #ffffff;
    --text: #302838;
    --gray: #756c7d;
    --border: #e5dceb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.7;
}

/* NAVBAR */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1150px;
    height: 75px;
    margin: auto;
    padding: 0 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--dark-purple);
    text-decoration: none;

    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
}

.logo span {
    color: var(--light-purple);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;

    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--purple);
}

.menu-btn {
    display: none;

    border: none;
    background: none;

    color: var(--purple);
    font-size: 28px;
    cursor: pointer;
}

/* GENERAL */

.subtitle {
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.btn {
    display: inline-block;

    padding: 13px 25px;

    color: white;
    background: var(--purple);

    text-decoration: none;
    border-radius: 6px;

    transition: 0.3s;
}

.btn:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--purple);
    background: transparent;
    border: 1px solid var(--purple);
}

.btn-outline:hover {
    color: white;
    background: var(--purple);
}

/* HERO */

.hero {
    max-width: 1150px;
    min-height: 650px;
    margin: auto;
    padding: 70px 25px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;
    gap: 70px;
}

.hero h1 {
    margin: 12px 0 20px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
    font-size: clamp(55px, 8vw, 85px);

    line-height: 1.05;
}

.hero h1 span {
    color: var(--purple);
}

.hero-text > p:not(.subtitle) {
    max-width: 560px;
    color: var(--gray);
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-photo {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: 350px;
    height: 400px;

    padding: 12px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 170px 170px 20px 20px;

    box-shadow: 20px 20px 0 var(--soft-purple);
}

.photo-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 160px 160px 15px 15px;
}

/* WELCOME */

.welcome {
    padding: 90px 25px;

    color: white;
    background: var(--purple);

    text-align: center;
}

.welcome .subtitle {
    color: #e5d1f3;
}

.welcome h2 {
    margin: 8px 0 15px;

    font-family: 'Playfair Display', serif;
    font-size: 42px;
}

.welcome p:last-child {
    max-width: 650px;
    margin: auto;

    color: #f0e7f7;
}

/* PAGE */

.page {
    max-width: 1150px;
    margin: auto;
    padding: 80px 25px;
}

.page-title {
    text-align: center;
    margin-bottom: 70px;
}

.page-title h1 {
    margin: 5px 0 8px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
    font-size: 55px;
}

.page-title p:last-child {
    color: var(--gray);
}

/* ABOUT */

.about {
    display: grid;
    grid-template-columns: 380px 1fr;

    align-items: center;

    gap: 70px;
}

.about-photo {
    height: 450px;

    padding: 10px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 15px 15px 0 var(--soft-purple);
}

.about-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 7px;
}

.about-content h2 {
    margin: 5px 0 20px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
    font-size: 40px;
}

.about-content > p:not(.subtitle) {
    color: var(--gray);
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 30px;
}

.info-box {
    padding: 18px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 6px;
}

.info-box strong,
.info-box span {
    display: block;
}

.info-box strong {
    color: var(--purple);
}

.info-box span {
    color: var(--gray);
}

/* SKILLS */

.skills {
    margin-top: 90px;
}

.skills > h2 {
    margin-bottom: 25px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
    font-size: 34px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    padding: 30px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59,29,91,0.1);
}

.skill-icon {
    width: 55px;
    height: 55px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 20px;

    color: var(--purple);
    background: var(--soft-purple);

    border-radius: 8px;

    font-weight: 700;
}

.skill-card h3 {
    margin-bottom: 8px;

    color: var(--dark-purple);
    font-family: 'Playfair Display', serif;
}

.skill-card p {
    color: var(--gray);
}

/* PORTFOLIO */

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.portfolio-card {
    padding: 30px;

    display: flex;
    gap: 25px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    transition: 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 30px rgba(59,29,91,0.1);
}

.portfolio-number {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--soft-purple);
    color: var(--purple);

    border-radius: 7px;

    font-weight: 700;
}

.category {
    color: var(--purple);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.portfolio-card h2 {
    margin: 5px 0 8px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
}

.portfolio-card p:not(.category) {
    color: var(--gray);
}

.project-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--purple);

    text-decoration: none;
    font-weight: 600;
}

/* CONTACT */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.contact-left h2 {
    margin-bottom: 15px;

    color: var(--dark-purple);

    font-family: 'Playfair Display', serif;
    font-size: 35px;
}

.contact-left > p {
    margin-bottom: 30px;
    color: var(--gray);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 16px 20px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 8px;

    text-decoration: none;

    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--purple);
    transform: translateX(5px);
}

.contact-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--soft-purple);
    color: var(--purple);

    border-radius: 50%;

    font-weight: 700;
}

.contact-item small,
.contact-item strong {
    display: block;
}

.contact-item small {
    color: var(--gray);
}

.contact-item strong {
    color: var(--dark-purple);
}

.contact-right {
    display: flex;
    align-items: center;
}

.contact-card-big {
    position: relative;

    width: 100%;
    height: 470px;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: 15px 15px 0 var(--soft-purple);
}

.contact-card-big img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.overlay {
    position: absolute;

    inset: 0;

    background: linear-gradient(
        to top,
        rgba(59,29,91,0.95),
        rgba(112,64,161,0.1)
    );
}

.contact-photo-text {
    position: absolute;

    left: 35px;
    right: 35px;
    bottom: 35px;

    color: white;
}

.contact-photo-text p {
    color: #dec7ef;

    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
}

.contact-photo-text h2 {
    margin: 5px 0;

    font-family: 'Playfair Display', serif;
    font-size: 35px;
}

.contact-photo-text span {
    color: #eee4f5;
}

/* FOOTER */

footer {
    padding: 25px;

    background: var(--dark-purple);

    color: #ded0e8;

    text-align: center;

    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .navbar {
        height: 65px;
    }

    .menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        flex-direction: column;

        gap: 0;

        background: white;

        border-bottom: 1px solid var(--border);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        text-align: center;

        border-top: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: 14px;
    }

    .hero {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 60px;
    }

    .hero-text > p:not(.subtitle) {
        margin: auto;
    }

    .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .photo-frame {
        width: 280px;
        height: 340px;
    }

    .page-title h1 {
        font-size: 43px;
    }

    .about,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-photo {
        height: 400px;
    }

    .portfolio-grid,
    .skill-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        flex-direction: column;
    }

    .contact-card-big {
        height: 400px;
    }
}

@media (max-width: 450px) {

    .hero h1 {
        font-size: 58px;
    }

    .page {
        padding: 55px 20px;
    }

    .welcome {
        padding: 65px 20px;
    }

    .contact-photo-text {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }
}