/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Overpass', sans-serif;
    line-height: 1.6;
    color: var(--neutral-4);
    background-color: var(--white);
    min-width: 350px
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Design System Variables */
:root {
    /* Breakpoints */
    --mobile: 480px;
    /* --tablet: 768px; */
    --laptop: 1024px;
    --desktop: 1200px;
    --widescreen: 1440px; 

    /* Colors */
    --neutral-4: #212536;
    --neutral-3: #5A5D71;
    --neutral-0: #FAF8FF;
    --neutral-1: #EFEFFF;
    --peach: #FFCBC7;
    --indigo: #3666B9;
    --white: #ffffff;
    --surface-variant: #44483e;

    /* Typography */
    --font-family: 'Overpass', sans-serif;
        
    /* Font Sizes */
    --text-72: 72px;
    --text-48: 48px;
    --text-36: 36px;
    --text-24: 24px;
    --text-18: 18px;
    --text-16: 16px;

    /* Font Weights */
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;    
}

nav {
    display: none;
}

#hero {
    margin: 48px 16px;
    background: linear-gradient(135deg, var(--neutral-0) 0%, #f8f6ff 50%, var(--neutral-1) 100%);
    border-radius: 24px;
    padding: 24px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#hero .profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 24px;
}

#hero h1 {
    font-size: 36px;
    font-weight: var(--weight-bold);
    color: var(--neutral-4);
    line-height: 1;
}

#hero .subtitle {
    font-size: 28px;
    font-weight: var(--weight-medium);
    color: var(--neutral-3);
    line-height: 1;
    margin-top: 8px;
}

#hero .divider {
    width: 67px;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo) 0%, var(--peach) 100%);
    border-radius: 2px;
    position: relative;
    margin-top: 32px;
    margin-bottom: 32px;
}

#hero .tagline {
    font-size: 18px;
    font-weight: var(--weight-regular);
    color: var(--neutral-3);
    line-height: 1;
}

#hero .links {
    margin-top: 32px;
    display: flex;
    flex-direction: row;
    gap: 16px;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: var(--weight-medium);
    font-size: var(--text-16);
    line-height: 1;
    color: var(--indigo);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--peach);
    background-color: var(--white);
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--peach);
    color: var(--neutral-4);
}

.btn-icon {
    display: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover .btn-icon {
    transform: scale(1.1);
    stroke: var(--indigo);
}

.btn-primary:hover {
    background-color: #ffb8b3;
}

.btn-primary:hover .btn-icon {
    stroke: var(--neutral-4);
}

#about {
    display: flex;
    flex-direction: column-reverse;
    margin: 0 16px;
    gap: 24px;
}

#about h2 {
    font-size: 24px;
    margin: 16px 0 8px 0;
}

#about p {
    font-size: 16px;
    font-weight: var(--weight-regular);
    color: var(--neutral-3);
    line-height: 1.5;
    margin-bottom: 16px;
}

#about img {
    height: 300px;
    object-fit: cover;
    border-radius: 24px;
    object-position: 50% 47%;
}

#about .text {
    margin-bottom: 24px;
}

#about .btn {
    border: none;
    padding: 0;
    color: var(--indigo);
}

#portfolio {
    margin-left: 16px;
    margin-right: 16px;
}

#portfolio h2 {
    font-size: 36px;
    width: 100%;
    text-align: center;
    margin: 24px 0 16px;
}

#portfolio .project {
    margin-bottom: 96px;
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
}

#portfolio .project img {
    min-height: 300px;
    max-height: 600px;
    object-fit: contain;
    /* max-height: 400px; */
    /* object-fit: cover; */
    border-radius: 24px;
    object-position: 50% 25%;
}

.highlight {
    color: var(--indigo);
}


#portfolio .project .text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#portfolio .project .text h3 {
    font-size: 24px;
    font-weight: var(--weight-medium);
    line-height: 1;
    color: var(--indigo);
    margin-top: 16px;
}

#portfolio .project .text .subtitle {
    font-size: 16px;
    font-weight: var(--weight-medium);
    line-height: 1;
    margin-top: 8px;
    color: var(--neutral-3);
}

#portfolio .project .text p {
    font-size: 16px;
    font-weight: var(--weight-regular);
    color: var(--neutral-3);
    line-height: 1.5;
}

