@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=JetBrains+Mono&display=swap');
        
body { font-family: 'Inter', sans-serif; background-color: #ffffff; color: #000000; overflow-x: hidden;}
.mono { font-family: 'JetBrains Mono', monospace; }

/* Asymmetrical Typography */
.hero-title { font-size: clamp(2rem, 6vw, 8rem); line-height: 0.8; letter-spacing: -0.05em; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: transform 0.6s ease, opacity 0.6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* The New "Industrial Orange" Circular Button */
.btn-action {
    width: 90px;
    height: 90px;
    background-color: #FF5733; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Smooth transitions for all properties except the pulse */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                border 0.3s ease;
    
    position: relative;
    z-index: 1;
}


.btn-action::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,87,51,0.4);
    animation: pulseScale 2s infinite;
}


.btn-action:hover {

    transform: scale(1.1) rotate(90deg);
    border: #FF5733 4px solid;
    background-color: #ffffff; /* Optional: high contrast hover */
}

.btn-action:hover::after{
    transform: scale(1.1);
    animation: none !important;
    box-shadow: none !important;
    
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Structural Glass Effect */
.glass-panel {
    /* background: rgba(255,255,255,0.6); */
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

@media (min-width: 1024px) {
    .glass-panel {
        backdrop-filter: blur(20px);
    }
}

/* Gallery Drawer */
.gallery-card .drawer {
    transform: translateX(-100%);
}
.gallery-card:hover .drawer { transform: translateX(0); }

.calligraphy-text {
    font-family: 'Great Vibes', cursive;
}


#gallery-card-rigid-box{
    background-image: url('../resources/rigidbox.png');
}

#gallery-card-mono-box{
    background-image: url('../resources/mono_carton.png');
}

#gallery-card-paperboard{
    background-image: url('../resources/paperboard_bags.png');
}

#box-3d {
    transform-style: preserve-3d;
    will-change: transform;
}

#box-3d > div {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cube-face{
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    /* Prevents jagged edges in some browsers */
    outline: 1px solid transparent;
}

/* wobble animation */

/* .wobble{
    position: relative;
    animation: moveBox 2s ease-in-out infinite alternate;

} */

@keyframes moveBox {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }

}


/* Hide orange overlay by default */
.product-card{
    height: 10vh;
    /* width: 10vh; */
}
.product-card .product-content {
    opacity: 0;
    transform: translateY(100%); /* Slides completely out of view */
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card > div:first-child{
    width: 10vh;
    height: 10vh;
}

/* Show orange overlay only when card is active */
.product-card.active .product-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}




/* =========================================
   LOCATION SECTION BASE
========================================= */

#location {
    position: relative;
    overflow: hidden;
}


/* =========================================
   3D SCENE WRAPPER
========================================= */

.map-scene {
    perspective: 1600px;
    width: 100%;
    height: 420px;   /* smaller frame */
    overflow: hidden;   /* THIS creates cinematic crop */
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-15%, -10%);
}

.map-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(to right,
            #0c0f14 0%,
            transparent 20%,
            transparent 80%,
            #0c0f14 100%
        ),
        linear-gradient(to bottom,
            #0c0f14 0%,
            transparent 15%,
            transparent 85%,
            #0c0f14 100%
        );
}



/* =========================================
   ROTATING MAP SLAB
========================================= */

.map-3d {
    width: 130%;
    aspect-ratio: 5 / 3;
    min-height: 250px;

    will-change: transform;
    backface-visibility: hidden;

    position: absolute;
    left: 50%;
    top: 50%;

    transform-style: preserve-3d;
    transform:
        translate(-50%, -50%)
        rotateX(60deg)
        scale(1.4);

    animation: rotateMap 30s linear infinite;

    filter: none;
}

/* SVG fills slab */

.map-3d svg {
    width: 100%;
    height: 100%;
    display: block;
    /* filter: drop-shadow(0 0 30px rgba(255,255,255,0.05)); */
}


/* Fake thickness under slab */

.map-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.02);
    transform: translateZ(-25px);
    filter: blur(25px);
}


.map-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: 0 80px 100px rgba(0,0,0,0.6);
    pointer-events: none;
}


/* =========================================
   MAP ROTATION
========================================= */

@keyframes rotateMap {
    from {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(0deg);
    }
    to {
        transform:
            translate(-50%, -50%)
            rotateX(60deg)
            rotateZ(360deg);
    }
}

@media (max-width: 1024px) {
    .map-scene{
        display: none;
    }

    .map-3d {
        animation: none;
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(20deg);
    }
}

/* =========================================
   3D LOCATION PIN (HTML ELEMENT)
   MUST BE OUTSIDE .map-3d
========================================= */

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 20px;
    height: 20px;
    background: #FF5733;
    border-radius: 50%;

    box-shadow:
        0 0 25px rgba(255,87,51,0.7),
        0 0 60px rgba(255,87,51,0.3);

    transform: translate(-50%, -50%) translateZ(0);
    transform-style: preserve-3d;

    animation: popPin 0.6s ease-out forwards;
    animation-delay: 4s;

    cursor: pointer;
}


/* =========================================
   PIN POP OUT ANIMATION
========================================= */

@keyframes popPin {
    0% {
        transform:
            translate(-50%, -50%)
            translateZ(0)
            scale(0.6);
        opacity: 0;
    }

    60% {
        transform:
            translate(-50%, -50%)
            translateZ(140px)
            scale(1.1);
        opacity: 1;
    }

    100% {
        transform:
            translate(-50%, -50%)
            translateZ(100px)
            scale(1);
    }
}



#carousel-track::-webkit-scrollbar {
    height: 6px;
}

#carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

#carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
}

#carousel-track {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.active-filter {
    background: #f97316;
    color: black;
}



#cursor-cube {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    perspective: 400px;
    pointer-events: none; /* Allows you to click "Partner With Us" through the cube */
    z-index: 9999; /* Higher than your navbar and glass-panels */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 4s infinite linear;
}

.c-face {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 87, 51, 0.2); /* Your Orange */
    border: 1px solid rgba(255, 87, 51, 0.8);
}

/* Position faces to form a cube */
.front  { transform: translateZ(10px); }
.back   { transform: rotateY(180deg) translateZ(10px); }
.right  { transform: rotateY(90deg) translateZ(10px); }
.left   { transform: rotateY(-90deg) translateZ(10px); }
.top    { transform: rotateX(90deg) translateZ(10px); }
.bottom { transform: rotateX(-90deg) translateZ(10px); }

@keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}








.partners {
    max-width: 1400px;
    margin: auto;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.logo-cell {
    height: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: white;
}

.logo-cell svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}


@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.animate-logo-scroll {
  animation: logo-scroll 40s linear infinite;
}


.logo-card-border-left{
    border-left: 1px solid rgba(0,0,0,0.1);
}

.border-logo-top{
    border-top: 1px solid rgba(0,0,0,0.1);
}