/* FONTS */

/* NotoSerifDisplay - FOR TITLE */
@font-face {
    font-family: "NotoSerifDisplay";
    src: url("../fonts/NotoSerifDisplay-VariableFont_wdth\,wght.ttf") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NotoSerifDisplay";
    src: url("../fonts/NotoSerifDisplay-Italic-VariableFont_wdth\,wght.ttf") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* NunitoSans - FOR DESCRIPTION */
@font-face {
    font-family: "NunitoSans";
    src: url("../fonts/NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NunitoSans";
    src: url("../fonts/NunitoSans-Italic-VariableFont_YTLC\,opsz\,wdth\,wght.ttf") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'NunitoSans', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-NotoSerifDisplay {
    font-family: "NotoSerifDisplay", sans-serif;
    font-weight: 300;
    letter-spacing: -4px;
}

.border-1 {
    border-width: 1px;
}

.hero-bg {
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
}

.custom-header {
    padding: 0;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    z-index: 11;
    height: 8px;
    width: 8px;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s linear;
}

.nav-link:hover::before {
    opacity: 1;
}

.social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Connecting line from image to button */
.connecting-line {
    position: absolute;
    width: 250px;
    height: 1px;
    background-color: #404040;
    top: 83%;
    right: -230px;
    transform: translateY(-50%);
}

/* Circle at the start of line (on image side) */
.connecting-line::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #404040;
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
}


.button-custom-line {
    position: relative;
}

.about-screen .button-custom-line::before {
    z-index: -1;
    width: 280%;
}

.button-custom-line::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -333px;
    transform: translateY(-50%);
    background-color: #404040;
    height: 1px;
}

.founder--section .button-custom-line::before {
    width: 280%;
    left: -362px;
    z-index: 9;
}

.testimonials--section {
    position: relative;
}

.testimonials--section::before {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.644);
    width: 100%;
    height: 100%;
}

.contact--section::before {
    content: "";
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url('../img/about-bg.webp');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Pour les grands écrans */
@media (min-width: 768px) {
    .contact--section::before {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .contact--section::before {
        height: 700px;
    }
}

/*  */

.services-contact-bg, .services--section {
    position: relative;
}

.services-contact-bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/portfolio-bg.webp);
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.services--section::after {
    content: "";
    position: absolute;
    left: 0;
    top: 55%;
    transform: translateY(-50%);
    width: 100%;
    height: 1px;
    background: #44302A;
    z-index: -1;
}

.services--section .font-NotoSerifDisplay {
    letter-spacing: -1px;
    transition: all .3s linear;
}

.services--section .card--service {
    height: 500px;
    width: 100%;
}



/* ================================
           PRELOADER STYLES
           ================================ */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Logo Container */
.preloader-logo {
    margin-bottom: 3rem;
    animation: logoFadeIn 1s ease-in-out;
}

.preloader-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(215, 186, 107, 0.3));
}

/* Elegant Luxury Loader */
.luxury-loader {
    position: relative;
    width: 200px;
    height: 200px;
}

/* Rotating Golden Circle */
.golden-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border: 2px solid transparent;
    border-top-color: #D7BA6B;
    border-right-color: #D7BA6B;
    border-radius: 50%;
    animation: rotateCircle 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.golden-circle-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border: 2px solid transparent;
    border-bottom-color: #C9A961;
    border-left-color: #C9A961;
    border-radius: 50%;
    animation: rotateCircle 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

/* Center Diamond/Square */
.center-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background: linear-gradient(135deg, #D7BA6B 0%, #C9A961 100%);
    transform: rotate(45deg);
    animation: diamondPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(215, 186, 107, 0.5);
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #D7BA6B;
    opacity: 0.4;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    animation: cornerFade 2s ease-in-out infinite;
}

.corner-decoration.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    animation: cornerFade 2s ease-in-out infinite 0.5s;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    animation: cornerFade 2s ease-in-out infinite 1s;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    animation: cornerFade 2s ease-in-out infinite 1.5s;
}

