/* ===================================
   TechSupply - Unified Styles
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #f8fafc;
}

/* ===================================
   Gradient Backgrounds
   =================================== */

.gradient-bg {
    background: linear-gradient(135deg, #0c1e3d 0%, #1e3a5f 50%, #2d5a8f 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) translateY(-20px);
        opacity: 0.5;
    }
}

/* ===================================
   Glassmorphism Effects
   =================================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   Gradient Text
   =================================== */

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Cards & Containers
   =================================== */

.card-modern {
    background: white;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

/* ===================================
   Buttons
   =================================== */

.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    border: 2px solid #2c2c2c;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2c2c2c;
    color: white;
}

/* ===================================
   Animations
   =================================== */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===================================
   Grid Pattern
   =================================== */

.grid-pattern {
    background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===================================
   Navigation
   =================================== */

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* ===================================
   Stats & Numbers
   =================================== */

.stat-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
}

/* ===================================
   Timeline
   =================================== */

.timeline-item {
    position: relative;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ===================================
   Product Styles
   =================================== */

/* Category Filter Buttons */
.category-btn {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.category-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.category-btn:hover:not(.active) {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

/* Product Gradients */
.product-gradient-1 {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
}

.product-gradient-2 {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
}

.product-gradient-3 {
    background: linear-gradient(135deg, #ddd6fe 0%, #fce7f3 100%);
}

.product-gradient-4 {
    background: linear-gradient(135deg, #cffafe 0%, #dbeafe 100%);
}

.product-gradient-5 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.product-gradient-6 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-image {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Product Single Page */
.product-main-image {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.product-thumbnail {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #3b82f6;
    transform: scale(1.05);
}

/* Badges */
.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-featured {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ===================================
   Tabs
   =================================== */

.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* ===================================
   FAQ Accordion
   =================================== */

.faq-item {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.active {
    max-height: 600px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

/* ===================================
   Forms
   =================================== */

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ===================================
   Contact Page Specific
   =================================== */

.contact-method {
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
}

.map-placeholder {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.05) 0px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0px, transparent 1px, transparent 20px);
}

.hours-item {
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ===================================
   Breadcrumb
   =================================== */

.breadcrumb-link {
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

/* ===================================
   Feature Icons & Values
   =================================== */

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ===================================
   Utilities
   =================================== */

.glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
