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

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F4F1E8;
    color: #0A3158;
    line-height: 1.5;
}

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


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

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

    padding: 10px 5%;

    z-index: 100;

    color: #F4F1E8;

    background: linear-gradient(
        to bottom,
        rgba(6, 20, 38, 0.95) 0%,
        rgba(10, 49, 88, 0.75) 50%,
        rgba(10, 49, 88, 0) 100%
    );

    transition: background 0.3s ease;
}


/* LOGO */

.logo {
    font-size: 18px;
    font-weight: bold;

    color: #C9A227;

    mix-blend-mode: normal;

    z-index: 102;
}

.logo img {
    width: 100px;
    height: auto;
    display: block;
}

/* DESKTOP NAV */

.navbar nav {
    display: flex;
    gap: 30px;
}

.navbar nav a {
    font-size: 14px;
    position: relative;
    color: #F4F1E8;

    transition: color 0.3s ease;
}


/* DESKTOP NAV HOVER */

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

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 100%;
    height: 1px;

    background: #C9A227;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 0.3s ease;
}

.navbar nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================
   HAMBURGER
========================= */

.menu-toggle {
    display: none;

    position: relative;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid #F4F1E8;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    z-index: 102;

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


/* HAMBURGER LINES */

.menu-toggle span {
    position: absolute;

    left: 13px;

    width: 18px;
    height: 1.5px;

    background: #F4F1E8;

    transition:
        top 0.35s ease,
        transform 0.35s ease,
        opacity 0.2s ease,
        background 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 15px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 29px;
}


/* HAMBURGER HOVER */

.menu-toggle:hover {
    background: #C9A227;
    border-color: #C9A227;

    transform: rotate(8deg);
}

.menu-toggle:hover span {
    background: #061426;
}


/* =========================
   HAMBURGER OPEN STATE
========================= */

.menu-toggle.active {
    background: #C9A227;
    border-color: #C9A227;

    transform: rotate(0deg);
}

.menu-toggle.active span {
    background: #061426;
}

.menu-toggle.active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}


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

.mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: #0A3158;

    display: flex;
    align-items: center;

    padding: 120px 8% 80px;

    z-index: 101;

    visibility: hidden;
    opacity: 0;

    clip-path: circle(0% at 30px 30px);

    transition:
        clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1),
        opacity 0.3s ease,
        visibility 0.7s;
}


/* OPEN MENU */

.mobile-menu.active {
    visibility: visible;
    opacity: 1;

    clip-path: circle(150% at 30px 30px);
}


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

.mobile-menu-content {
    width: 100%;
}

.mobile-menu-content .small-text {
    color: #C9A227;

    margin-bottom: 50px;
}


/* MENU LINKS */

.mobile-menu-content > a {
    display: flex;

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

    width: 100%;

    padding: 22px 0;

    border-top: 1px solid rgba(244, 241, 232, 0.35);

    color: #F4F1E8;

    font-size: clamp(45px, 10vw, 90px);

    line-height: 1;

    letter-spacing: -3px;

    overflow: hidden;

    transform: translateY(40px);
    opacity: 0;

    transition:
        transform 0.6s ease,
        opacity 0.6s ease,
        color 0.3s ease,
        padding-left 0.4s ease;
}

.mobile-menu-content > a:last-child {
    border-bottom: 1px solid rgba(244, 241, 232, 0.35);
}


/* NUMBER */

.mobile-menu-content > a small {
    font-size: 12px;

    letter-spacing: 2px;

    color: #C9A227;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* MENU HOVER */

.mobile-menu-content > a:hover {
    color: #C9A227;

    padding-left: 20px;
}

.mobile-menu-content > a:hover small {
    transform: translateX(-10px);
}


/* MENU LINK ANIMATION */

.mobile-menu.active .mobile-menu-content > a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-menu-content > a:nth-of-type(1) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-content > a:nth-of-type(2) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-content > a:nth-of-type(3) {
    transition-delay: 0.35s;
}


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

/* DYNAMIC BLUE BACKGROUND */

.hero {
    min-height: 100vh;
    padding: 140px 8% 80px;

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

    background: linear-gradient(
        -45deg,
        #061426,
        #164E7A,
        #0A3158
    );

    background-size: 400% 400%;
    animation: blueGradient 15s ease infinite;
    color: #F4F1E8;
}


/* DYNAMIC BLUE BACKGROUND */

@keyframes blueGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}


.small-text {
    font-size: 12px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 30px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero h1 {
    font-size: clamp(60px, 7vw, 110px);
    line-height: 0.9;
    letter-spacing: -6px;
    max-width: none;
}

.hero-portrait {
    flex: 0 0 35%;
    max-width: 400px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
}

.hero-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero h1 span {
    color: #C9A227;
}


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

    font-size: 18px;

    margin-top: 15px;
    margin-left: 10px;
}


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

