/* Font declarations */
@font-face {
    font-family: 'GT America';
    src: url('fonts/GT-America/GT-America-Standard-Regular-Trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT America';
    src: url('fonts/GT-America/GT-America-Standard-Medium-Trial.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT America';
    src: url('fonts/GT-America/GT-America-Standard-Bold-Trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*:after,
*:bevore {
    box-sizing: border-box;
}

body {
    background-size: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Raleway', sans-serif;
    font-style: light;
    color: white;
    clear: both;
    display: block;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

h1,
h2,
h3,
p {
    color: black;
}

html {
    scroll-behavior: smooth;
}

.navheader {
    position: fixed;
    color: white;
    left: 0;
    right: 0;
    z-index: 3;
    transition: 0.4s;
}

.navscrolled {
    position: fixed;
    background-color: white;
    -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    left: 0;
    right: 0;
    z-index: 3;
    transition: 0.6s;
    border-radius: 0 0 100px 0;
}

h2 {
    font-size: 5.07vw;
    font-weight: 500;
    letter-spacing: 0.2em;
    /*-----------------------------*/
    /* color: white;
    font-size: 7vw;
    padding-top: 48vh;
    padding-left: 4vw;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3em;
    opacity: 0; */
}

article {
    clear: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 2rem auto;
}

article:after {
    content: "";
    display: table;
    clear: both;
}

* {
    box-sizing: border-box;
}

.section-text:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 50%;
    flex: 50%;
    transition: transform 1s, opacity 1s;
    transition-delay: 0.2s;
    
}

.left {
    width: 65%;
}

.right {
    width: 35%;
    opacity: 0;
    transform: translateY(70px);
    transition: transform 1s, opacity 1s;
}

/*---------------------------------------------------------------*/

header {
    margin: 0;
}

ul {
    margin: 0;
    list-style: none;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    cursor: pointer;
}

li {
    margin: 1em;
    margin-bottom: 0;
    padding: 1em;

}

.navheader ul a {
    text-decoration: none;
    color: white;
    font-family: "Raleway";
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.2em;
}

.navscrolled ul a {
    text-decoration: none;
    color: black;
    font-family: "Raleway";
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.2em;
}

.navscrolled ul a {
    background: url("/Users/sang/Portfolio/css/Image/logo/logo-wit2.png");
}

a {
    position: relative;
    padding-bottom: 0.5em;
}

a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    /* left: 0; */
    right: 0;
    /* background-color: #FFCB9A; */
    background-color: #7e73ed;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

a:hover:before {
    visibility: visible;
    width: 100%;
}

#logo {
    width: 2vw;
}

#overmij {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url("Image/background2kopie.jpg");
    /* background-image: url("Image/background2kopie.jpg"); */
    background-color: black;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    margin: 0;
    /* animation: slide-down cubic-bezier(1, -0.24, 0.93, 1.04) 1.5s forwards 0.02s;  */
    animation: slide-down cubic-bezier(0.77,0,0.175,1) 2s forwards 0.01s;
    /* animation: slide-down cubic-bezier(0.77,0,0.175,1) forwards 2s; */
    opacity: 0;
}

@keyframes slide-down {
    0% {
        transform: translateY(-1150px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#overmij {
    margin-top: 0;
    margin-bottom: 0;
    /* padding-top: 20rem; */
    font-size: 5rem;
    color: white;
    letter-spacing: 0.2rem;
}

#overmij h1 {
    margin: 0;
    padding-top: 1px;
    display: -webkit-inline-box;
    /* border-bottom: 10px solid #242526;
	width: 30%; */
    color: white;
    font-size: 7vw;
    padding-top: 48vh;
    padding-left: 4vw;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3em;
    opacity: 0;
}

#overmij h1:first-of-type {
    color: white;
    font-size: 7vw;
    /* padding-top: 48vh; */
    padding-left: 4vw;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3em;
    opacity: 0;
}
.slide-effect {
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.slide-up1 {
    animation: slide-up1 ease 0.3s forwards 1.5s;
    /* animation: slide-up1 .8s cubic-bezier(0.65, 0, 0.35, 1) both; */
}

.slide-up2 {
    animation: slide-up2 ease 0.5s forwards 1.7s;
    /* animation: slide-up2 .9s cubic-bezier(0.65, 0, 0.35, 1) both; */
    /* animation-delay:  0.025s; */
}

.slide-up3 {
    animation: slide-up2 ease 0.7s forwards 1.9s;
}

.slide-up4 {
    animation: slide-up2 ease 0.9s forwards 2.2s;
}

.slide-up5 {
    animation: slide-up2 ease 1.1s forwards 2.4s;
}

@keyframes slide-up1 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-60px);
        opacity: 1;
    }
}

