:root {
    --font-main: 'Jost', sans-serif;
    --primary-colour: #dd0d5e;
    --secondary-colour: #055854;
    --accent-colour: #ed9fbd;
    --detail-colour: #e2fcef;
    --dark-colour: #241715;
}

/* ----- GENERAL ----- */

* {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-main);
    scroll-behavior: smooth;
}

.container {
    max-width: 1300px;
    padding-left: 3rem;
    padding-right: 3rem;
}

.centred {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 3rem auto;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-colour);
    padding-bottom: 30px;
}

h3 {
    font-size: 2rem;
}

h4 {
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--accent-colour);
}

p {
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--primary-colour);
}

/* buttons */
.btn-group {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-colour);
    color: #fff;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-colour);
    border: 2px solid var(--primary-colour);
}

.btn-tertiary {
    background: var(--secondary-colour);
    color: #fff;
}

.btn-quarternary {
    background: transparent;
    color: var(--secondary-colour);
    border: 2px solid var(--secondary-colour);
}

#btn-submit-connect {
    background: var(--accent-colour);
    color: #fff;
}



/* trying different buttons */

.btn-glow {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
    z-index: 0;
}

/* corner brackets */
.btn-glow::before,
.btn-glow::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    transition: all 0.4s ease;
    border-radius: 4px;
    z-index: 1;
}

.btn-glow::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.btn-glow::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* trace on hover */
.btn-glow span {
    position: absolute;
    background: currentColor;
    display: block;
    transition: all 0.4s linear;
    z-index: 0;
}

.btn-glow span:nth-child(1) {
    height: 2px; width: 0; top: 0; left: 0;
}

.btn-glow:hover span:nth-child(1) {
    width: 100%;
    transition-delay: 0s;
}

.btn-glow span:nth-child(2) {
    width: 2px; height: 0; top: 0; right: 0;
}

.btn-glow:hover span:nth-child(2) {
    height: 100%;
    transition-delay: 0.15s;
}

.btn-glow span:nth-child(3) {
    height: 2px; width: 0; bottom: 0; right: 0;
}

.btn-glow:hover span:nth-child(3) {
    width: 100%;
    transition-delay: 0.3s;
}

.btn-glow span:nth-child(4) {
    width: 2px; height: 0; bottom: 0; left: 0;
}

.btn-glow:hover span:nth-child(4) {
    height: 100%;
    transition-delay: 0.45s;
}

 
/* trace on coloured btns */
.btn-trace span {
    position: absolute;
    background: #fff;
    display: block;
    transition: all 0.4s linear;
    z-index: 1;
}

/* top */
.btn-trace span:nth-child(1) {
    height: 2px; width: 0; top: 0; left: 0;
}

.btn-trace:hover span:nth-child(1) {
    width: 100%;
    transition-delay: 0s;
}

/* right */
.btn-trace span:nth-child(2) {
    width: 2px; height: 0; top: 0; right: 0;
}

.btn-trace:hover span:nth-child(2) {
    height: 100%;
    transition-delay: 0.15s;
}

/* bottom */
.btn-trace span:nth-child(3) {
    height: 2px; width: 0; bottom: 0; right: 0;
}

.btn-trace:hover span:nth-child(3) {
    width: 100%;
    transition-delay: 0.3s;
}

/* left */
.btn-trace span:nth-child(4) {
    width: 2px; height: 0; bottom: 0; left: 0;
}

.btn-trace:hover span:nth-child(4) {
    height: 100%;
    transition-delay: 0.45s;
}
  




/* ----- NAV BAR ----- */

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-desktop {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 1000;
    overflow: visible;
}

.nav-coloured {
    background-image: linear-gradient(var(--secondary-colour), #1d787490, transparent);
    opacity: 1;
}

.nav-coloured a {
    color: var(--detail-colour);
}

.nav-coloured .subnav-box {
    background-color: #05585497;
}

.nav-transparent {
    background-color: transparent;
}

.nav-desktop.nav-transparent a {
    color: var(--primary-colour);
}

.nav-left {
    flex: 1;
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    font-size: 1.2rem;
    /* font-weight: 500; */
}

.nav-bar li {
    position: relative;
}

.subnav {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    left: -100%;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.subnav-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
    padding: 1rem 3rem;
    background-color: #dd0d5e20;
    align-items: flex-start;
    text-align: left;
}

.subnav-box a {
    white-space: nowrap;
    display: block;
}

.subnav-box::before,
.subnav-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-colour);
    border-radius: 4px;
    z-index: 2;
}