.btn-two {
    position: relative;

    display: inline-block;

    padding: 15px 25px;

    border: 1px solid #0A3158;

    border-radius: 50px;

    overflow: hidden;

    transition: color 0.3s ease;

    margin-top: 15px;
    margin-left: 10px;
}


.btn-two span {
    position: relative;

    z-index: 2;

    transition: letter-spacing 0.3s ease;
}


.btn-two::before {
    content: "";

    position: absolute;

    inset: 0;

    background: #0A3158;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;

    z-index: 1;
}


.btn-two:hover {
    color: #F4F1E8;
    font-weight: 50px;
    border: 1px solid #0A3158;
}


.btn-two:hover::before {
    transform: scaleX(1);
}


.btn-two:hover span {
    letter-spacing: 1px;
}


/* =========================
   MAIN BUTTON ANIMATION
========================= */

.btn-one {
    position: relative;

    display: inline-block;

    padding: 15px 25px;

    border: 1px solid #C9A227;
    border-radius: 50px;

    overflow: hidden;

    color: #C9A227;

    transition: color 0.3s ease;

    margin-top: 15px;
    margin-left: 10px;
}


.btn-four {
    position: relative;

    display: inline-block;

    padding: 15px 25px;

    border: 1px solid #C9A227;
    border-radius: 50px;

    overflow: hidden;

    color: #C9A227;

    transition: color 0.3s ease;

    margin-top: 15px;
    margin-left: 10px;
}

.btn-one span {
    position: relative;

    z-index: 2;

    transition: letter-spacing 0.3s ease;
}


.btn-one::before {
    content: "";

    position: absolute;

    inset: 0;

    background: #C9A227;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.35s ease;

    z-index: 1;
}


.btn-one:hover {
    color: #061426;

    border-color: #C9A227;
}


.btn-one:hover::before {
    transform: scaleX(1);
}


.btn-one:hover span {
    letter-spacing: 1px;
}


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

.work {
    padding: 150px 5%;

    display: grid;

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

    column-gap: 40px;
    width: 100%;
    min-width: 0;
}

.project {
    width: 100%;
    min-width: 0;
}

.project-image {
    width: 100%;
    max-width: 100%;
}

.section-header {
    grid-column: 1 / -1;

    margin-bottom: 100px;
}


.section-header h2 {
    font-size: clamp(45px, 7vw, 100px);

    line-height: 0.95;

    letter-spacing: -4px;
}


/* =========================
   PROJECTS
========================= */

.project {
    margin-bottom: 100px;
}


/* PROJECT IMAGES — BLACK & WHITE UNTIL HOVER */

.work .project .project-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ddd;
}

.work .project .project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: grayscale(100%) !important;
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.6s ease;
}

/* COLOUR ONLY WHEN HOVERING DIRECTLY OVER THE IMAGE */

.work .project .project-image:hover img {
    filter: grayscale(0%) !important;
    transform: scale(1.05);
}


.project-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 25px;
    border-top: 1px solid #0A3158;
    margin-top: 20px;
}

.project-info > div {
    min-width: 0;
}


.project-info h3 {
    font-size: 40px;

    letter-spacing: -2px;
}


.project-number {
    font-size: 12px;

    margin-bottom: 10px;
}


.project-info p {
    max-width: 450px;
}


.project-info span {
    display: block;

    margin-top: 20px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

/* =========================
   CLICKABLE PROJECT LINKS
========================= */

/* Make the image link fill the project image area */

.project-image {
    display: block;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    background: #ddd;
}

/* Keep the image filling its container */

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Make project titles clickable without changing their appearance */

.project-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Gold hover effect on project titles */

.project-info h3 a:hover {
    color: #C9A227;
}


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

.about {
    padding: 150px 8%;

    background: #0A3158;

    color: #F4F1E8;
}


.about h2 {
    max-width: 1100px;

    font-size: clamp(45px, 7vw, 100px);

    line-height: 1;

    letter-spacing: -4px;
}


.about-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    margin-top: 100px;
}


.about-content p {
    max-width: 450px;

    font-size: 18px;
}


/* =========================
   SKILLS
========================= */

.skills {
    padding: 150px 8%;
}


.skill-list {
    margin-top: 80px;
}


.skill-list > div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);

    padding: 30px 0;

    border-top: 1px solid #0A3158;
}


.skill-list span {
    font-size: 12px;
}


.skill-list h3 {
    font-size: 25px;
}


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

