.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity .8s ease, visibility .8s ease
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(201, 169, 110, .2);
    border-radius: 10px;
    overflow: hidden
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #c9a96e, #d4b87a);
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards
}

@keyframes loading {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background: #0a0a0a
}

::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 10px
}

.navbar {
    transition: all .4s cubic-bezier(.4, 0, .2, 1)
}

.navbar.scrolled {
    background: rgba(10, 10, 10, .95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
    padding-top: .5rem !important;
    padding-bottom: .5rem !important
}

.nav-link {
    position: relative;
    transition: color .3s ease
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a96e;
    transition: width .3s ease
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%
}

.nav-link:hover,
.nav-link.active {
    color: #c9a96e
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(30px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto
}

.mobile-menu.open {
    transform: translateX(0)
}

.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    transition: color .3s ease, transform .3s ease;
    opacity: 0;
    transform: translateY(20px)
}

.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0)
}

.mobile-menu.open a:nth-child(1) {
    transition-delay: .1s
}

.mobile-menu.open a:nth-child(2) {
    transition-delay: .15s
}

.mobile-menu.open a:nth-child(3) {
    transition-delay: .2s
}

.mobile-menu.open a:nth-child(4) {
    transition-delay: .25s
}

.mobile-menu.open a:nth-child(5) {
    transition-delay: .3s
}

.mobile-menu.open a:nth-child(6) {
    transition-delay: .35s
}

.mobile-menu.open a:nth-child(7) {
    transition-delay: .4s
}

.mobile-menu.open a:nth-child(8) {
    transition-delay: .45s
}

.mobile-menu a:hover {
    color: #c9a96e;
    transform: translateX(10px)
}

.hamburger {
    z-index: 9999;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    border-radius: 2px
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: #c9a96e
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px)
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: #c9a96e
}

.page-hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, .7) 0%, rgba(26, 26, 46, .5) 100%), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&q=80') center/cover no-repeat;
    min-height: 65vh
}

.section-subtitle {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: .75rem
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a96e, #d4b87a)
}

.btn-primary {
    background: linear-gradient(135deg, #c9a96e, #d4b87a);
    color: #0a0a0a;
    transition: all .4s ease;
    position: relative;
    overflow: hidden
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4b87a, #e5cc9a);
    transition: left .4s ease;
    z-index: 0
}

.btn-primary:hover::before {
    left: 0
}

.btn-primary span {
    position: relative;
    z-index: 1
}

.btn-outline {
    border: 1px solid #c9a96e;
    color: #c9a96e;
    transition: all .4s ease
}

.btn-outline:hover {
    background: #c9a96e;
    color: #0a0a0a
}

.floating {
    animation: floating 6s ease-in-out infinite
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-20px)
    }
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #c9a96e;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform .15s ease;
    transform: translate(-50%, -50%)
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(201, 169, 110, .1)
}

@media(max-width:768px) {
    .custom-cursor {
        display: none
    }
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

/* GALLERY */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
    transition: all .4s ease
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(201, 169, 110, .1)
}

.gallery-item img {
    transition: transform .6s ease
}

.gallery-item:hover img {
    transform: scale(1.08)
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .5);
    opacity: 0;
    transition: opacity .4s ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease
}

.lightbox.active {
    opacity: 1;
    visibility: visible
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 110, .2);
    border: 1px solid rgba(201, 169, 110, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 10
}

.lightbox-close:hover {
    background: #c9a96e
}

.lightbox-close:hover svg {
    color: #0a0a0a !important
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 110, .2);
    border: 1px solid rgba(201, 169, 110, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease
}

.lightbox-nav:hover {
    background: #c9a96e
}

.lightbox-nav:hover svg {
    color: #0a0a0a !important
}

.lightbox-prev {
    left: 1.5rem
}

.lightbox-next {
    right: 1.5rem
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: .875rem;
    color: #9ca3af
}

/* INFO CARD */
.info-card {
    background: linear-gradient(145deg, rgba(42, 42, 58, .3), rgba(26, 26, 46, .5));
    border: 1px solid rgba(201, 169, 110, .1);
    transition: all .4s ease
}

.info-card:hover {
    border-color: rgba(201, 169, 110, .3);
    transform: translateY(-5px)
}

/* TIMELINE */
.timeline-item {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(201, 169, 110, .2)
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: #c9a96e;
    border-radius: 50%;
    border: 3px solid #0a0a0a
}

/* CHALLENGE CARD */
.challenge-card {
    background: linear-gradient(145deg, rgba(42, 42, 58, .2), rgba(26, 26, 46, .4));
    border: 1px solid rgba(201, 169, 110, .08);
    transition: all .4s ease;
    border-radius: 4px
}

.challenge-card:hover {
    border-color: rgba(201, 169, 110, .3);
    transform: translateY(-3px)
}

/* RELATED PROJECT */
.related-card {
    overflow: hidden;
    transition: all .5s ease
}

.related-card:hover {
    transform: translateY(-10px)
}

.related-card img {
    transition: transform .6s ease
}

.related-card:hover img {
    transform: scale(1.08)
}

.related-card .related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, .9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem
}

.related-card:hover .related-overlay {
    opacity: 1
}

/* PROGRESS BAR */
.progress-fill {
    height: 6px;
    background: linear-gradient(90deg, #c9a96e, #d4b87a);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(.4, 0, .2, 1)
}

/* CTA */
.cta-bg {
    background: linear-gradient(135deg, rgba(10, 10, 10, .85) 0%, rgba(26, 26, 46, .7) 100%), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1920&q=80') center/cover no-repeat fixed
}

@media(max-width:768px) {
    .cta-bg {
        background-attachment: scroll
    }
}

@supports(-webkit-touch-callout:none) {
    .cta-bg {
        background-attachment: scroll
    }
}

/* BEFORE AFTER SLIDER */
.ba-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none
}

.ba-before {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.ba-before img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ba-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c9a96e;
    cursor: col-resize;
    z-index: 10
}

.ba-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #c9a96e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3)
}

.ba-slider::before {
    content: '⟨ ⟩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: #0a0a0a;
    z-index: 11;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 4px
}

.ba-label {
    position: absolute;
    top: 1rem;
    padding: 4px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 5
}

.ba-label-before {
    left: 1rem;
    background: rgba(201, 169, 110, .9);
    color: #0a0a0a
}

.ba-label-after {
    right: 1rem;
    background: rgba(10, 10, 10, .7);
    color: #fff;
    border: 1px solid rgba(201, 169, 110, .3)
}