/* Custom Styles for ElectroHub */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #eff6ff 100%);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Icon Wrapper Animations */
.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.icon-wrapper:hover {
    transform: translateY(-5px);
}

.icon-bg {
    position: relative;
    padding: 8px;
    background: rgba(30, 58, 138, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.icon-wrapper:hover .icon-bg {
    background: rgba(37, 99, 235, 0.5);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.5);
}

/* Search Bar Animation */
.search-container input:focus {
    transform: translateY(-2px);
}

.search-container button:hover {
    transform: scale(1.05);
}

/* Category Menu Animations */
.category-item {
    position: relative;
    padding: 8px 16px;
}

.category-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-item:hover::after {
    width: 100%;
}

/* Mega Dropdown Animation */
.mega-dropdown {
    transform-origin: top;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Styling */
#heroSection {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    position: relative;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1);
}

/* Gradient Text Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

/* Particle Effects */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.7);
}

/* Logo Animation */
.logo-container h1 {
    position: relative;
    display: inline-block;
}

.logo-container h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ea580c, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container h1:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* Mega Menu Hover Effects */
.mega-dropdown li {
    position: relative;
    padding-left: 20px;
}

.mega-dropdown li::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    color: #a855f7;
}

.mega-dropdown li:hover::before {
    opacity: 1;
    left: 5px;
}

/* Topbar Animation on Scroll */
#topbar.scrolled {
    transform: translateY(-100%);
}

/* Navigation Sticky Enhancement */
#mainNav {
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

/* Three.js Container */
#threejs-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-container {
        max-width: 400px;
    }

    .mega-dropdown {
        width: 400px !important;
    }

    .mega-dropdown .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #topbar .flex:first-child {
        display: none;
    }

    .search-container {
        display: none;
    }

    .category-item {
        padding: 8px 12px;
        font-size: 14px;
    }

    .mega-dropdown {
        width: 300px !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .mega-dropdown .grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 3rem !important;
    }
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(236, 72, 153, 0.3),
        0 0 60px rgba(59, 130, 246, 0.2);
}

/* Neon Border Animation */
@keyframes neon-border {

    0%,
    100% {
        border-color: #a855f7;
        box-shadow: 0 0 10px #a855f7;
    }

    50% {
        border-color: #ec4899;
        box-shadow: 0 0 20px #ec4899;
    }
}

.neon-border {
    animation: neon-border 2s ease-in-out infinite;
}

/* Tilt Effect for Cards */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Hero Content Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(168, 85, 247, 0.5);
    border-radius: 50%;
}

/* Custom Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Floating Shapes Animation */
@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 20px) rotate(3deg);
    }
}

.floating-shape {
    animation: floatShape 20s ease-in-out infinite;
}

/* Feature Cards Animation  */
.feature-card {
    transform-origin: center;
    animation: fadeInScale 0.6s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Secondary Button */
.hero-secondary {
    position: relative;
    overflow: hidden;
}

.hero-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.125rem !important;
    }

    .feature-cards {
        grid-template-columns: 1fr !important;
    }

    #lottie-gadgets {
        display: none;
    }
}

/* Slider Styles */
.slider-content {
    position: relative;
    min-height: 500px;
}

.slide {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.slide.active {
    position: relative;
    opacity: 1 !important;
    transform: translateX(0);
}

.slide:not(.active) {
    position: absolute;
    opacity: 0 !important;
    transform: translateX(-20px);
    pointer-events: none;
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    width: 48px;
}

.slider-dot:hover:not(.active) {
    background: #9ca3af;
}

/* 3D TV LED Panel Hero Section */
#monitor-canvas {
    z-index: 0;
}

#heroSection {
    padding-top: 20px !important;
    min-height: 100vh !important;
}

.tv-screen-content {
    animation: fadeInUp 1.2s ease-out;
}

.monitor-screen-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Gradient Text */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Stat Cards for TV Screen */
.stat-card-tv {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out backwards;
}

.stat-card-tv:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card-tv:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card-tv:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card-tv:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-card-tv:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Original Stat Cards */
.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Particles */
.particles-container {
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {

    .monitor-screen-content h1,
    .tv-screen-content h1 {
        font-size: 1.875rem !important;
    }

    .monitor-screen-content p,
    .tv-screen-content p {
        font-size: 0.875rem !important;
    }

    .stat-card,
    .stat-card-tv {
        padding: 0.75rem;
    }

    .stat-card .text-4xl {
        font-size: 1.5rem;
    }

    .stat-card-tv .text-2xl {
        font-size: 1.25rem;
    }
}