/* =========================================
   GENERAL STYLES
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================
   PAGE TITLE
========================================= */

.page-title {
    width: 100%;
    height: 63px;

    background-color: #000;

    display: flex;
    align-items: center;

    padding-left: 4.5%;

    border-bottom: 1px solid #222;
}

.page-title span {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    width: 100%;
    min-height: 97px;

    background-color: #151515;

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

    padding: 0 6.5%;
}

.logo {
    font-size: 31px;
    font-weight: 300;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 5vw;
}

nav a {
    position: relative;

    color: #fff;
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    white-space: nowrap;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #a63cff;
}


/* Purple underline */

nav a.active {
    color: #a63cff;
}

nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -15px;

    height: 5px;

    background-color: #a63cff;
}


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

.outline-button {
    display: inline-block;

    color: #fff;
    text-decoration: none;

    border: 5px solid #a63cff;

    padding: 11px 22px;

    font-size: 18px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.outline-button:hover {
    background-color: #a63cff;
    color: #fff;
}


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

.hero {
    position: relative;

    width: 100%;
    height: 31vw;

    min-height: 370px;
    max-height: 600px;

    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: brightness(0.65);
}

.hero-overlay {
    position: absolute;

    top: 8%;
    left: 7%;

    z-index: 2;
}

.hero-overlay h1 {
    font-size: 3.25vw;

    min-font-size: 35px;
    max-font-size: 60px;

    line-height: 1.4;

    font-weight: 800;

    margin-bottom: 2%;
}


/* =========================================
   HOME CONTENT
========================================= */

.home-content {
    width: 100%;
    min-height: 290px;

    display: grid;

    grid-template-columns: 1.3fr 1fr 1fr 1fr;

    gap: 3.5vw;

    align-items: center;

    padding: 3vw 3%;
}

.intro h2 {
    font-size: 20px;

    margin-bottom: 25px;

    font-weight: 800;
}

.intro p {
    font-size: 18px;

    line-height: 1.4;

    max-width: 470px;
}

.featured-card {
    text-align: center;
}

.featured-card img {
    width: 100%;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    display: block;

    transition: transform 0.25s ease;
}

.featured-card img:hover {
    transform: scale(1.03);
}

.featured-card h3 {
    margin-top: 16px;

    font-size: 18px;
}


/* =========================================
   BIOGRAPHY
========================================= */

.biography {
    position: relative;

    width: 100%;

    height: 44vw;

    min-height: 635px;
    max-height: 850px;

    overflow: hidden;
}

.biography > img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.bio-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 53%;
    height: 100%;

    padding: 5% 3% 3% 5%;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.95),
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0)
    );
}

.bio-overlay h1 {
    font-size: 3.3vw;

    margin-bottom: 4vw;
}

.bio-overlay p {
    font-size: 18px;

    line-height: 1.4;

    margin-bottom: 25px;

    max-width: 510px;
}


/* =========================================
   PORTFOLIO
========================================= */

.portfolio {
    width: 100%;

    padding: 1.5vw 6% 0;
}

.portfolio > h1 {
    text-align: center;

    font-size: 3.3vw;

    margin-bottom: 12px;
}

.portfolio-grid {
    width: 100%;

    display: grid;

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

    gap: 1.4vw;

    align-items: start;
}


/* =========================================
   PORTFOLIO LAYOUT
========================================= */

.portfolio-item:nth-child(1) {
    grid-column: span 2;
}

.portfolio-item:nth-child(2) {
    grid-column: span 2;
}

.portfolio-item:nth-child(3) {
    grid-column: span 2;
}

.portfolio-item:nth-child(4) {
    grid-column: 1 / span 3;
}

.portfolio-item:nth-child(5) {
    grid-column: 4 / span 3;
}


/* =========================================
   PORTFOLIO IMAGES
========================================= */

.portfolio-item h2 {
    text-align: center;

    font-size: 19px;

    font-weight: 300;

    margin-bottom: 20px;
}

.portfolio-item img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    height: auto;

    object-fit: cover;
}

.portfolio-item:nth-child(5) img {
    object-position: center bottom;
}


/* =========================================
   PORTFOLIO DESCRIPTION
========================================= */

.portfolio-description {
    text-align: center;

    width: 100%;

    margin: 2vw auto 20px;

    font-size: 18px;

    line-height: 1.5;
}


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

.contact {
    width: 100%;

    display: grid;

    grid-template-columns: 1.1fr 0.95fr 1.25fr;

    min-height: 635px;

    overflow: hidden;
}


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

.contact-info {
    padding: 5% 3% 4% 7%;
}

.contact-info h1 {
    font-size: 3.25vw;

    margin-bottom: 4vw;
}

