/* Main Design Tokens and Utilities */

:root {
    --primary: #FF5F1F;
    --primary-glow: rgba(255, 95, 31, 0.4);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

/* Contained page width for better readability */
.max-w-7xl {
    max-width: 1280px !important;
}

.max-w-6xl {
    max-width: 1152px !important;
}

@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 1440px !important;
    }
}

/* Glassmorphism Effect */
.glass-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
}

.dark .glass-effect {
    background: rgba(11, 14, 20, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-card {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bento Grid System - Premium (Isolating from homepage) */
.premium-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .premium-bento-grid {
        grid-template-columns: 1fr;
    }

    .premium-bento-item {
        grid-column: span 1 / span 1 !important;
        padding: 2rem;
    }
}

.premium-bento-item {
    position: relative;
    border-radius: 2.5rem;
    padding: 3rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-bento-item:hover {
    transform: translateY(-5px);
    animation: orange-glow-pulse 2s infinite ease-in-out;
}

.premium-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.light .premium-glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.premium-neon-orange {
    position: relative;
}

.premium-neon-orange::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.5s;
}

.premium-neon-orange:hover::after {
    opacity: 1;
}

.number-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c5f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.white-highlight {
    color: #0f172a;
    /* Slate 900 */
}

.dark .white-highlight {
    color: white;
}

/* Background Patterns */
.circuit-bg {
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    /* Better circuit-like pattern */
    opacity: 0.1;
}

.dark .circuit-bg {
    opacity: 0.1;
    filter: invert(1);
}

.grid-pattern {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Gradients */
.hero-gradient {
    background: radial-gradient(circle at top right, rgba(255, 95, 31, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 95, 31, 0.05), transparent 40%);
}

/* Glow Effects */
.glow-orange {
    box-shadow: 0 0 20px rgba(255, 95, 31, 0.2);
}

.glow-orange:hover {
    box-shadow: 0 0 30px rgba(255, 95, 31, 0.4);
}

.neon-glow {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.dark .neon-glow {
    box-shadow: 0 10px 40px -20px rgba(255, 95, 31, 0.2);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #0b0e14;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #1e293b;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Marquee Animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.group:hover .animate-marquee {
    animation-play-state: paused;
}

/* Brands Slider Enhancements */
.brand-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
    margin: 0 40px;
    position: relative;
    flex-shrink: 0;
}

.dark .brand-separator {
    background: linear-gradient(to bottom, transparent, #1e293b, transparent);
}

.brand-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #FF5F1F;
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(255, 95, 31, 0.4);
}

#brandsSlider {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    padding-left: 20px;
    padding-right: 20px;
}

#brandsSlider:active {
    cursor: grabbing;
}

#brandsSlider img {
    pointer-events: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brand-slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.brand-slider-btn:hover {
    background: #FF5F1F;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 95, 31, 0.3);
}

/* Brands Slider Progress Bar */
.slider-progress-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 95, 31, 0.1);
    border-radius: 99px;
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
}

.slider-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #FF5F1F;
    border-radius: 99px;
    transition: width 0.1s linear;
}

/* Pulse Glow Animation for Logo */
@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(255, 95, 31, 0.4)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(255, 95, 31, 0.8)) brightness(1.3);
    }
}

/* Custom Easing for Lightbox Pop */
.cubic-bezier {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-animate {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Certificate Scan Effect */
.scan-container {
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 95, 31, 0.05) 45%,
            rgba(255, 95, 31, 0.2) 50%,
            rgba(255, 95, 31, 0.05) 55%,
            transparent 100%);
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 20;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* Official Seal Styles */
.seal-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 95, 31, 0.1) 0%, rgba(255, 95, 31, 0.05) 100%);
    border: 1px solid rgba(255, 95, 31, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary);
    box-shadow: 0 4px 15px -1px rgba(255, 95, 31, 0.1);
}

.seal-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), transparent, var(--primary));
    opacity: 0.2;
    z-index: -1;
}

/* New Animation for Bento Items Hover */
@keyframes orange-glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 95, 31, 0.2),
            0 25px 50px -12px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 95, 31, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 95, 31, 0.6),
            0 25px 50px -12px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 95, 31, 0.8);
    }
}

.light .premium-bento-item:hover {
    animation: orange-glow-pulse-light 2s infinite ease-in-out;
}

@keyframes orange-glow-pulse-light {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 95, 31, 0.1),
            0 20px 40px -15px rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 95, 31, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 95, 31, 0.4),
            0 20px 40px -15px rgba(0, 0, 0, 0.1);
        border-color: rgba(255, 95, 31, 0.6);
    }
}

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100vw;
    height: 400px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

@media (min-width: 640px) {
    .hero-slider {
        height: 500px;
    }
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 700px;
    }
}

/* Slider Track */
.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-width: 100vw;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 95, 31, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FF5F1F;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark .slider-arrow {
    background: rgba(30, 41, 59, 0.9);
    color: #FF5F1F;
    border-color: rgba(255, 95, 31, 0.7);
}

.slider-arrow:hover {
    background: rgba(255, 95, 31, 0.95);
    border-color: rgba(255, 95, 31, 1);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 25px rgba(255, 95, 31, 0.6);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-left {
    left: 10px;
}

@media (min-width: 768px) {
    .slider-arrow-left {
        left: 20px;
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
    }
}

.slider-arrow-right {
    right: 10px;
}

@media (min-width: 768px) {
    .slider-arrow-right {
        right: 20px;
    }
}

/* Indicator Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show dots on hover */
.hero-slider:hover .slider-dots {
    opacity: 1;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.slider-dot.active {
    background: #FF5F1F;
    border-color: white;
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 95, 31, 0.8);
}

@media (max-width: 768px) {
    .slider-dots {
        bottom: 20px;
        gap: 8px;
        padding: 8px 16px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 95, 31, 0.2);
    border-radius: 16px;
    padding: 8px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.dark .dropdown-menu {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(255, 95, 31, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.dark .dropdown-item {
    color: #e2e8f0;
}

.dropdown-item:hover {
    background: rgba(255, 95, 31, 0.1);
    color: #FF5F1F;
    transform: translateX(4px);
}

.dropdown-item .material-icons-round {
    font-size: 20px;
    color: #FF5F1F;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.3s ease;
    font-size: 18px;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile dropdown styles */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active {
    max-height: 200px;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 32px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dark .mobile-dropdown-item {
    color: #94a3b8;
}

.mobile-dropdown-item:hover {
    color: #FF5F1F;
    padding-left: 36px;
}

.mobile-dropdown-item .material-icons-round {
    font-size: 18px;
}

/* --- Infinite Brands Carousel --- */
.brands-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.brands-carousel-container::before,
.brands-carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.dark .brands-carousel-container::before {
    background: linear-gradient(to right, #0f172a 0%, transparent 100%);
}

.brands-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.dark .brands-carousel-container::after {
    background: linear-gradient(to left, #0f172a 0%, transparent 100%);
}

.brands-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 4rem;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease-out;
}

.brands-track:active {
    cursor: grabbing;
}

.brands-track img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Prevent image dragging interfering with track dragging */
}

.brands-track img:hover {
    transform: scale(1.1);
}

.brand-separator {
    width: 1px;
    height: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
}

.dark .brand-separator {
    background: rgba(255, 255, 255, 0.1);
}