.subnav-box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.subnav-box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.has-subnav:hover .subnav {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.nav-bar a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    transition: color 0.3;
}

.nav-bar a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-colour);
    transition: width 0.3s, left 0.3s ease;
}

.nav-bar a:hover::after,
.nav-bar a:focus::after {
    left: 0;
    width: 100%;
}




/* ----- BANNER ----- */

.banner-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin: 0.5rem;
}

.banner-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 20%;
    /* transform: translateX(30%); */
    background: url('../images/gradient-banner.png') center left / 150% auto no-repeat;
    opacity: 0.8;
    z-index: 0;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    min-height: 80vh;
    /* background-color: grey; */
}

.banner-left {
    flex: 1;
    max-width: 50%;
    margin-left: 3rem;
}

.banner-left .h1-banner {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-colour);
}

.kovski { 
    color: var(--accent-colour);
}



/* right side image */
.banner-right {
    flex: 1;
    text-align: right;
    position: relative;
    overflow: visible;
    /* perspective: 800px; */
    margin-right: 4rem;
}

.banner-right img {
    max-width: 70%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(10px 30px 40px rgba(0, 0, 0, 0.5));
}



.banner-right .float {
    position: relative;
    z-index: 1;
}

/* float animation */
@keyframes float {
    0%,100% { transform: translateY(0) translateZ(0) }
    50%      { transform: translateY(-12px) translateZ(0px) }
}

.float {
    animation: float 4s ease-in-out infinite;
    will-change: transform;
    transform-style: preserve-3d;
}



/* ----- LET'S CREATE ----- */

.main-phrase {
    margin-top: 1rem;
    margin-left: 3rem;
    letter-spacing: 10px;
}

#changing-word {
    display: inline-block;
    transition: opacity 0.5s ease;
}

#changing-word.fade-out {
    opacity: 0;
}

/* ----- PROFILE ----- */

.profile {
    display: flex;
    align-items: center;
    gap: 10rem;
    padding: 2rem 7rem 7rem 7rem;
}

.profile-left img {
    border-radius: 0.5rem;
    /* box-shadow: #1d7874 -5px 5px 4rem; */
    border: #fff 2px solid;
}

.profile-right p {
    margin: 2rem 0;
}

.profile-right h3 {
    color: var(--secondary-colour);
}

.myself-home {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.myself-home::before,
.myself-home::after {
    content: '';
    position: absolute;
    margin: -0.5rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-colour);
    border-radius: 4px;
    z-index: 2;
}

.myself-home::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.myself-home::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}


/* video */

/* position context for the hover area */
.video-hover-wrapper {
    position: relative;
    display: inline-block;
}

/* initial state: hidden and sized */
.squirrel-video {
    position: absolute;
    bottom: 100%;             /* sit directly above the <h3> */
    left: 50%;
    transform: translateX(-50%);
    width: 230px;             /* tweak size as you like */
    height: auto;
    display: none;
}

/* show the video container on hover */
.video-hover-wrapper:hover .squirrel-video {
    display: block;
}


/* ----- MY WORK ----- */

.featured-work {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 5rem;
}
  
.featured-work .text {
    grid-column: span 1;
}
  
.featured-work .image {
    grid-column: span 2;
    display: block; /* make the entire cell clickable */
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;    
}
  
.image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/* .featured-work a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}  */

/* .featured-work img {
    width: 100%;
    height: 350px; 
    object-fit: cover; 
    display: block;
} */

@media (max-width: 600px) {
    .featured-work {
      grid-template-columns: repeat(2, 1fr);
    }
}
  

/* brackets and trace */

.featured-work .image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    /* display: block; */
}

.featured-work .image::before,
.featured-work .image::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-colour);
    transition: all 0.4s ease;
    border-radius: 4px;
    z-index: 2;
}

.featured-work .image::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.featured-work .image::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.featured-work .image span {
    position: absolute;
    background: var(--primary-colour);
    display: block;
    transition: all 0.4s linear;
    z-index: 1;
}