footer {
    width: 100%;
    background-color: var(--neutral-1);
    padding: 48px 0;
    text-align: center;
}

footer h2 {
    font-size: 36px;
    font-weight: var(--weight-medium);
    line-height: 1;
    color: var(--neutral-4);
}

footer p {
    font-size: 24px;
    font-weight: var(--weight-regular);
    line-height: 1.3;
    color: var(--neutral-4);
    margin-top: 16px;
    padding: 0 32px;
}

footer .btn {
    border: none;
    padding: 0;
    background: none;
    font-size: 24px;
    font-weight: var(--weight-regular);
}

footer .copyright {
    margin: 32px 0 16px 0;
    font-size: 16px;
    font-weight: var(--weight-regular);
    line-height: 1;
    color: var(--neutral-3);
}

footer .social-link {
    color: var(--indigo);
}

nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 16px 16px 0 16px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

nav.visible {
    transform: translateY(0);
}

nav .logo {
    background-image: url(assets/profile-image.webp);
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 16px;
    font-weight: var(--weight-semibold);
    color: var(--neutral-4);
    padding-left: 40px;
    margin-bottom: 16px;
    line-height: 2;
}

nav .links {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-bottom: 16px;
}

nav .links.visible {
    display: flex;
}

nav .links a {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--neutral-1);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: var(--weight-medium);
    color: var(--neutral-3);
    line-height: 1;
    text-decoration: none;
}

nav .links a:nth-child(1) {
    border: none;
}

nav .links a.nested-link {
    padding-left: 60px;
    font-size: 15px;
    color: var(--neutral-3);
    opacity: 0.8;
}

nav .links a.nested-link::before {
    content: "– ";
    margin-right: 8px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--neutral-3);
    transition: all 0.3s ease;
    margin-right: 8px;
}

nav .links a:hover .nav-icon {
    stroke: var(--indigo);
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--neutral-4);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu:hover .hamburger-line {
    background-color: var(--indigo);
}

/* Hamburger to X transformation */
.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translate(0, 6px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translate(0, -6px) rotate(-45deg);
}

@media (min-width: 480px) {

    nav .logo {
        font-size: 20px;
        padding-left: 54px;
    }

    nav .links a {
        font-size: 18px;
    }

    nav .links a.nested-link {
        font-size: 17px;
    }

    #hero { 
        margin-left: 32px;
        margin-right: 32px;
     }

    #hero .profile-image {
        width: 180px;
        height: 180px;
    }

    #hero h1 {
        font-size: 48px;
    }

    #hero .subtitle {
        font-size: 36px;
    }

    #hero .tagline {
        font-size: 20px;
    }

    .btn-icon {
        display: block;
    }

    #about { 
        margin-left: 32px;
        margin-right: 32px;
    }
    
    #portfolio {
        margin-left: 32px;
        margin-right: 32px;
    }
}

@media (min-width: 866px) {
    #hero, #about, #portfolio {
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
    }

    nav .container {
        max-width: 930px;
        margin: 0 auto;
    }

    nav .hamburger-menu {
        display: none;
    }

    nav .logo {
        flex-grow: 5;
    }

    nav .links {
        display: flex;
        justify-content: space-between;
        width: auto;
        flex-grow: 1;
        flex-direction: row;
        margin-top: -16px;
        margin-bottom: 0px;
        text-wrap: nowrap;
    }

    nav .links a.case-studies {
        display: none;
    }

    nav .links a {
        border: none;
        font-size: 16px;
        padding: 16px 20px;
    }

    nav .nav-icon {
        display: none;
    }

    nav .links a.btn .nav-icon {
        display: block;
    }

    nav .links a.nested-link {
        display: none;
    }
}   

@media (min-width: 1024px) {
    #hero, #about, #portfolio {
        margin-left: 64px;
        margin-right: 64px;
        max-width: none;
    }

    nav .container {
        max-width: none;
    }

    nav {
        padding-left: 48px;
        padding-right: 48px;
    }

    /* #hero .profile-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
    } */

    #about {
        flex-direction: row;
        gap: 64px;
    }

    #about img {
        min-width: 400px;
    }

    #portfolio .project {
        flex-direction: row;
        gap: 64px;
    }

    /* #portfolio .project .text {
        flex-grow: 1;
    } */

    #portfolio .project img {
        max-width: 550px;
    }

    #portfolio .project .btn {
        align-self: flex-start;
    }
}