.contact-info p {
    font-size: 19px;

    line-height: 1.35;

    max-width: 470px;

    margin-bottom: 25px;
}


/* Email */

.contact-info .email {
    margin-top: 55px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.email a {
    color: #fff;

    text-decoration: none;
}

.email a:hover {
    color: #a63cff;
}


/* Phone */

.contact-info .phone {
    margin-top: 55px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.phone span {
    font-size: 30px;
}

.phone a {
    color: #fff;

    text-decoration: none;
}

.phone a:hover {
    color: #a63cff;
}


/* =========================================
   SOCIAL ICONS
========================================= */

.socials {
    display: flex;

    gap: 22px;

    margin-top: 10px;
}

.socials img {
    width: 40px;
    height: 40px;
}

.socials a {
    color: #a63cff;

    text-decoration: none;

    font-size: 42px;

    font-weight: bold;

    transition: transform 0.2s ease;
}

.socials a:hover {
    transform: scale(1.15);
}


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

.contact-form {
    padding: 11vw 5% 40px;
}

.contact-form form {
    display: flex;

    flex-direction: column;

    gap: 2.2vw;
}

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

    border: none;

    background-color: #484848;

    color: #fff;

    padding: 12px 15px;

    font-family: inherit;

    font-size: 18px;

    outline: none;
}

.contact-form input {
    height: 43px;
}

.contact-form textarea {
    height: 151px;

    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ddd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #a63cff;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.contact-form button {
    height: 51px;

    background-color: transparent;

    color: #a63cff;

    border: 5px solid #a63cff;

    font-size: 18px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.contact-form button:hover {
    background-color: #a63cff;

    color: #fff;
}


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

.contact-image {
    height: auto;

    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 45% center;
}


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

footer {
    width: 100%;

    min-height: 85px;

    background-color: #151515;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 4%;

    color: #ddd;
}

footer p {
    font-size: 16px;
}


/* =========================================
   LARGE SCREENS
========================================= */

@media screen and (min-width: 1600px) {

    .hero-overlay h1,
    .bio-overlay h1,
    .portfolio > h1,
    .contact-info h1 {
        font-size: 48px;
    }

    .navbar {
        padding-left: 6.5%;
        padding-right: 6.5%;
    }
}


/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 900px) {

    .navbar {
        height: auto;

        flex-direction: column;

        gap: 25px;

        padding: 25px;
    }

    nav {
        gap: 30px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .home-content {
        grid-template-columns: 1fr 1fr;

        gap: 30px;
    }

    .intro {
        grid-column: span 2;
    }

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

    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(2),
    .portfolio-item:nth-child(3),
    .portfolio-item:nth-child(4),
    .portfolio-item:nth-child(5) {
        grid-column: span 1;
    }

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

    .contact-image {
        display: none;
    }

    .hero {
        height: 400px;
    }

    .biography {
        height: auto;
        min-height: 650px;
    }

    .bio-overlay {
        width: 65%;
    }
}


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

@media screen and (max-width: 600px) {

    .page-title {
        height: 50px;

        padding-left: 20px;
    }

    .page-title span {
        font-size: 20px;
    }

    .navbar {
        padding: 25px 20px;
    }

    .logo {
        font-size: 24px;
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 14px;
    }

    nav a.active::after {
        bottom: -8px;

        height: 3px;
    }

    .hero {
        height: 400px;
    }

    .hero-overlay {
        left: 7%;
        top: 40px;
    }

    .hero-overlay h1 {
        font-size: 35px;
    }

    .home-content {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 7%;
    }

    .intro {
        grid-column: auto;
    }

    .biography {
        height: auto;

        min-height: 700px;
    }

    .bio-overlay {
        width: 100%;

        padding: 40px 7%;

        background: rgba(0, 0, 0, 0.75);
    }

    .bio-overlay h1 {
        font-size: 36px;

        margin-bottom: 30px;
    }

    .bio-overlay p {
        font-size: 16px;
    }

    .portfolio {
        padding: 20px 7% 0;
    }

    .portfolio > h1 {
        font-size: 36px;
    }

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

    .portfolio-item:nth-child(1),
    .portfolio-item:nth-child(2),
    .portfolio-item:nth-child(3),
    .portfolio-item:nth-child(4),
    .portfolio-item:nth-child(5) {
        grid-column: auto;
    }

    .portfolio-item img,
    .portfolio-item.large img {
        height: auto;
    }

    .contact {
        display: block;
    }

    .contact-info {
        padding: 40px 7%;
    }

    .contact-info h1 {
        font-size: 36px;

        margin-bottom: 35px;
    }

    .contact-form {
        padding: 20px 7% 50px;
    }

    footer {
        height: auto;

        padding: 25px 7%;

        flex-direction: column;

        gap: 15px;

        text-align: center;
    }
}