.featured-work .image span:nth-of-type(1) {
    height: 2px;
    width: 0;
    top: 0;
    left: 0;
}

.featured-work .image:hover span:nth-of-type(1) {
    width: 100%;
    transition-delay: 0s;
}

.featured-work .image span:nth-of-type(2) {
    width: 2px;
    height: 0;
    top: 0;
    right: 0;
}

.featured-work .image:hover span:nth-of-type(2) {
    height: 100%;
    transition-delay: 0.15s;
}

.featured-work .image span:nth-of-type(3) {
    height: 2px;
    width: 0;
    bottom: 0;
    right: 0;
}

.featured-work .image:hover span:nth-of-type(3) {
    width: 100%;
    transition-delay: 0.3s;
}

.featured-work .image span:nth-of-type(4) {
    width: 2px;
    height: 0;
    bottom: 0;
    left: 0;
}

.featured-work .image:hover span:nth-of-type(4) {
    height: 100%;
    transition-delay: 0.45s;
}


.check-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 5rem;
}

.chevron-svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: draw 2s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}








/* .collage {
    position: relative;
    width: 100%;
    max-width: 1300px;
    aspect-ratio: 5/3;
    margin: 0 auto;
    overflow: hidden;
} */
/* 
.collage > a {
    position: absolute;
    text-decoration: none;
    color: inherit;
    width: 20%;
    aspect-ratio: 1.3; */
    /* default rotation var */
    /* --rot: 0deg;
    transform: rotate(var(--rot));
    transition: transform 0.3s ease;
} */
  
/* img fill parent */
/* .collage > a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
  
.collage > a:hover {
    transform: rotate(var(--rot)) scale(1.05);
    z-index: 2;
}
  
.collage > a:nth-child(1)  { top:  5%;  left:  5%;  --rot: -5deg; }
.collage > a:nth-child(2)  { top: 10%;  left: 30%;  --rot:  8deg; }
.collage > a:nth-child(3)  { top:  0%;  left: 55%;  --rot: -3deg; }
.collage > a:nth-child(4)  { top: 15%;  left: 75%;  --rot:  5deg; }
.collage > a:nth-child(5)  { top: 35%;  left:  2%;  --rot:  2deg; }
.collage > a:nth-child(6)  { top: 40%;  left: 25%;  --rot: -4deg; }
.collage > a:nth-child(7)  { top: 30%;  left: 50%;  --rot:  6deg; }
.collage > a:nth-child(8)  { top: 50%;  left: 70%;  --rot: -8deg; }
.collage > a:nth-child(9)  { top: 65%;  left: 15%;  --rot:  4deg; }
.collage > a:nth-child(10) { top: 65%;  left: 45%;  --rot: -6deg; } */
  
/* responsive grid work mobile */
/* @media (max-width: 600px) {
    .collage {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 0.5rem;
        aspect-ratio: auto;
        height: auto;
    }
    .collage > a {
        position: relative;
        width: 60%;
        aspect-ratio: 1;
    }
    .collage > a img {
        width: 100%;
        height: auto;
    }
    .collage > a:nth-child(1)  { top:  5%;  left:  8%;  --rot: -5deg; }
    .collage > a:nth-child(2)  { top: 10%;  left: 17%;  --rot:  8deg; }
    .collage > a:nth-child(3)  { top:  15%;  left: 3%;  --rot: -3deg; }
    .collage > a:nth-child(4)  { top: 15%;  left: 18%;  --rot:  5deg; }
    .collage > a:nth-child(5)  { top: 15%;  left:  2%;  --rot:  2deg; }
    .collage > a:nth-child(6)  { top: 20%;  left: 17%;  --rot: -4deg; }
    .collage > a:nth-child(7)  { top: 20%;  left: 8%;  --rot:  6deg; }
    .collage > a:nth-child(8)  { top: 30%;  left: 12%;  --rot: -8deg; }
    .collage > a:nth-child(9)  { top: 35%;  left: 7%;  --rot:  4deg; }
    .collage > a:nth-child(10) { top: 25%;  left: 18%;  --rot: -6deg; margin-bottom: 200px;}
} */

