@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

.marquee {
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.counter {
    transition: all 2s ease-out;
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-bg {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.sky-blue-gradient {
    background: linear-gradient(135deg, #87CEEB 0%, #5BA0D0 100%);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

body {
    zoom: 80%;
}

.hero-fade {
    position: relative;
}

.hero-fade::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/Images/Picture25.png');
    background-size: cover;
    background-position: center;
    opacity: 0.99;
    z-index: 0;
}

.hero-fade::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, white 1%, transparent 99%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #87CEEB;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Marquee / Slideshow Styles */
.marquee-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ad-like Category Card */
.ad-card {
    min-width: 260px;
    height: 140px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(135, 206, 235, 0.15);
    display: flex;
    align-items: center;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(135, 206, 235, 0.08);
    cursor: pointer;
}

.ad-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(135, 206, 235, 0.2);
    border-color: rgba(135, 206, 235, 0.5);
    z-index: 10;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
}

.ad-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(135, 206, 235, 0.08), transparent 70%);
    opacity: 0.5;
    transition: opacity 0.4s;
}

.ad-card:hover .ad-card-bg {
    opacity: 1;
}

.ad-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: linear-gradient(135deg, #87CEEB 0%, #5BA0D0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.2);
    margin-right: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: rotate(-3deg);
}

.ad-card:hover .ad-icon-wrapper {
    transform: rotate(3deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.3);
}

.ad-icon-wrapper i {
    font-size: 1.8rem;
    color: white;
    filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.4));
}

.ad-content {
    position: relative;
    z-index: 10;
}

.ad-content h3 {
    font-weight: 700;
    font-size: 1.35rem;
    color: #1f2937;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.ad-content span {
    display: inline-block;
    font-size: 0.7rem;
    color: #87CEEB;
    background: rgba(135, 206, 235, 0.08);
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    border: 1px solid rgba(135, 206, 235, 0.15);
}

.ad-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #87CEEB;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.ad-card:hover .ad-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* What We Buy Marquee - Slower Speed */
.marquee-container.services-marquee .marquee-content {
    animation: marquee-scroll 40s linear infinite;
}

/* Team ID Only Styles */
.team-id-only {
    width: auto;
    height: auto;
    max-width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(135, 206, 235, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 5px solid rgba(135, 206, 235, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-id-only:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 40px 80px rgba(135, 206, 235, 0.5);
    border-color: rgba(135, 206, 235, 0.7);
}

.team-id-only-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    max-width: 600px;
    max-height: 450px;
}

.team-id-only:hover .team-id-only-image {
    transform: scale(1.05);
}

/* Junkshop Particles Animation */
.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.7;
    animation: float-up 10s infinite linear;
    z-index: 1;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.particle-metal {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #8B8C89 0%, #696969 50%, #A9A9A9 100%);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.particle-plastic {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 50%, #03A9F4 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(79, 195, 247, 0.3);
}

.particle-paper {
    width: 18px;
    height: 24px;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 50%, #FFEB3B 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(255, 235, 59, 0.2);
    transform: rotate(45deg);
}

.particle-bottle {
    width: 14px;
    height: 22px;
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 50%, #4CAF50 100%);
    border-radius: 7px 7px 3px 3px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.particle-copper {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #B87333 0%, #CD7F32 50%, #E4A853 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(184, 115, 51, 0.3);
}

.particle-electronic {
    width: 20px;
    height: 12px;
    background: linear-gradient(135deg, #37474F 0%, #455A64 50%, #546E7A 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(55, 71, 79, 0.3);
}

.particle-aluminum {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 50%, #9E9E9E 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.3);
}

.particle-cardboard {
    width: 22px;
    height: 16px;
    background: linear-gradient(135deg, #D7CCC8 0%, #BCAAA4 50%, #A1887F 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(161, 136, 127, 0.3);
}

.particle-glass {
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(200, 230, 255, 0.6) 50%, rgba(150, 200, 255, 0.4) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(150, 200, 255, 0.4);
}

.particle-steel {
    width: 24px;
    height: 8px;
    background: linear-gradient(135deg, #607D8B 0%, #455A64 50%, #37474F 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(55, 71, 79, 0.4);
}

/* Fleet Slideshow Reverse Scroll */
@keyframes marquee-scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Fleet Slideshow Standard Scroll (Right-to-Left) Slower */
.marquee-slow-scroll {
    animation: marquee-scroll 40s linear infinite !important;
}

.marquee-reverse-scroll {
    animation: marquee-scroll-reverse 300s linear infinite !important;
}

/* Image Slider Card Styles */
.dctechContainer {
    position: relative;
    width: 100%;
    height: 400px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dctechContainer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(135, 206, 235, 0.4);
}

.cardsPNG {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dctechContainer:hover .cardsPNG {
    transform: scale(1.05);
}

.cardText {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100px);
    /* Initially hidden or pushed down */
    transition: transform 0.3s ease;
    opacity: 0;
}

.dctechContainer:hover .cardText {
    transform: translateY(0);
    opacity: 1;
}

.cardText h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #87CEEB;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cardText p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f0f9ff;
    /* Hide description for now as we don't have text */
}

/* Mobile Responsiveness for Image Slider */
@media (max-width: 768px) {
    .dctechContainer {
        height: 450px;
        /* Taller height for portrait look on tablets/mobile */
    }

    .cardText h3 {
        font-size: 1.2rem;
        /* Smaller font size */
    }

    .cardText {
        padding: 15px;
        /* Less padding */
    }
}

@media (max-width: 480px) {
    .dctechContainer {
        height: 500px;
        /* Even taller for portrait look on small screens */
    }

    .dctechContainer:hover {
        transform: none;
        /* Disable hover lift on touch devices */
    }

    /* Always show text on mobile/touch if desired, or keep tap-to-show behavior via hover/focus */
    .cardText {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    }
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet-active {
    background-color: #87CEEB !important;
}

/* New Preloader Styles */
.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #87CEEB;
    /* Skyblue */
    position: relative;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 0.3s spin linear infinite;
}

.loader:after {
    color: #B0E0E6;
    /* Powder Blue for contrast */
    transform: rotateY(70deg);
    animation-delay: .2s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {

    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }

    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}