.contact {
    min-height: 80vh;

    padding: 150px 8%;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.contact h2 {
    font-size: clamp(60px, 10vw, 150px);

    line-height: 1;

    letter-spacing: -6px;
}


.email {
    margin-top: 60px;

    width: fit-content;

    font-size: 25px;

    border-bottom: 2px solid #0A3158;
}


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

footer {
    padding: 30px 5%;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid #0A3158;

    font-size: 12px;
}


footer div {
    display: flex;

    gap: 20px;
}


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

@media (max-width: 900px) {

    /* Navigation */

    .navbar {
        padding: 15px 6%;

        justify-content: space-between;
    }


    .menu-toggle {
        display: block;

        order: 1;
    }


    .logo {
        order: 2;

        margin-left: auto;

        text-align: right;
    }


    .navbar nav {
        display: none;
    }


    /* Hero */

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }


    .hero h1 {
        letter-spacing: -4px;
    }


    /* Work */

    .work {
        padding-left: 6%;
        padding-right: 6%;

        grid-template-columns: 1fr;
    }


    .project-image {
        height: 55vh;
    }


    /* About */

    .about {
        padding-left: 6%;
        padding-right: 6%;
    }


    /* Skills */

    .skills {
        padding-left: 6%;
        padding-right: 6%;
    }


    /* Contact */

    .contact {
        padding-left: 6%;
        padding-right: 6%;
    }

}


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

@media (max-width: 700px) {

    /* Navigation */

    .navbar {
        padding: 12px 6%;
    }


    /* Hero */

    .hero {
        min-height: 100vh;
        padding: 130px 6% 60px;

        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 35px;
    }


    .small-text {
        font-size: 10px;

        letter-spacing: 1.5px;

        margin-bottom: 25px;
    }


    .hero h1 {
        font-size: clamp(50px, 13vw, 80px);

        letter-spacing: -3px;

        line-height: 0.9;
    }


    .hero-description {
        max-width: 100%;

        font-size: 16px;

        margin-top: 35px;
    }


    .hero-portrait {
        flex: none;
        width: 70%;
        max-width: 280px;
        margin-left: auto;
    }

    /* Work */

    .work {
        padding: 100px 6%;

        grid-template-columns: 1fr;
    }


    .section-header {
        margin-bottom: 70px;
    }


    .section-header h2 {
        font-size: clamp(40px, 11vw, 65px);

        letter-spacing: -3px;
    }


    /* Projects */

    .project {
        margin-bottom: 100px;
    }


    .project-image {
        height: auto;

        aspect-ratio: 16 / 10;
    }


    .project-info {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .project-info h3 {
        font-size: clamp(30px, 9vw, 45px);

        letter-spacing: -1.5px;
    }


    .project-info p {
        font-size: 15px;
    }


    /* About */

    .about {
        padding: 100px 6%;
    }


    .about h2 {
        font-size: clamp(45px, 12vw, 70px);

        letter-spacing: -3px;
    }


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

        gap: 30px;

        margin-top: 60px;
    }


    .about-content p {
        font-size: 16px;
    }


    /* Skills */

    .skills {
        padding: 100px 6%;
    }


    .skill-list {
        margin-top: 60px;
    }


    .skill-list > div {
        grid-template-columns: 40px 1fr;

        gap: 15px;

        padding: 25px 0;
    }


    .skill-list h3 {
        font-size: 25px;
    }


    .skill-list p {
        grid-column: 2;

        font-size: 14px;
    }


    /* Contact */

    .contact {
        min-height: 70vh;

        padding: 100px 6%;
    }


    .contact h2 {
        font-size: clamp(55px, 14vw, 90px);

        letter-spacing: -4px;
    }


    .email {
        font-size: 20px;
    }


    /* Footer */

    footer {
        padding: 30px 6%;

        flex-direction: column;

        gap: 20px;
    }

}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 400px) {

    .navbar {
        padding: 10px 6%;
    }


    .menu-toggle {
        width: 42px;
        height: 42px;
    }


    .menu-toggle span {
        left: 11px;
    }


    .menu-toggle span:nth-child(1) {
        top: 13px;
    }


    .menu-toggle span:nth-child(2) {
        top: 20px;
    }


    .menu-toggle span:nth-child(3) {
        top: 27px;
    }


    .menu-toggle.active span:nth-child(1),
    .menu-toggle.active span:nth-child(3) {
        top: 20px;
    }


    .hero {
        padding-top: 120px;
    }


    .hero h1 {
        font-size: 48px;

        letter-spacing: -3px;
    }


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


    .project-image {
        aspect-ratio: 4 / 3;
    }


    .project-info h3 {
        font-size: 30px;
    }


    .about h2 {
        font-size: 45px;
    }


    .skill-list > div {
        grid-template-columns: 35px 1fr;
    }


    .skill-list h3 {
        font-size: 22px;
    }


    .skill-list p {
        font-size: 13px;
    }


    .contact h2 {
        font-size: 50px;
    }

}

    /* PREVENT HORIZONTAL SCROLLING */

    html,
    body {
        max-width: 100%;
        overflow-x: clip;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }