/* Custom transitions and glassmorphism */
:root {
    --primary: #ff6b00;
    --primary-dark: #cc5500;
    --bg-warm: #fff8f0;
    --dark-color: #22201F;
}

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--bg-warm);
    color: #1a1a1a;
    overflow-x: hidden;
}

.glass-dark {
    background: rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-gradient {
    background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 107, 0, 0.05), transparent 40%);
}

.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slider-card {
    transition: all 0.5s ease;
    flex-shrink: 0;
}



.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
    color: white !important;
    transform: scale(1.1);
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after {
    width: 100%;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-premium {
    background: #F2E8D8;
    border: 4px solid #ECE1CF;
    box-shadow: 0 29px 12px rgba(108, 113, 128, 0.01), 0 17px 10px rgba(108, 113, 128, 0.04), 0 7px 7px rgba(108, 113, 128, 0.07), 0 2px 4px rgba(108, 113, 128, 0.08);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card-premium:hover {
    box-shadow: 0 40px 80px rgba(211, 71, 13, 0.25);
    border-color: transparent;
    transform: translateY(-8px) scale(1.02) translateZ(0);
}

.card-premium-dark {
    background: #22201F;
    border: none;
    color: white;
}

.card-dots {
    background-image: radial-gradient(#BFBDBC 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.abstract-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(241, 94, 34, 0.4) 0%, rgba(241, 94, 34, 0.1) 100%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

.floating-label {
    background: #22201F;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.card-endurance-featured {
    background: linear-gradient(135deg, #1A120B 0%, #D3470D 100%);
    border: 4px solid #F15E22;
    box-shadow: 0 20px 40px rgba(211, 71, 13, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.text-gradient-we {
    background: linear-gradient(135deg, #FF003D 0%, #7E00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
}

/* Custom Scrollbar for Case Study Modal */
#caseStudyContainer .overflow-y-auto::-webkit-scrollbar {
    width: 18px;
}

#caseStudyContainer .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#caseStudyContainer .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: padding-box;
}

#caseStudyContainer .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #B0B0B0;
    background-clip: padding-box;
}

@media (max-width: 1200px) {
    .logo-animation {
        top: -15% !important;
        left: -16% !important;
    }
}

@media (max-width: 1023px) {
    .logo-animation {
        left: 41% !important;
        top: -8% !important;
    }

    .build-system-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .build-system-content {
        margin-bottom: 3rem;
    }
}

@media (max-width: 640px) {
    .logo-animation {
        top: -10% !important;
    }
}

@media (max-width: 550px) {
    .logo-animation {
        top: -12% !important;
        left: 38% !important;
    }
}

@media (max-width: 480px) {
    .logo-animation {
        top: -14% !important;
        left: 34% !important;
    }
}

@media (max-width: 380px) {
    .logo-animation {
        top: -18% !important;
        left: 30% !important;
    }
}

@media (max-width: 340px) {
    .logo-animation {
        top: -20% !important;
        left: 27% !important;
    }
}