/* ----- gradient background??? ----- */
  
/* .my-work {
    background-image: linear-gradient(transparent, transparent, #dd0d5e90, var(--primary-colour));
}

.services {
    padding-top: 2rem;
    background-image: linear-gradient(var(--primary-colour), #dd0d5e90, transparent, transparent);
} */



/* ----- SERVICES ----- */

.services {
    margin-top: -3rem;
}

.service-flex {
    display: flex;
    gap: 3rem;
    padding: 1rem 1rem 10rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
    padding: 3rem;
    flex: 1;
    background-color: #fff;
    position: relative;
    color: inherit;
    transition: transform 0.3s ease;
    overflow: hidden;
    background-color: #dd0d5e10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-box-title {
    padding-bottom: 2rem;
    color: var(--primary-colour);
    text-align: center;
}

.icon-box-icon i {
    font-size: 2rem;
    color: var(--primary-colour);
}

/* incorporate brackets and trace */

.icon-box::before,
.icon-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-colour);
    transition: all 0.4s ease;
    border-radius: 4px;
    z-index: 2;
}

.icon-box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.icon-box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.icon-box span {
    position: absolute;
    background: var(--primary-colour);
    display: block;
    transition: all 0.4s linear;
    z-index: 1;
}

.icon-box span:nth-of-type(1) {
    height: 2px;
    width: 0;
    top: 0;
    left: 0;
}

.icon-box:hover span:nth-of-type(1) {
    width: 100%;
    transition-delay: 0s;
}

.icon-box span:nth-of-type(2) {
    width: 2px;
    height: 0;
    top: 0;
    right: 0;
}

.icon-box:hover span:nth-of-type(2) {
    height: 100%;
    transition-delay: 0.15s;
}

.icon-box span:nth-of-type(3) {
    height: 2px;
    width: 0;
    bottom: 0;
    right: 0;
}

.icon-box:hover span:nth-of-type(3) {
    width: 100%;
    transition-delay: 0.3s;
}

.icon-box span:nth-of-type(4) {
    width: 2px;
    height: 0;
    bottom: 0;
    left: 0;
}

.icon-box:hover span:nth-of-type(4) {
    height: 100%;
    transition-delay: 0.45s;
}






/* ----- LET'S CONNECT ----- */

.connect {
    background-color: var(--secondary-colour);
}

.connect-wrapper {
    display: flex;
    gap: 10rem;
    padding: 12rem 5rem;
    color: var(--detail-colour);
}

.connect-left h2 {
    color: var(--accent-colour);
}

#email a {
    font-weight: 700;
    color: var(--accent-colour);
}

.connect-icons {
    /* display: flex; */
    gap: 0.5rem;
    padding-top: 2rem;
}

.connect-icons i {
    background-color: var(--accent-colour);
    color: #fff;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

.connect-left {
    flex: 1;
}

.connect-right {
    flex: 1;
}

#form-home .field input, 
#form-home .field textarea {
    border-bottom: 1px solid var(--accent-colour);
    color: var(--detail-colour);
}

#form-home .field label {
    color: var(--detail-colour);
}

#form-home .field input:focus + label,
#form-home .field input:not(:placeholder-shown) + label,
#form-home .field textarea:focus + label,
#form-home .field textarea:not(:placeholder-shown) + label {
    color: var(--accent-colour);
}

/* Submit button */
#form-home button {
    background: var(--accent-colour);
    cursor: pointer;
}


/* ----- FOOTER ----- */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5% 10%;
    background-color: var(--secondary-colour);
}

.footer-left {
    flex: 1;
    max-width: 50%;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer div a {
    color: var(--detail-colour);
}

.footer i {
    background-color: var(--detail-colour);
    color: var(--secondary-colour);
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

.copyright {
    background-color: var(--secondary-colour);
    color: var(--detail-colour);
    text-align: center;
    padding: 1rem 0;
}

#copyright-p {
    font-size: 0.9rem;
}




/* ---------- GENERAL PROJECT PAGE ---------- */

.project-page {
    background-color: #ed9fbd05;
}

.first-title-proj h2 {
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: -5px;
}

.project-page h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--secondary-colour);
    padding-bottom: 1rem;
}