@keyframes slide-up2 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-60px);
        opacity: 1;
    }
}

@keyframes slide-up3 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-60px);
        opacity: 1;
    }
}

@keyframes slide-up4 {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-60px);
        opacity: 1;
    }
}

.isa {
    color: white;
    font-size: 5.07vw;
    font-weight: 400;
    padding-left: 25vw;
    margin: 0;
    letter-spacing: 0.3em;
    opacity: 0;
}

.cr { color: #7e73ed;
    font-size: 4vw;
    font-weight: 400;
    padding-top: 2vh;
    padding-left: 7vw;
    margin: 0;
    letter-spacing: 0.3em;
    opacity: 0;

}

.fd {
    /* color: #FAB162; */
    color: #7e73ed;
    font-size: 4vw;
    font-weight: 400;
    padding-left: 10vw;
    margin: 0;
    letter-spacing: 0.3em;
    opacity: 0;
}

.overmijzelf-kopje {
    opacity: 0;
    transform: translateY(70px);
    transition: transform 1s, opacity 1s;
    transition-delay: 0.3s;
}

.overmijzelf-text {
    opacity: 0;
    transform: translateY(80px);
    transition: transform 1s, opacity 1s;
    transition-delay: 0.3s;
}
.fadeIn {
    opacity: 1;
    transform: translateY(0px);
}

section {
    min-height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
}

.section-text {
    text-align: left;
    min-height: 62vh;
    padding: 10vw;

}

.section-text p {
    line-height: 30px;
}

.section-text h2 {
    margin: 0;
    letter-spacing: 0.2em;
}

.profielfoto {
    margin-left: 3rem;
    height: 41vw;
    border-radius: 20px 0 22px 0;
}

#projecten h2,
#projecten-school h2 {
    font-size: 9vw;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    letter-spacing: 0.2em;
}

#projecten p,
#projecten-school p {
    text-align: center;
    display: flex;
    justify-content: center;
    padding: 0 8vw;
    margin-bottom: 8vh;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


#projecten .textcolumn p {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 5vh;
    padding: 1rem 3vw;

}
/*
.textblock {
	float: right;
	position: relative;
	width: 56.25%;
	background: #000;
	z-index: 1;
	height: 66.875vw;
	color: #fff;
	display: table;
	vertical-align: middle;
}

.textblock h2:first-of-type {
	position: relative;
	margin-left: 5em;
	color: white;

}
*/
img.project2 {
    left: 0;
    right: auto;
    max-width: 50%;
    display: block;
    float: right;
    border-radius: 70px 0 0 70px;
}

/* .textcolumn {
    padding: 1em;
    margin-top: 3em;
    float: left;
    width: 50%;
} */

.textcolumn2 {
    padding: 1em;
    margin-top: 3em;
    float: left;
    width: 50%;
}

.imgcolumn,
.imgcolumn2 {
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 2rem;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.imgcolumn::before,
.imgcolumn2::before {
    content: "View";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(126, 115, 237, 0.9);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    text-transform: uppercase;
    will-change: opacity;
}

.imgcolumn:hover::before,
.imgcolumn2:hover::before {
    opacity: 1;
}

.imgcolumn img,
.imgcolumn2 img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
    transform-origin: center center;
}