@media (min-width: 1200px) {
    #hero, #about, #portfolio {
        margin-left: 96px;
        margin-right: 96px;
        max-width: none;
    }

    nav {
        padding-left: 64px;
        padding-right: 64px;
    }

    #hero {
        padding: 64px 32px;
        margin-bottom: 80px;
    }

    #hero .profile-image {
        width: 200px;
        height: 200px;
    }

    #portfolio .project img {
        max-width: 650px;
    }
}

@media (min-width: 1440px) {
    #hero, #about, #portfolio {
        margin-left: auto;
        margin-right: auto;
        max-width: 1248px;
    }

    nav .container {
        max-width: 1348px;
    }

    #hero {
        padding: 64px 32px;
        margin-bottom: 96px;
    }

    #hero .profile-image {
        width: 220px;
        height: 220px;
    }

    #hero h1 {
        font-size: 84px;
    }

    #hero .subtitle {
        font-size: 56px;
    }

    #hero .tagline {
        font-size: 28px;
    }

    #hero .btn {
        font-size: 20px;
    }

    #about h2 {
        font-size: 42px;
    }

    #about p {
        font-size: 18px;
    }

    #about .btn {
        font-size: 18px;
    }

    #portfolio h2 {
        font-size: 56px;
        margin-top: 48px;
    }

    #portfolio .project .text h3 {
        font-size: 42px;
    }

    #portfolio .project .text .subtitle {
        font-size: 18px;
    }

    #portfolio .project .text p {
        font-size: 18px;
    }

    #portfolio .project .btn {
        font-size: 18px;
    }

    footer h2 {
        font-size: 42px;
    }

    footer p {
        font-size: 18px;
    }
}

/* --- Case Study --- */

.case-study #hero h1 {
    font-size: 24px;
    font-weight: var(--weight-semibold);
    color: var(--neutral-4);
    line-height: 1;
}

.case-study #hero h1 .subtitle {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.case-study #hero .tagline {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: var(--weight-medium);
    line-height: 1.4;
}

.case-study #hero .subtitle {
    font-size: 24px;
}

.case-study #about {
    flex-direction: column;
    margin-bottom: 48px;
}

.case-study #about .text {
    margin-bottom: 0px;
}

.case-study #about .text p {
    margin-bottom: 0px;
}

.case-study #about .card {
    background-color: var(--neutral-1);
    padding: 16px;
    border-radius: 24px;
}

.case-study #portfolio h2 {
    font-size: 24px;
    margin: 16px 0 8px 0;
    text-align: left;
    line-height: 1.2;
}

.case-study #portfolio .project {
    flex-direction: column;
    margin-bottom: 36px;
}

.case-study #portfolio .project .text {
    gap: 8px;
}

.case-study #portfolio .project .text p {
    margin-bottom: 0px;
}

.case-study #portfolio h2 {
    margin-bottom: 0;
}

#about ul, #portfolio ul {
    margin-left: 16px;
    color: var(--neutral-3);
}

@media (min-width: 480px) {
    .case-study #hero h1 {
        font-size: 26px;
    }

    .case-study #hero h1.subtitle {
        font-size: 20px;
    }

    .case-study #about .card {
        padding: 32px;
    }
    .case-study #about .card h3 {
        margin-bottom: 16px;
    }
    .case-study #about .card li {
        margin-bottom: 8px;
    }
}   

@media (min-width: 1024px) {
    .case-study #hero h1 {
        font-size: 36px;
    }

    .case-study #hero h1.subtitle {
        font-size: 32px;
    }
    .case-study #hero .tagline {
        max-width: 70%;
    }

    .case-study #about {
        flex-direction: row;
    }

    .case-study #about .card {
        min-width: 400px;
    }

    .case-study #portfolio .project {
        flex-direction: row;
        margin-bottom: 64px;
    }
}

@media (min-width: 1200px) {
    .case-study #hero h1 {
        font-size: 48px;
    }

    .case-study #hero h1.subtitle {
        font-size: 40px;
    }

    .case-study #hero .tagline {
        max-width: 60%;
    }
}