.first-section-proj {
    padding-top: 10rem;
}


.container-proj {
    max-width: 1100px;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 4rem;
}

.project-description {
    padding-top: 1.5rem;
}

.project-description p {
    padding-bottom: 1rem;
}

.project-flex {
    display: flex;
}

.project-flex img {
    flex: 1;
    max-width: 200px;
    opacity: 0.4;
    filter: grayscale(0.7);
    object-fit: contain;
}

.first-title-proj {
    flex: 2;
    padding-top: 1rem;
    padding-left: 6rem;
}

.first-title-proj ul {
    padding-left: 3rem;
}


.main-img-project {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 95%;
    margin: auto;
    display: block;
}



.info-proj-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem 2rem;
    align-items: start;
    margin: 2rem auto;
    padding: 3rem 1rem;
    font-size: 1.1rem;
    max-width: 70%;
    /* justify-items: start; */
}

.label-proj {
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
    /* justify-items: end !important; */
}

.label-proj h2 {
    font-size: 1.1rem;
    color: inherit;
}

.project-btn {
    margin-top: 1rem;
}

.content-proj {
    line-height: 1.6;
    /* text-align: left !important; */
}

.more-images-project {
    background-color: var(--secondary-colour);
    padding: 2rem 0;
}

.screenshots-projects {
    display: flex;
    padding: 5rem;
    /* width: 95%; */
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.screenshots-projects img {
    /* flex: 0 0 20%; */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 30%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    object-fit: contain;
}

.screenshots-projects img:hover {
    transform: scale(1.01);
}

#authenticity-mood {
    width: 100%;
    align-items: center;
}

#deluca-about {
    margin-top: -700px;
}


.overlay {
    position: fixed;
    inset: 0;
    display: none;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(1px) grayscale(80%);
    -webkit-backdrop-filter: blur(1px) grayscale(80%);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
}

.overlay.show {
    display: flex;
}


.close-btn {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--detail-colour);
    cursor: pointer;
    background: transparent;
    border: none;
}



.footer-project .footer ,
.footer-project .copyright {
    background-color: #022322;
}


/* ---------- PORTFOLIO PAGE ---------- */

.portfolio-page {
    background-color: #05585405;
}

.my-work {
    margin-bottom: 10rem;
}

.portfolio-page h2 {
    /* font-weight: 900; */
    font-size: 3.5rem;
    letter-spacing: -4px;
}

.portfolio-page h3 {
    font-size: 2.5rem;
    /* text-transform: uppercase; */
    color: var(--secondary-colour);
}


.portfolio-section {
    padding-top: 10rem;
}

.portfolio-btn {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-desc {
    padding-top: 2rem;
}

.text .pink {
    color: var(--primary-colour);
}

/* ---------- ABOUT PAGE ---------- */

.about-page {
    background-color: #dd0d5e05;
}

.about-section {
    padding-top: 10rem;
}

.about-location {
    margin-top: -1.2rem;
    color: var(--primary-colour);
}

.about-location i {
    margin-right: 0.4rem;
}

.about-info h2 {
    color: var(--secondary-colour);
}

.not-designing {
    margin-top: -6rem;
    padding: 0 10rem;
    padding-bottom: 4rem;
}
.not-designing h4 {
    margin-top: 4rem;
}



.stack-glass {
    padding-bottom: 10rem;

}

.glass i {
    display: block;
}

.glass{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 5rem 5rem;
    /* background-color: #022322; */
}

.glass div .fa-brands {
    font-size: 3rem;
    cursor: pointer;
    color: var(--primary-colour);
}

.my-journey {
    display: flex;
    align-items: center;
    gap: 10rem;
    padding-bottom: 7rem;
    /* padding: 2rem 7rem 7rem 7rem; */
}

.my-journey div:nth-child(1) {
    flex: 1;
}

.my-journey div:nth-child(2) {
    flex: 2;
}

.bubbles {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255,255,255,0.9)),
        url(../images/bubbles.png);
}

#stack-section {
    scroll-margin-top: 100px;
}

/* ---------- CONTACT PAGE ---------- */

.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 6rem;
}

@media (max-width: 768px) {
    .contact-container { flex-direction: column; }
}