.imgcolumn:hover img {
    transform: scale(1.02);
    border-radius: 11vmin 0 0 11vmin;
    transition:height 0.3s;
}

.imgcolumn2:hover img {
    transform: scale(1.02);
    border-radius: 0 11vmin 11vmin 0;
    transition:height 0.3s;
}

/* Preserve border radius on hover overlay */
.imgcolumn:has(.project1)::before {
    border-radius: 0 70px 70px 0;
}

.imgcolumn:has(.project2)::before {
    border-radius: 70px 0 0 70px;
}

.imgcolumn2:has(.project1)::before {
    border-radius: 0 70px 70px 0;
}

.imgcolumn2:has(.project2)::before {
    border-radius: 70px 0 0 70px;
}

@media screen and (max-width: 768px) {
    img.project1,
    img.project2 {
        border-radius: 15px;
    }

    .imgcolumn:hover img,
    .imgcolumn2:hover img {
        border-radius: 15px;
    }
    
    .imgcolumn::before,
    .imgcolumn2::before {
        font-size: 20px;
        border-radius: 15px;
    }
}

img.project1 {
    left: 0;
    right: auto;
    max-width: 50%;
    max-height: 100%;
    display: block;
    float: left;
    border-radius: 0 70px 70px 0;
}


.textcolumn h3,
.textcolumn2 h3 {
    text-align: center;
    font-size: 4vw;
    font-weight: 500;
    color: #242526;
    letter-spacing: 0.05em;
    padding: 0 50px;
    display: grid;
}


.button {
    display: flex;
    justify-content: center;
    position: relative;
    background: none;
    white-space: nowrap;
    text-align: center;
}

.animatie-button:link:after,
.animatie-button:visited:after {
    content: "";
    position: absolute;
    height: 0;
    left: 50%;
    top: 50%;
    width: 1050%;
    z-index: -1;
    -webkit-transition: all 0.75s ease 0s;
    -moz-transition: all 0.75s ease 0s;
    -o-transition: all 0.75s ease 0s;
    transition: all 0.75s ease 0s;
}

.animatie-button:link:hover,
.animatie-button:visited:hover {
    color: #FFF;
    text-shadow: none;
}

.animatie-button:link:hover:after,
.animatie-button:visited:hover:after {
    height: 1050%;
}

.animatie-button:link,
.animatie-button:visited {
    position: relative;
    display: block;
    margin-top: 2rem;
    padding: 0.6em 13vw;
    /* color: #62cffa; */
    /* color: #5340ff; */
    /* color: #F0B90B; */
    /* color: #FAB162; */
    /* color: #FCD535; */
    /* color: #FFB52E; */
    /* color: #FFCB9A; */
    color: #7e73ed;
    z-index: 2;
    font-size: 22px;
    border-radius: 20px 0 22px 0;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    letter-spacing: 0.2em;
    border: 1px solid rgb(179 179 179 / 50%);
    border-style: solid;
    /* text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2); */
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;

}

.animatie-button:after {
    /* background: #F0B90B ; */
    /* background:#FAB162; */
    /* background: #FFCB9A; */
    /* background: #FCD535; */
    background: #7e73ed;
    -moz-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
    -ms-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
    -webkit-transform: translateX(-50%) translateY(-50%) rotate(-25deg);
    transform: translateX(-50%) translateY(-50%) rotate(-25deg);
}

#terugbutton {
    padding-top: 7rem;
    margin: 2em;
    position: absolute;
    right: 6rem;
    text-decoration: none;
    color: #7e73ed;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.visit-link {
    color: #7e73ed; text-align: center;
    text-decoration: none;
    overflow: hidden;
    font-size: 1.6rem;
}

#github {
    min-height: 0;
    color: black;
    margin: 0;
    padding: 0;
    text-align: center;
}

#github h2 {
    text-align: center;
    font-size: 9vw;
}

