@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,700");

:root {
    --primary-color: #4a5058;
    --secondary-color: #ffffff;
    --text-color: #000000;
    --backdrop-one: #ffffffdd;
    --backdrop-two: #ffffff80;
    --hero: linear-gradient(147deg, #ffffffdd 40%, #eeeeee40 100%);
    --font: 'Poppins';
}

[data-theme="dark"] {
    --primary-color: #a98142;
    --secondary-color: #384149;
    --text-color: #ffffff;
    --hero: linear-gradient(147deg, #000000aa 20%, #22222240 100%);
    --backdrop-one: #000000dd;
    --backdrop-two: #22222240;
}

html {
    background: url(bg.jpg) no-repeat center center fixed;
    background-size: cover;
    scroll-behavior: smooth;
    view-timeline-name: --page-scroll;
    animation: zoom-bg linear;
    animation-timeline: --page-scroll;
    animation-range: entry 0% exit 100%;
}


/* Add this to ensure the animation works smoothly */
body {
    min-height: 200vh; /* Ensures there's enough scroll space */
    overflow-x: hidden;
}

body {
    font-family: var(--font), sans-serif;
    font-weight: 300;
    line-height: 1.75rem;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

header {
    background-image: var(--hero);
    height: 100vh;
    border-right: 50px solid var(--primary-color);
}

header h1 {
    margin: 2rem 0 0.25rem;
    font-size: clamp(1rem, 5vw, 2.5rem);
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 700;
}

header .titre {
    font-size: 34px;
    font-weight: 400;
}

header p {
    font-size: 1.1rem;
}

section {
    background: var(--backdrop-two);
    -webkit-backdrop-filter: blur(15px) grayscale(0.5);
    backdrop-filter: blur(15px) grayscale(0.5);
    height: 100vh;
    display: -webkit-inline-box;
    display: inline-block;
    -webkit-flex: 1;
    flex: 1;
    padding: 0;
    box-sizing: border-box;
}

section#go {
    background: var(--backdrop-one);
    -webkit-backdrop-filter: blur(2px) grayscale(0.5);
    backdrop-filter: blur(2px) grayscale(0.5);
    border-right: 50px solid var(--primary-color);
}

header svg path {
    fill: var(--primary-color);
}

.container {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 0;
}

.textbox {
    max-width: 640px;
    padding: 2rem;
}

.center {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

section.center.left {
    position: relative;
    z-index: 10;
}

.cta {
    display: inline-block;
    border: 2px solid var(--primary-color);
    border-radius: 100px;
    margin-top: 1rem;
    padding: 1rem 2rem;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1.25rem;
	color: #fff;
}

.cta:hover {
    background: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.info {
    font-size: 1.25rem;
	max-width: 350px;
}

.info b {
    font-size: 1.5rem;
}

.info .cv {
	font-size: 1rem;
	font-weight: 400;
}

.social i {
    font-size: 1.5rem;
    padding: 0 0.5rem 0 0;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 -5vw 0 0;
    height: 80vh;
    -webkit-place-items: center;
    place-items: center;
}

.gallery-item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.gallery-item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.gallery-item:nth-child(3) {
    grid-area: 3 / 1 / 4 / 2;
}

.gallery-item:nth-child(4) {
    grid-area: 2 / 2 / 4 / 3;
}

.gallery-item:nth-child(5) {
    grid-area: 4 / 1 / 5 / 3;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    display: block;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Add responsive adjustments */
@media screen and (max-width: 900px) {
    .gallery {
        margin: 0 auto;
        height: 50vh;
        grid-template-rows: repeat(3, minmax(10vh, 1fr));
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close .fa-light {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}

/* Social */
div.social-right {
    position: fixed;
    right: 0;
    width: 40px;
    transition: all 0.25s;
    padding: 5px;
    z-index: 5;
}

div.social-right i {
    font-size: 22px;
    width: 40px;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    cursor: pointer;
}

.ico-theme {
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 28px;
    color: var(--secondary-color);
    z-index: 5;
}

.ico-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 28px;
    color: #fff;
    z-index: 5;
}

@media screen and (max-width: 900px) {
    header p {
        font-size: 0.8rem;
		line-height: 1.3rem;
    }

    header .titre {
        font-size: 1.7rem;
    }

    .container {
        display: block;
    }

    .header-content svg,
    .header-content img {
        max-width: 80%;
    }
}