.contact-form,
.contact-info {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form {
    flex: 2;
}

/* incorporate brackets and trace */

.brackets::before,
.brackets::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-colour);
    transition: all 0.4s ease;
    border-radius: 4px;
    z-index: 2;
}

.brackets::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.brackets::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.brackets span {
    position: absolute;
    background: var(--primary-colour);
    display: block;
    transition: all 0.4s linear;
    z-index: 1;
}

.brackets span:nth-of-type(1) {
    height: 2px;
    width: 0;
    top: 0;
    left: 0;
}

.brackets:hover span:nth-of-type(1) {
    width: 100%;
    transition-delay: 0s;
}

.brackets span:nth-of-type(2) {
    width: 2px;
    height: 0;
    top: 0;
    right: 0;
}

.brackets:hover span:nth-of-type(2) {
    height: 100%;
    transition-delay: 0.15s;
}

.brackets span:nth-of-type(3) {
    height: 2px;
    width: 0;
    bottom: 0;
    right: 0;
}

.brackets:hover span:nth-of-type(3) {
    width: 100%;
    transition-delay: 0.3s;
}

.brackets span:nth-of-type(4) {
    width: 2px;
    height: 0;
    bottom: 0;
    left: 0;
}

.brackets:hover span:nth-of-type(4) {
    height: 100%;
    transition-delay: 0.45s;
}

/* end brackets code */


/* floating‑label fields */
.field {
    position: relative;
    margin-bottom: 1.75rem;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--primary-colour);
    padding: 0.5rem 0;
    font-size: 1rem;
    background: transparent;
    transition: border-color 0.2s;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-colour);
}

.field label {
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: transform 0.2s, font-size 0.2s, color 0.2s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem);
    font-size: 0.8rem;
    color: var(--primary-colour);
}

/* Submit button */
.contact-form button {
    background: var(--primary-colour);
    cursor: pointer;
    font-size: 1rem;
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

#reach-p {
    margin-bottom: 2.5rem;
}