#github span {
    color: black;
}

#github a {
    color: black;
    text-decoration: none;
    letter-spacing: 0.05em;
}

#contact {
    background-image: linear-gradient(rgba(0,0,0, 0.65), rgb(0 0 0 /60%)), url("Image/footer-bg.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* background-color: #333333; */
    min-height: 82vh;
    margin-top: 6em;
    border-radius: 70px 0 70px 0;
    padding: 2rem;
}
#contact h2 {
    font-size: 5vw;
    color: #7e73ed;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 3rem;
}

#contact .section-text form p {
    font-size: 13px;
    font-style: normal;
    color: white;
    margin-top: 30px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 1px;

}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5em;
    gap: 2rem;
}

.contact-info {
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-info i {
    font-size: 2rem;
}

.contact-info a,
.contact-info span {
    font-size: 2vw;
    color: white;
    text-decoration: none;
    letter-spacing: 0.05em;
}

#contact a {
    color: white;
    text-decoration: none;
    letter-spacing: 0.05em;
}

footer {
    color: black;
    font-weight: 700;
    text-align: center;
    margin: 1.5em;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

footer span {
    font-size: 14px;
}

.detailcontent h2 {
    margin: 3em 0 0;
}

.detailcontent {
    background: none;
    text-align: left;
    padding: 1em 10vw 10vw;
}

.detailcontent p {
    line-height: 30px;
    margin-top: 17vh;
}

.detailcontent .button a {
    display: flex;
    justify-content: center;
}

.detailimg {
    max-width: 100%;
    width: 100%;
    left: 0;
    -webkit-box-shadow: 0 0 9px 1px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 9px 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 9px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;

}
/*-------------------------------------------------------*/

/*-----------------------SLIDER--HCI--2.0--------------------------*/

.slider {
    position: relative;
    overflow: hidden;
    height: 80vh;
    width: 80vw;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* transition: opacity 0.4s ease-in-out; */
    opacity: 0.4s ease-in-out;
}

.slide.current {
    opacity: 1;
}

.slide .content {
    position: absolute;
    bottom: 70px;
    left: -600px;
    opacity: 0;
    width: 600px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 35px;
}

.slide .content h2 {
    margin-bottom: 10px;
}

.slide.current .content {
    opacity: 1;
    transform: translateX(600px);
    transition: all 0.7s ease-in-out 0.3s;
}

.buttons button#next {
    position: absolute;
    right: 100px;
}

.buttons button#prev {
    position: absolute;
    left: 100px;
}

.buttons button {
    border: 2px solid #7e73ed;
    background-color: transparent;
    color: #7e73ed;
    cursor: pointer;
    padding: 13px 15px;
    border-radius: 50%;
    outline: none;
}

.buttons button:hover {
    background-color: #7e73ed;
    color: white;
}

@media (max-width: 500px) {
    .slide .content {
        bottom: -300px;
        left: 0;
        width: 100%;
    }

    .slide.current .content {
        transform: translateY(-300px);
    }
}

/* Backgorund Images */

.slide:first-child {
    background: url("Image/happytree/home.png") no-repeat center top/cover;
}
.slide:nth-child(2) {
    background: url("Image/happytree/happytree1.png") no-repeat center top/cover;
}
.slide:nth-child(3) {
    background: url("Image/happytree/happytree2.png") no-repeat center top/cover;
}
.slide:nth-child(4) {
    background: url("Image/happytree/happytree3.png") no-repeat center top/cover;
}
.slide:nth-child(5) {
    background: url("Image/happytree/happytree4.png") no-repeat center top/cover;
}
.slide:nth-child(6) {
    background: url("Image/happytree/happytree5.png") no-repeat center center/cover;
}
.slide:nth-child(7) {
    background: url("Image/happytree/happytree6.png") no-repeat center center/cover;
}