/* Loading Text */
.loading-text {
    margin-top: 3rem;
    color: #D7BA6B;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 300;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
    width: 30px;
    text-align: left;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Progress Bar (Optional) */
.progress-container {
    width: 250px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D7BA6B 0%, #C9A961 100%);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(215, 186, 107, 0.5);
}

/* Particles Effect */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #D7BA6B;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 0.5s;
}

/* ================================
           ANIMATIONS
           ================================ */

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateCircle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes diamondPulse {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes cornerFade {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

@keyframes particleFloat {
    0% {
        bottom: 0;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-logo img {
        width: 140px;
    }

    .luxury-loader {
        width: 150px;
        height: 150px;
    }

    .golden-circle {
        width: 100px;
        height: 100px;
        margin: -50px 0 0 -50px;
    }

    .golden-circle-2 {
        width: 80px;
        height: 80px;
        margin: -40px 0 0 -40px;
    }

    .loading-text {
        font-size: 0.75rem;
    }

    .progress-container {
        width: 200px;
    }
}


/* Custom Gallery Grid Layout */
.custom-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

/* Grid Item Positions - Matching Your Image Exactly */
.gallery-item-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
}

.gallery-item-2 {
    grid-column: 5 / 9;
    grid-row: 1 / 3;
}

.gallery-item-3 {
    grid-column: 9 / 13;
    grid-row: 1 / 3;
}

.gallery-item-4 {
    grid-column: 5 / 7;
    grid-row: 3 / 5;
}

.gallery-item-5 {
    grid-column: 7 / 9;
    grid-row: 3 / 5;
}

.gallery-item-6 {
    grid-column: 9 / 13;
    grid-row: 3 / 5;
}

.gallery-item-7 {
    grid-column: 1 / 4;
    grid-row: 4 / 7;
}

.gallery-item-8 {
    grid-column: 4 / 6;
    grid-row: 5 / 7;
}

.gallery-item-9 {
    grid-column: 6 / 10;
    grid-row: 5 / 7;
}

.gallery-item-10 {
    grid-column: 10 / 13;
    grid-row: 5 / 7;
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Overlay on Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(68, 48, 42, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Custom Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-gallery {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, 1fr);
        aspect-ratio: 4 / 5;
    }

    .gallery-item-1 {
        grid-column: 1 / 5;
        grid-row: 1 / 3;
    }

    .gallery-item-2 {
        grid-column: 5 / 9;
        grid-row: 1 / 3;
    }

    .gallery-item-3 {
        grid-column: 1 / 5;
        grid-row: 3 / 5;
    }

    .gallery-item-4 {
        grid-column: 5 / 9;
        grid-row: 3 / 5;
    }

    .gallery-item-5 {
        grid-column: 1 / 5;
        grid-row: 5 / 7;
    }

    .gallery-item-6 {
        grid-column: 5 / 9;
        grid-row: 5 / 7;
    }

    .gallery-item-7 {
        grid-column: 1 / 5;
        grid-row: 7 / 9;
    }

    .gallery-item-8 {
        grid-column: 5 / 9;
        grid-row: 7 / 9;
    }

    .gallery-item-9 {
        grid-column: 1 / 5;
        grid-row: 9 / 11;
    }

    .gallery-item-10 {
        grid-column: 5 / 9;
        grid-row: 9 / 11;
    }
}

@media (max-width: 640px) {
    .custom-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 250px);
        aspect-ratio: auto;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4,
    .gallery-item-5,
    .gallery-item-6,
    .gallery-item-7,
    .gallery-item-8,
    .gallery-item-9,
    .gallery-item-10 {
        grid-column: 1 / 2;
    }

    .gallery-item-1 {
        grid-row: 1 / 2;
    }

    .gallery-item-2 {
        grid-row: 2 / 3;
    }

    .gallery-item-3 {
        grid-row: 3 / 4;
    }

    .gallery-item-4 {
        grid-row: 4 / 5;
    }

    .gallery-item-5 {
        grid-row: 5 / 6;
    }

    .gallery-item-6 {
        grid-row: 6 / 7;
    }

    .gallery-item-7 {
        grid-row: 7 / 8;
    }

    .gallery-item-8 {
        grid-row: 8 / 9;
    }

    .gallery-item-9 {
        grid-row: 9 / 10;
    }

    .gallery-item-10 {
        grid-row: 10 / 11;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}