.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-icons {
    display: flex;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.contact-icons i {
    padding: 0.7rem;
}

.pin-contact {
    padding-right: 0.4rem;
    color: var(--primary-colour);
}


/* --------------- MOBILE VERSION - RESPONSIVE ----------------- */

@media (max-width: 600px) {

    /* show the burger */
    .hamburger {
        display: block;
        position: fixed;
        top: 2rem;
        right: 2rem;
        z-index: 2000;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 4px 0;
        background-color: var(--primary-colour);
        transition: 0.3s;
    }

    /* the off‑canvas menu */
    .nav-bar {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100%;
        background-color: var(--detail-colour);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        padding-top: 10rem;
        list-style: none;
        z-index: 1999;
    }
    .nav-open .nav-bar {
        transform: translateX(0);
    }

    /* full‑width links */
    .nav-bar li {
        width: 100%;
        text-align: center;
        /* margin: 1.5rem 0; */
    }
    .nav-bar a {
        display: block;
        padding: 1rem;
        font-size: 1.25rem;
        color: var(--primary-colour);
    }

    /* logo top‑left */
    .nav-left {
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
        padding: 0;
        z-index: 2001;
    }
    .nav-left svg {
        width: 100px;
        height: auto;
    }

    /* toggle submenu */

    /* Force the submenu open in the overlay */
    .has-subnav .subnav {
        display: block !important;
        position: static;
        transform: none;
        opacity: 1;
        box-shadow: none;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    /* Full‑width submenu container */
    .subnav-box {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    /* Space out each submenu link */
    .subnav-box li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Style the submenu links */
    .subnav-box a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.125rem;
        color: var(--primary-colour) !important;
        border-radius: 0.25rem;
    }

      /* ── MOBILE STANDARDS ── */
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    h1, h2, h3, p {
        /* reset any floats/grids */
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
    }
    h1 { font-size: 2.5rem; line-height: 1.2; text-align: center; }
    h2 { font-size: 2.3rem; letter-spacing: -2px; text-align: center; }
    h3 { font-size: 1.7rem; text-align: center; }
    p  { font-size: 1rem; line-height: 1.5; text-align: center; }
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 1rem auto !important;
    }
    /* img {
        height: auto !important;
        border-radius: 0.5rem;
    } */

    /* ── BANNER ── */
    .banner {
        flex-direction: column-reverse !important;
        align-items: center !important;
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    .banner-left, .banner-right {
        width: 100% !important;
        margin: 0 0 !important;
        text-align: center !important;
    }
    .h1-banner {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    .banner-right img {
        padding-top: 2rem;
        max-width: 60% !important;
        filter: drop-shadow(5px 15px 20px rgba(0,0,0,0.3)) !important;
    }

    .banner-card::before {
        content: "";
        position: absolute;
        top: -40%;
        bottom: 0;
        right: 0;
        left: 0;
        /* transform: translateX(30%); */
        background: url('../images/gradient-banner.png') center left / 150% auto no-repeat;
        opacity: 0.8;
        z-index: 0;
    }

    .banner-left .btn-group {
        display: flex !important;
        gap: 0.5rem !important;
        width: 100% !important;         /* fill the container */
        margin: 1.5rem 0 !important;
    }
    .banner-left .btn-group .btn {
        flex: 1 1 0; 
        min-width: 0; 
        display: inline-flex !important;
        justify-content: center; 
        margin: 0 !important;
    }


    /* ── LET’S CREATE ── */
    .main-phrase {
        margin: 2rem 0 2rem 1rem !important;
    }

    /* ── PROFILE ── */

    .profile-left img {
        max-width: 250px !important;
        width: 80% !important;
    }
    .video-hover-wrapper, .profile-right p, .about-info h3 {
        width: 100% !important;
    }

    .btn-home-mobile {
        display: flex;
        justify-content: space-around;
        margin: 0 2rem;
    }

    /* ── FEATURED WORK ── */
    .my-work {
        margin-top: 3rem;
    }
    .featured-work {
        display: block !important;
        margin: -2rem 0 !important;
    }
    /* .featured-work .text,
    .featured-work .image {
        width: 100% !important;
        margin: 1rem 0 !important;
        text-align: center !important;
    } */
    /* .featured-work .image img {
        width: 100% !important;
        height: auto !important;
    } */
    /* .project-desc {
        font-size: 1rem !important;
    } */

    .chevron-svg{
        display: none;
    }
    /* .check-more h3 {
        margin: -4rem 0 !important;
        padding: 0 !important;
    } */
    .featured-work p {
        padding-bottom: 1.5rem;
    }

    .check-more {
        margin: 1rem 0 0 !important;
        padding: 0;
    }
    .check-more h3 {
        margin: 0 !important;
    }


    /* ── SERVICES ── */
    .services {
        margin: -8rem 0 !important; 
        padding-top: 1.5rem !important;
    }
      
    .services h2 {
        margin: 0 0 1rem 0 !important;  /* no top‑margin, small bottom‑gap */
        padding: 0 !important;
    }
    .service-flex {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 2rem 1.5rem !important;
        margin-top: -2rem;
        margin-bottom: 12rem;
    }
    .icon-box {
        width: 100% !important;
        padding: 2rem !important;
        text-align: center !important;
    }
    .icon-box-title {
        font-size: 1.25rem !important;
        margin-bottom: -2rem !important;
    }
    .icon-box-icon i {
        font-size: 2.5rem !important;
    }

    /* ── CONNECT ── */
    .connect-wrapper {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        margin-bottom: 5rem;
    }
    .connect-left, .connect-right {
        width: 100% !important;
    }
    #form-home .field {
        width: 100% !important;
    }
    #thankyou {
        width: 100% !important;
        margin-top: 2rem !important;
    }


    /* ----- FOOTER ----- */

    .footer {
        flex-direction: column;
        align-items: center;
        margin-top: -5rem;
    }

    .footer-left,
    .footer-right {
        width: 80%;
        max-width: none;
        margin-bottom: 1rem;
    }

    .footer-left {
        text-align: center;
    }

    .footer-left svg {
        width: 140px;
        height: auto;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    .footer-right {
        justify-content: space-around;
        gap: 0.5rem;
    }

    .footer i {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .copyright {
        padding: 0.8rem 0;
    }
    
    #copyright-p {
        font-size: 0.8rem;
    }

    /* SINGLE PROJECT PAGE */

    /* 1) Container padding */
    .container-proj {
        padding-top: 8rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .container {
        padding: 0;
    }

    /* 2) Logo + Title inline */
    .first-section-proj .project-flex {
        display: flex;
        align-items: center;
    }
    .first-section-proj .project-flex img {
        display: none;
        width: 50px;
        height: auto;
        margin-right: 1rem;
        filter: none;
        opacity: 1;
    }
    .first-title-proj {
        flex: 2;
        padding: 0;
        text-align: left;
    }
    .first-title-proj h2 {
        margin: 0;
        font-size: 2.3rem;
        letter-spacing: -2px;
    }
    .first-section-proj {
        margin-bottom: -2rem;
    }

    /* 3) Deliverables as its own block */
    .first-title-proj h3 {
        font-size: 1.3rem;
    }

    /* 4) Project Description block */
    .project-description {
        padding: 2rem 1rem;
        text-align: left;
    }
    .project-description h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    .project-description p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    /* 5) Centered button */
    .project-btn {
        text-align: center;
        margin: 2rem 0;
    }

    /* 6) Main image full‑width */
    .main-img-project {
        display: block;
        width: 90%;
        height: auto;
        margin: 0 auto 1rem;
    }

    /* ─── GOAL / APPROACH / CHALLENGES / RESULTS ─── */
    .goal-approach-challenges-results {
        max-width: 100%;
        padding: 2rem 1rem;
    }
    
    /* force one‑column layout */
    .info-proj-grid {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* each label+content becomes its own “card” */
    .info-proj-grid .label-proj,
    .info-proj-grid .content-proj {
        display: block;
        width: 140%;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    
    /* smaller, accented headings */
    .label-proj h2 {
        font-size: 1.2rem;               /* shrink heading */
        margin: 1.5rem 0 0.5rem;
        padding-left: 0.75rem;
        border-left: 2px solid var(--primary-colour); /* accent bar */
        color: var(--secondary-colour);
        font-weight: 700;
    }

    .more-images-project {
        padding: 2rem;
        padding-bottom: 8rem;
    }


    /* ----- PORFOLIO ----- */

    .featured-work {
        display: block;
    }

    .portfolio-section {
        padding-top: 5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Title & headings centered + scaled */
    .portfolio-page h2 {
        font-size: 2.3rem;
        letter-spacing: -2px;
        text-align: center;
        padding-bottom: 1rem;
    }
    .portfolio-page h3 {
        font-size: 1.7rem;
        text-align: center;
    }

    /* Stack each image/text full-width */
    .featured-work .image,
    .featured-work .text {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
        text-align: center;
    }

    /* Fluid images */
    .featured-work .image img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }

    /* Paragraphs */
    .portfolio-desc {
        font-size: 1rem;
        padding-top: 1rem;
    }

    /* Buttons centered + smaller */
    .portfolio-btn {
        text-align: center;
        margin-top: 1rem;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }


    /* ----- CONTACT PAGE ----- */
    
    .contact-info,
    .contact-form {
        margin: 0 2rem;
    }


    /* ----- ABOUT PAGE ----- */

    /* 1) Section padding */
    .about-section {
        padding-top: 8rem;
    }

    /* 2) Profile: image above text, centered */
    .profile {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .profile-left img {
        width: 100%;
        max-width: 250px;
        height: auto;
        object-fit: cover;
    }
    .profile-right {
        width: 100%;
        padding: 0;
    }
    .about-info h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--secondary-colour);
    }
    .about-location {
        margin-top: 0.25rem;
        font-size: 1rem;
    }

    /* 3) Bio paragraph */
    .profile-right p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    /* 4) “When I’m not designing” block */
    .not-designing {
        margin: 2rem 0 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    .not-designing h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .not-designing p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* 5) Tech stack: grid of icons */
    .stack-glass {
        padding: 3rem 1rem 4rem;
        margin-bottom: 5.5rem;
        margin-top: -1rem;
    }
    .stack-glass h2 {
        font-size: 1.8rem;
        text-align: center;
        /* margin-bottom: 1rem; */
    }
    .glass {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
        /* margin: 0 1rem 0 1rem; */
    }
    .skills-brands {
        font-size: 2.5rem;
        color: var(--primary-colour);
    }

}
