/* 
 * ST Design Electronics - Custom Styles
 * Additional styles beyond Tailwind CSS
 */

/* ============================================
   BASE & RESET
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-overlay {
    background: linear-gradient(
        135deg, 
        rgba(30, 58, 138, 0.92) 0%, 
        rgba(30, 58, 138, 0.75) 50%, 
        rgba(37, 99, 235, 0.65) 100%
    );
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   IMAGE ZOOM EFFECT
   ============================================ */

.img-zoom {
    overflow: hidden;
    position: relative;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* ============================================
   BUTTON PULSE ANIMATION
   ============================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* ============================================
   NAVIGATION BLUR EFFECT
   ============================================ */

.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   LAZY LOADING PLACEHOLDER
   ============================================ */

.lazy-img {
    background: linear-gradient(
        90deg, 
        #e2e8f0 25%, 
        #f1f5f9 50%, 
        #e2e8f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { 
        background-position: 200% 0; 
    }
    100% { 
        background-position: -200% 0; 
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 640px) {
    .hero-overlay {
        background: linear-gradient(
            135deg, 
            rgba(30, 58, 138, 0.95) 0%, 
            rgba(37, 99, 235, 0.80) 100%
        );
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    nav,
    footer,
    .btn-pulse,
    #view-more-btn {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}