/*--------------------------------Responsive-MOB-----------------------------------*/
@media screen and (max-width: 768px) {
    /* Navigation */
    .navheader {
        padding: 0.5rem;
    }

    .navheader ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .navheader li {
        margin: 0;
        padding: 0.5em;
    }

    .navheader ul a {
        font-size: 24px;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 0.1em;
    }

    #logo {
        width: 8vw;
    }

    /* Hero Section */
    #overmij {
        padding: 1rem;
    }

    #overmij h1:first-of-type,
    #overmij h1 {
        font-size: 10vw;
        padding-top: 40vh;
        padding-left: 0;
        letter-spacing: 0.1em;
        text-align: center;
    }

    .isa {
        font-size: 6vw;
        padding-left: 0;
        text-align: center;
    }

   .cr , .fd {
        font-size: 5vw;
        padding-left: 0;
        text-align: center;
    }

    /* About Section */
    .overmijzelf-kopje {
        font-size: 9vw;
    }

    .section-text {
        padding: 2rem;
    }

    .column {
        width: 100%;
        float: none;
    }

    .left, .right {
        width: 100%;
    }

    .profielfoto {
        width: 100%;
        height: auto;
        margin: 2rem 0;
        border-radius: 22px 0 22px 0;
    }

    /* Projects Section */
    #projecten h2 {
        font-size: 8vw;
        margin: 2rem 0;
    }

    #projecten p , #projecten-school p {
        /* padding: 0 2rem; */
        font-size: 17px;
        line-height: 30px;
    }

    img.project1,
    img.project2 {
        max-width: 100%;
        float: none;
        border-radius: 15px;
    }

    .textcolumn,
    .textcolumn2 {
        width: 100%;
        padding: 1rem;
    }

    .textcolumn h3,
    .textcolumn2 h3 {
        font-size: 7vw;
        padding: 1rem 0;
    }

    /* Contact Section */
    #contact {
        margin-top: 3rem;
        border-radius: 30px 0 30px 0;
    }

    #contact h2 {
        font-size: 9vw;
    }

    .contact-box {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .contact-info {
        margin: 1rem 0;
        text-align: center;
        justify-content: center;
    }

    .contact-info i {
        font-size: 1.5rem;
    }

    .contact-info a,
    .contact-info span {
        font-size: 1.2rem;
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .section-text {
        padding: 5vw;
    }

    #overmij h1:first-of-type,
    #overmij h1 {
        font-size: 6vw;
    }

    .isa {
        font-size: 4vw;
        padding-left: 15vw;
    }

    .fd {
        font-size: 3.5vw;
        padding-left: 10vw;
    }

    .profielfoto {
        height: auto;
        margin-left: 1rem;
    }

    .textcolumn h3,
    .textcolumn2 h3 {
        font-size: 5vw;
    }

    .contact-info i,
    .contact-info a,
    .contact-info span {
        font-size: 3vw;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 320px) {
    #overmij h1:first-of-type,
    #overmij h1 {
        font-size: 10vw;
        padding-top: 30vh;
    }

    .isa {
        font-size: 8vw;
    }

    .fd {
        font-size: 5vw;
    }

    .section-text {
        padding: 1rem;
    }

    .textcolumn h3,
    .textcolumn2 h3 {
        font-size: 9vw;
    }

    .animatie-button:link,
    .animatie-button:visited {
        padding: 0.8rem 15vw;
        font-size: 14px;
    }
}

/* Fix for devices with notches */
@supports (padding: max(0px)) {
    .navheader {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
    }
}

/*----------------------------Website fullpage------------------------------*/
@media screen and (min-width: 1452px) {

    /* #contact,
    #overmijzelf,
    #projecten {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    } */

    /* .section-text {
        padding: 10vw 0;
    } */

    #contact h2,
    #overmijzelf h2,
    #projecten h2 {

        font-size: 73px;
    }

    .profielfoto {
        height: 590.4px;
    }

    .textcolumn h3,
    .textcolumn2 h3 {
        font-size: 57.6px;
    }

    .contact-info i,
    a,
    span {
        font-size: 36px;

    }
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none; /* Hide by default for desktop */
}

