/* start header */
.header{
    background-color: var(--main-bg);
    position: relative;
    box-shadow: 0 3px 12px rgba(0,0,0,0.6);
    border-bottom: 1px solid rgba(74,66,56,0.3);
}
.header .container{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header .logo{
    font-weight: bold;
    font-size: 26px;
    color: var(--accent-gold);
    height: 73px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header .links{
    display: flex;
}
.header .container > .links{
    flex-wrap: wrap;
    justify-content: center;
}
.header .links > li > a{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 73px;
    color: var(--text-main);
    padding: 0 30px;
    position: relative;
    transition: var(--main-transition);
    overflow: hidden;
    white-space: nowrap;
}
.header .links > li > a::before{
    content: "";
    width: 100%;
    height: 4px;
    background-color: var(--accent-gold);
    position: absolute;
    top: 0%;
    left: -100%;
    transition: var(--main-transition);
}
.header .links > li > a:hover{
    color: var(--accent-gold);
    background-color: rgba(197,160,89,0.06);
}
.header .links > li > a:hover::before{
    left: 0%;
    transition: var(--main-transition);
}
@media (max-width: 991px){
    .header .logo{
        width: 100%;
        height: 60px;
    }
    .header .links{
        margin: auto;
    }
    .header .links > li > a{
        font-size: 14px;
        height: 30px;
        padding: 30px 15px;
    }
}

    /* start mega menu */
.header .links li:last-child{
    position: static;
}
.header .megamenu{
    position: absolute;
    top: calc(100% + 10px);
    left: 15px;
    right: 15px;
    width: auto;
    padding: 30px;
    background-color: var(--main-bg);
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    box-shadow: 14px 14px 12px rgba(0,0,0,0.6);
    border-radius: 5px;
    border-width: 15px;
    border-style: ridge;
    border-color: var(--border-color);
    transition: var(--main-transition);
}
.header .megamenu .image img{
    max-width: 260px;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 280ms cubic-bezier(.2,.9,.2,1), filter 280ms ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, filter;
}
.header .megamenu .image:hover{
    perspective: 900px;
}
.header .megamenu .image img:hover{
    transform: scale(1.04);
}

/* subtle filter on hover (combined with JS tilt) */
.header .megamenu .image img.is-interactive-hover{
    filter: brightness(1.04) saturate(1.03);
}
.header .megamenu li{
    position: relative;
}
.header .megamenu li:not(:last-child)::before{
    content: "";
    background-color: var(--accent-gold);
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    z-index: 100;
}
.header .megamenu #instead-list-1,
.header .megamenu #instead-list-2{
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.header .megamenu a{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}
.header .megamenu .links > li > a{
    height: auto;
    min-height: 50px;
    justify-content: flex-start;
    padding: 12px 10px;
    overflow: visible;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.header .megamenu .links > li > a::before{
    display: none;
}
.header .megamenu .links > li > a:hover{
    color: var(--accent-hover);
    background-color: rgba(197, 160, 89, 0.08);
}
.header .megamenu a i,
.header .megamenu a .icon{
    display: inline-block;
    flex: 0 0 auto;
}
.header .megamenu{
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
    pointer-events: none;
}
.header .links li:hover .megamenu,
.header .links li.mega-open .megamenu,
.header .megamenu.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
@media (max-width: 991px){
    .header .megamenu .image{
        display: none;
    }
    .header .megamenu{
        gap: 18px;
        padding: 20px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px){
    .header .container{
        padding-left: 0;
        padding-right: 0;
    }
    .header .links{
        width: 100%;
        justify-content: center;
    }
    .header .container > .links > li{
        flex: 1 1 auto;
    }
    .header .links > li > a{
        font-size: 12px;
        padding: 22px 6px;
    }
    .header .megamenu{
        left: 10px;
        right: 10px;
        grid-template-columns: 1fr;
        transform: translateY(8px) scale(0.98);
    }
    .header .megamenu .links > li > a{
        min-height: 46px;
        padding: 11px 8px;
        font-size: 13px;
    }
    .header .links li:hover .megamenu,
    .header .links li.mega-open .megamenu,
    .header .megamenu.show{
        transform: translateY(0) scale(1);
    }
}
    /* end mega menu */
/* end header */

/* start landing */
.landing{
    position: relative;
}
.landing::before{
    content: "";
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--secondary-bg);
    transform: skewY(-15deg);
    transform-origin: top left;
}
.landing .container{
    min-height: calc(100vh - 73px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.landing .text{
    flex: 1;
}
.landing .text h1{
    color: var(--text-main);
    font-size: 40px;
    margin-top: 25px;
}
.landing .text p{
    color: var(--text-dim);
    font-size: 20px;
    line-height: 1.7;
    letter-spacing: 0;
    max-width: 620px;
}
.landing .hero-scene{
    width: 600px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background:
        radial-gradient(circle at 50% 38%, rgba(197, 160, 89, 0.18), transparent 28%),
        linear-gradient(180deg, #17130f, #2d2822 58%, #15120f);
    animation: float-soft 6s ease-in-out infinite;
}
.landing .hero-scene::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(229, 225, 216, 0.08), transparent 24%),
        radial-gradient(circle at 50% 92%, rgba(139, 0, 0, 0.32), transparent 28%);
    pointer-events: none;
    z-index: 2;
}
.landing .hero-scene canvas,
.landing .hero-scene img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.landing .hero-scene canvas{
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.landing .hero-scene.scene-ready canvas{
    opacity: 1;
}
.landing .hero-scene.scene-ready img{
    opacity: 0;
}
.landing img{
    width: 600px;
    max-width: 100%;
    display: block;
    transform-origin: center;
    will-change: transform;
    transition: transform 0.3s ease, opacity 0.5s ease;
    border-radius: 6px;
    object-fit: cover;
}
@media (max-width: 991px){
    .landing .container{
        justify-content: center;
        text-align: center;
        padding-top: 55px;
        padding-bottom: 90px;
    }
    .landing .text{
        flex-basis: 100%;
    }
    .landing .text p{
        margin-left: auto;
        margin-right: auto;
    }
    .landing .image{
        margin-top: 25px;
    }
    .landing .hero-scene,
    .landing img{
        width: min(480px, 100%);
    }
}
@media (max-width: 767px){
    .landing .text h1{
        font-size: 32px;
        line-height: 1.25;
    }
    .landing .text p{
        font-size: 17px;
    }
}
.landing .go-down-arrow{
    color: var(--accent-gold);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
}
.landing .go-down-arrow:hover{
    color: var(--accent-hover);
}
.landing .go-down-arrow i{
    animation: bouncing 3s infinite;
}

    /* start animations */
@keyframes float-soft{
    0%{ transform: translateY(0px) rotate(0deg); }
    50%{ transform: translateY(-16px) rotate(-3deg); }
    100%{ transform: translateY(0px) rotate(0deg); }
}
@keyframes bouncing{
    0%, 10%, 20%, 50%, 80%, 100%{
        transform: translateY(0);
    }
    40%, 60%{
        transform: translateY(-15px);

    }
}
    /* end animations */

/* end landing */
