* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --maroon: #6e172b;
    --maroon-dark: #430b1b;
    --maroon-light: #8f2942;
    --cream: #fff8f3;
    --cream-dark: #f4e6df;
    --white: #ffffff;
    --text: #2b1b1f;
    --gray: #806f73;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   NAVBAR
========================= */

header {
    height: 85px;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 248, 243, .94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(110, 23, 43, .08);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--maroon-dark);
}

.logo span {
    color: var(--maroon-light);
}

nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    color: #624b50;
    position: relative;
    transition: .3s;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--maroon);
    transition: .3s;
}

nav a:hover,
nav a.active {
    color: var(--maroon);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* =========================
   HOME
========================= */

.hero {
    min-height: calc(100vh - 85px);
    padding: 70px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.welcome,
.section-heading p,
.small-title {
    color: var(--maroon-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(55px, 7vw, 90px);
    line-height: 1.05;
    margin: 18px 0;
    color: var(--maroon-dark);
}

.hero h1 span {
    color: var(--maroon-light);
    font-style: italic;
}

.hero h2 {
    font-size: 21px;
    font-weight: 500;
    color: #654a50;
    margin-bottom: 22px;
}

.description {
    color: var(--gray);
    line-height: 1.9;
    font-size: 14px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn,
.btn-outline {
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.btn {
    background: var(--maroon);
    color: white;
}

.btn:hover {
    background: var(--maroon-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--maroon);
    color: var(--maroon);
}

.btn-outline:hover {
    background: var(--maroon);
    color: white;
}

.social-mini {
    margin-top: 55px;
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #947e83;
    letter-spacing: 1px;
}

/* =========================
   HERO PHOTO
========================= */

.hero-photo {
    width: 410px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.photo-bg {
    position: absolute;
    width: 360px;
    height: 430px;
    background: var(--maroon);
    border-radius: 180px 180px 10px 10px;
    transform: rotate(5deg);
}

.hero-photo img {
    position: relative;
    width: 340px;
    height: 430px;
    object-fit: cover;
    border-radius: 170px 170px 8px 8px;
    border: 8px solid var(--cream);
    box-shadow: 0 25px 60px rgba(67, 11, 27, .25);
}

.floating-card {
    position: absolute;
    right: -20px;
    bottom: 50px;
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(67, 11, 27, .15);
    border-left: 3px solid var(--maroon);
}

.floating-card > span {
    font-size: 25px;
    color: var(--maroon);
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 13px;
}

.floating-card small {
    color: #99858a;
    font-size: 10px;
}

/* DECORATION */

.circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 250px;
    height: 250px;
    background: rgba(110, 23, 43, .05);
    right: -80px;
    top: 150px;
}

.circle-two {
    width: 120px;
    height: 120px;
    background: rgba(110, 23, 43, .07);
    left: -50px;
    bottom: 50px;
}

/* =========================
   GENERAL PAGE
========================= */

.page-section {
    padding: 80px 10%;
    min-height: calc(100vh - 85px);
}

.section-heading {
    text-align: center;
    margin-bottom: 65px;
}

.section-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: var(--maroon-dark);
    margin-top: 8px;
}

.section-heading h1 span {
    color: var(--maroon-light);
    font-style: italic;
}

/* =========================
   ABOUT
========================= */

.about-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 20px 20px 0 var(--maroon);
}

.number {
    position: absolute;
    left: -25px;
    top: -25px;
    width: 65px;
    height: 65px;
    background: var(--maroon-dark);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--maroon-dark);
    line-height: 1.3;
    margin: 15px 0 25px;
}

.about-text h2 span {
    color: var(--maroon-light);
    font-style: italic;
}

.about-text > p:not(.small-title) {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.about-info div {
    padding: 16px;
    background: white;
    border: 1px solid var(--cream-dark);
}

.about-info small,
.about-info strong {
    display: block;
}

.about-info small {
    color: #a28d92;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-info strong {
    color: var(--maroon);
    font-size: 13px;
    margin-top: 4px;
}

.skills-section {
    margin-top: 90px;
}

.skills-section > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 35px;
    color: var(--maroon-dark);
    margin-bottom: 25px;
}

.skills-section > h2 span {
    color: var(--maroon-light);
    font-style: italic;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    background: white;
    border: 1px solid var(--cream-dark);
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(67, 11, 27, .1);
}

.skill-icon {
    color: var(--maroon);
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    margin-bottom: 20px;
}

.skill-card h3 {
    color: var(--maroon-dark);
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================
   PORTFOLIO
========================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.portfolio-card {
    background: white;
    border: 1px solid var(--cream-dark);
    transition: .4s;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(67, 11, 27, .12);
}

.portfolio-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-image span {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maroon);
    color: white;
    padding: 8px 12px;
    font-family: 'Playfair Display', serif;
    font-size: 12px;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content p {
    color: var(--maroon-light);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
}

.portfolio-content h2 {
    color: var(--maroon-dark);
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    margin: 7px 0;
}

.portfolio-content > span {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================
   CONTACT
========================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    color: var(--maroon-dark);
    line-height: 1.3;
    margin: 15px 0;
}

.contact-left h2 span {
    color: var(--maroon-light);
    font-style: italic;
}

.contact-left > p:not(.small-title) {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    background: white;
    border: 1px solid var(--cream-dark);
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: .3s;
}

.contact-item:hover {
    transform: translateX(7px);
    border-color: var(--maroon);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: var(--cream-dark);
    color: var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.contact-item small,
.contact-item strong {
    display: block;
}

.contact-item small {
    color: #9a858a;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item strong {
    color: var(--maroon-dark);
    font-size: 12px;
    margin-top: 3px;
}

.contact-item > span:last-child {
    margin-left: auto;
    color: var(--maroon);
}

/* CONTACT FORM */

.contact-box {
    background: var(--maroon-dark);
    padding: 40px;
    color: white;
    box-shadow: 20px 20px 0 var(--cream-dark);
}

.contact-box-top {
    margin-bottom: 25px;
}

.contact-box-top > span {
    color: #d69aaa;
    font-size: 25px;
}

.contact-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin: 8px 0;
}

.contact-box p {
    color: #d5b9c0;
    font-size: 12px;
}

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #7b3b4c;
    background: #541323;
    color: white;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    resize: none;
}

form input::placeholder,
form textarea::placeholder {
    color: #b9969f;
}

form input:focus,
form textarea:focus {
    border-color: #d69aaa;
}

form button {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--maroon-dark);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

form button:hover {
    background: #ecd7dd;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .hero {
        padding: 60px 7%;
        gap: 30px;
    }

    .hero-photo {
        width: 340px;
    }

    .about-wrapper {
        grid-template-columns: 300px 1fr;
        gap: 50px;
    }

    .portfolio-grid,
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 750px) {

    header {
        height: auto;
        padding: 20px 7%;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }

    .hero-photo {
        height: 400px;
    }

    .hero-photo img {
        width: 280px;
        height: 360px;
    }

    .photo-bg {
        width: 300px;
        height: 370px;
    }

    .hero-buttons,
    .social-mini {
        justify-content: center;
    }

    .page-section {
        padding: 60px 7%;
    }

    .section-heading h1 {
        font-size: 42px;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 330px;
        margin: auto;
    }

    .portfolio-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        box-shadow: 10px 10px 0 var(--cream-dark);
    }
}

@media (max-width: 450px) {

    nav a {
        font-size: 11px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-photo {
        transform: scale(.85);
        margin-bottom: -40px;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 25px;
    }
}