.nav-toggle img {
    display: none; /* Hide logo by default */
}

.hamburger {
    display: none; /* Hide hamburger by default */
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .navheader {
        padding: 1rem 2rem;
        height: 90px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-radius: 0 0 70px 0;
    }

    .nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .nav-toggle img {
        display: block;
        width: 34px;
        height: auto;
        order: 1; /* Places logo first */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        order: 2; /* Places hamburger second */
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 28px;
        height: 3.6px;
        background-color: white;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .navscrolled .nav-toggle span {
        background-color: black;
    }

    /* Add animation for hamburger to X transformation */
    .nav-toggle.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle.active .hamburger span:nth-child(2) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .nav-menu {
        display: block;
        width: 101%;
        position: absolute;
        top: 70px;
        left: 0;
        /* background-color: rgba(255, 255, 255, 0.98); */
        background-color:#FFF;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        height: 91vh;
        margin-top: 1rem;
        padding-top: 10rem;
        border-radius: 0 30px 0 0;
    }

    .navheader ul li {
        width: 100%;
        text-align: right;
        margin: 0.4em 0;
        padding-right: 1.97em;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(0.1s * var(--item-index, 0));
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .navheader ul a {
        color: black;
    }

    .navheader ul li:first-child {
        display: none;
    }
}

/* Social Link Styles */
.social-link {
    margin-top: auto !important;
    padding-bottom: 2rem !important;
    visibility: hidden;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link i {
    font-size: 1.5em;
}

@media screen and (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 90px);
    }

    .social-link {
        margin-top: 7.5em !important;
        padding-bottom: 4rem !important;
        width: 100% !important;
        text-align: right !important;
        visibility: unset;
        padding-right: 1.97em;
    }

    .social-link i {
        font-size: 1.2em;
        color: black;
    }
}

.project-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.project-link:before {
    display: none;
}

.view-case {
    display: none; /* Hidden by default for desktop */
}

@media screen and (max-width: 768px) {
    .project-link {
        width: 100%;
        margin-bottom: 1rem;
        position: relative;
        display: block;
    }

    .imgcolumn,
    .imgcolumn2 {
        position: relative;
        overflow: hidden;
    }

    .view-case {
        display: block;
        position: absolute;
        bottom: 17px;
        right: 0;
        background-color: rgba(126, 115, 237, 0.9);
        color: white;
        padding: 1rem;
        font-size: 17px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-radius: 0 22px 0 22px;
        transition: transform 0.3s ease;
    }

    .project-link:hover .view-case {
        transform: translateY(0);
    }

    article {
        flex-direction: column;
    }

    .textcolumn,
    .textcolumn2 {
        width: 100%;
        padding: 1rem;
    }

    .textcolumn .button,
    .textcolumn2 .button {
        display: none; /* Hide the original button in mobile */
    }

    img.project1,
    img.project2 {
        border-radius: 20px 0 22px 0;
        float: none;
        width: 100%;
        display: block;
    }
}

/* Laptop and larger screens */
@media screen and (min-width: 1024px) {
    article {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
        /* padding: 0 4rem; */
    }

    .project-link {
        width: 50%;
        margin: 0;
    }

    .imgcolumn2 {
        margin-bottom: 0;
    }

    .textcolumn,
    .textcolumn2 {
        width: 50%;
        padding: 2rem;
    }

    /* Alternate layout for even articles */
    article:nth-child(even) {
        flex-direction: row-reverse;
    }

    article:nth-child(even) .project-link {
        display: flex;
        justify-content: flex-end;
    }
}

/* Update existing image styles */
img.project1,
img.project2 {
    max-width: 100%;
    height: auto;
    display: block;
}

@media screen and (min-width: 1024px) {
    img.project1 {
        border-radius: 0 70px 70px 0;
    }

    img.project2 {
        border-radius: 70px 0 0 70px;
    }
}

@media screen and (max-width: 1023px) {
    img.project1,
    img.project2 {
        border-radius: 20px 0 22px 0;
        float: none;
    }
}

/* Project Detail Page Styles */
.project-detail {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail h2 {
    font-size: 2.5rem;
    margin: 2rem 0;
    color: #242526;
    text-align: left;
}

.project-container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.project-image {
    flex: 1;
    max-width: 50%;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-text {
    flex: 1;
    max-width: 50%;
}

.project-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.project-text h3 {
    font-size: 1.5rem;
    color: #242526;
    margin: 2rem 0 1rem;
}

.project-text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.project-text li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0.5rem 0;
    padding: 0;
}

.project-text .button {
    margin-top: 3rem;
}

@media screen and (max-width: 768px) {
    .project-container {
        flex-direction: column;
        gap: 2rem;
    }

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

    .project-detail h2 {
        font-size: 2rem;
        text-align: center;
    }

    .project-text p,
    .project-text li {
        font-size: 1rem;
    }

    .project-text h3 {
        font-size: 1.3rem;
    }
}

/* Update existing styles */
.detailcontent {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#terugbutton {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    color: #7e73ed;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease;
    z-index: 10;
}

#terugbutton:hover {
    transform: translateX(-5px);
}

#terugbutton i {
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    #terugbutton {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1rem;
    }
}

/* Case Study Styles */
.case-study {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

.case-header {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.case-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: #000;
    margin: 0;
}

.case-intro {
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #4a4a4a;
}

.intro-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.meta-item i {
    font-size: 1.5rem;
    color: #7e73ed;
    margin-top: 0.2rem;
}

.meta-content {
    flex: 1;
}

.meta-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin: 0 0 0.5rem;
}

.meta-content p {
    font-size: 1rem;
    color: #4a4a4a;
    margin: 0;
}

.case-hero {
    margin: 4rem auto;
    padding: 0 2rem;
    max-width: 1400px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: clamp(12px, 2vw, 20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.case-content {
    padding: 4rem 2rem;
}

.content-block {
    max-width: 1200px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: #000;
    margin: 0 0 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: clamp(2.5rem, 4vw, 3rem);
    height: clamp(2.5rem, 4vw, 3rem);
    background-color: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: #7e73ed;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: #000;
    margin: 0 0 1rem;
}

.feature-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.case-footer {
    padding: 2rem;
    text-align: center;
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-meta {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .case-header {
        padding: 6rem 1.5rem 3rem;
    }

    .case-intro,
    .case-hero,
    .case-content {
        padding: 0 1.5rem;
    }

    .back-nav {
        top: 1.5rem;
        left: 1.5rem;
    }

    .features-grid {
        gap: 2.5rem;
    }

    .meta-item {
        gap: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .case-header {
        padding: 5rem 0rem 2rem;
    }

    .case-intro,
    .case-hero,
    .case-content {
        padding: 0;
        min-height: 0;
    }

    .intro-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .back-nav {
        top: 1rem;
        left: 1rem;
    }

    .back-link span {
    font-size: 5vw;
    
        /* display: none; */
    }

    .back-link {
        padding: 0.8rem;
        top: 1rem;
    }

    .features-grid {
        gap: 2rem;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .case-study {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .back-nav {
        left: max(2rem, env(safe-area-inset-left));
    }
}

.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #7e73ed;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem;
    transition: transform 0.3s ease;
    z-index: 100;
}

.back-link i {
    font-size: 1.5rem;
}

.back-link:hover {
    transform: translateX(-5px);
}

@media screen and (max-width: 768px) {
    .back-link {
        top: 1.5rem;
        left: 1.5rem;
        padding: 0.8rem;
    }

    .back-link span {
        font-size: 5vw;
    }
}

@media screen and (max-width: 480px) {
    .back-link {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem;
    }

    .back-link span {
        font-size: 5vw;
    }

    .back-link i {
        font-size: 1.2rem;
    }
}
