﻿/* ============================================================
   HavocTech Armory - Futuristic Homepage Styles
   World-Class E-commerce Design System
   NOTE: Uses CSS variables from site-futuristic.css
   ============================================================ */

/* ============================================================
   HOMEPAGE-SPECIFIC SPACING
   ============================================================ */
:root {
    /* Spacing */
    --htf-section-padding: clamp(4rem, 8vw, 8rem);
    
    /* Transitions */
    --htf-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FUTURISTIC PAGE WRAPPER
   ============================================================ */
.htf-homepage {
    background: var(--htf-primary);
    color: var(--htf-text-primary);
    overflow-x: hidden;
    position: relative;
}

.htf-homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: var(--htf-bg-gradient-opacity, 1);
    transition: opacity 0.3s ease;
}

/* Light theme homepage wrapper */
[data-theme="light"] .htf-homepage {
    background: var(--htf-primary);
}

[data-theme="light"] .htf-homepage::before {
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
}

/* ============================================================
   ANIMATED BACKGROUND GRID
   ============================================================ */
.htf-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .htf-grid-bg {
    background-image: 
        linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ============================================================
   HERO SECTION - IMMERSIVE EXPERIENCE
   ============================================================ */
.htf-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.htf-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.htf-hero-bg video,
.htf-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.htf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 15, 26, 0.3) 0%,
        rgba(10, 15, 26, 0.7) 50%,
        rgba(10, 15, 26, 0.95) 100%
    );
    z-index: 1;
}

.htf-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.htf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--htf-accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.htf-hero-badge i {
    animation: pulse 2s infinite;
}

.htf-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--htf-accent) 50%, var(--htf-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.htf-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--htf-text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.htf-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Futuristic Buttons */
.htf-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--htf-transition-medium);
    cursor: pointer;
}

.htf-btn-primary {
    background: linear-gradient(135deg, var(--htf-accent) 0%, var(--htf-accent-secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.htf-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    color: white;
}

.htf-btn-primary::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;
}

.htf-btn-primary:hover::before {
    left: 100%;
}

.htf-btn-glass {
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    color: var(--htf-text-primary);
}

.htf-btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--htf-accent);
    color: var(--htf-accent);
    transform: translateY(-3px);
}

/* Hero Scroll Indicator */
.htf-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.htf-scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--htf-text-muted);
}

.htf-scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--htf-text-muted);
    border-radius: 12px;
    position: relative;
}

.htf-scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--htf-accent);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 20px; }
}

/* ============================================================
   LIVE STATS BANNER
   ============================================================ */
.htf-stats-banner {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, var(--htf-primary-light), var(--htf-secondary), var(--htf-primary-light));
    border-top: 1px solid var(--htf-glass-border);
    border-bottom: 1px solid var(--htf-glass-border);
    padding: 1.5rem 0;
    overflow: hidden;
}

.htf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .htf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.htf-stat-item {
    text-align: center;
    position: relative;
}

.htf-stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--htf-glass-border);
}

.htf-stat-item:last-child::after {
    display: none;
}

.htf-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--htf-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.htf-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--htf-text-muted);
}

/* ============================================================
   SECTION STYLING
   ============================================================ */
.htf-section {
    position: relative;
    z-index: 1;
    padding: var(--htf-section-padding) 0;
}

.htf-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.htf-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--htf-accent);
    margin-bottom: 1rem;
}

.htf-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.htf-section-subtitle {
    font-size: 1.1rem;
    color: var(--htf-text-secondary);
    line-height: 1.6;
}

/* ============================================================
   CATEGORY GRID - FUTURISTIC DESIGN
   ============================================================ */
.htf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.htf-category-card {
    position: relative;
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--htf-text-primary);
    transition: all var(--htf-transition-medium);
    overflow: hidden;
    group: true;
}

.htf-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--htf-accent), var(--htf-accent-secondary));
    opacity: 0;
    transition: opacity var(--htf-transition-medium);
    z-index: 0;
}

.htf-category-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--htf-accent);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
}

.htf-category-card:hover::before {
    opacity: 0.1;
}

.htf-category-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--htf-accent), var(--htf-accent-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all var(--htf-transition-medium);
}

.htf-category-card:hover .htf-category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.htf-category-name {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.htf-category-count {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    color: var(--htf-text-muted);
}

/* ============================================================
   PRODUCT CARDS - 3D HOVER EFFECTS
   ============================================================ */
.htf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.htf-product-card {
    position: relative;
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--htf-transition-medium);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.htf-product-card:hover {
    transform: translateY(-10px);
    border-color: var(--htf-accent);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.15);
}

.htf-product-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.htf-product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--htf-transition-slow);
}

.htf-product-card:hover .htf-product-image-wrapper img {
    transform: scale(1.05);
}

.htf-product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.htf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.htf-badge-new {
    background: linear-gradient(135deg, var(--htf-success), #059669);
    color: white;
}

.htf-badge-sale {
    background: linear-gradient(135deg, var(--htf-danger), #dc2626);
    color: white;
    animation: pulseBadge 2s infinite;
}

.htf-badge-ffl {
    background: linear-gradient(135deg, var(--htf-accent-warm), #d97706);
    color: white;
}

.htf-badge-trending {
    background: linear-gradient(135deg, var(--htf-accent-secondary), #6d28d9);
    color: white;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.htf-product-quick-actions {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--htf-transition-medium);
    z-index: 2;
}

.htf-product-card:hover .htf-product-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.htf-quick-btn {
    width: 40px;
    height: 40px;
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--htf-text-primary);
    transition: all var(--htf-transition-fast);
    cursor: pointer;
}

.htf-quick-btn:hover {
    background: var(--htf-accent);
    border-color: var(--htf-accent);
    transform: scale(1.1);
}


.htf-product-body {
    padding: 1.5rem;
}

.htf-product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.htf-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.htf-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--htf-transition-fast);
}

.htf-product-title a:hover {
    color: var(--htf-accent);
}

.htf-product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.htf-spec-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--htf-text-muted);
}

.htf-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--htf-glass-border);
}

.htf-product-price {
    display: flex;
    flex-direction: column;
}

.htf-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--htf-accent);
}

.htf-price-original {
    font-size: 0.85rem;
    color: var(--htf-text-muted);
    text-decoration: line-through;
}

.htf-add-to-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--htf-accent), var(--htf-accent-secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--htf-transition-fast);
}

.htf-add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* ============================================================
   TRENDING CAROUSEL
   ============================================================ */
.htf-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.htf-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.htf-carousel::-webkit-scrollbar {
    display: none;
}

.htf-carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.htf-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--htf-text-primary);
    cursor: pointer;
    transition: all var(--htf-transition-fast);
    z-index: 10;
}

.htf-carousel-nav:hover {
    background: var(--htf-accent);
    border-color: var(--htf-accent);
}

.htf-carousel-nav.prev {
    left: 0;
}

.htf-carousel-nav.next {
    right: 0;
}

/* ============================================================
   TRUST INDICATORS
   ============================================================ */
.htf-trust-section {
    background: linear-gradient(135deg, var(--htf-primary-light) 0%, var(--htf-secondary) 100%);
    border-top: 1px solid var(--htf-glass-border);
    border-bottom: 1px solid var(--htf-glass-border);
}

.htf-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .htf-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .htf-trust-grid {
        grid-template-columns: 1fr;
    }
}

.htf-trust-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    border-right: 1px solid var(--htf-glass-border);
    transition: all var(--htf-transition-medium);
}

.htf-trust-item:last-child {
    border-right: none;
}

.htf-trust-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.htf-trust-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--htf-accent), var(--htf-accent-secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: transform var(--htf-transition-medium);
}

.htf-trust-item:hover .htf-trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.htf-trust-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.htf-trust-content p {
    font-size: 0.85rem;
    color: var(--htf-text-muted);
    margin: 0;
}

/* ============================================================
   BRAND SHOWCASE
   ============================================================ */
.htf-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.htf-brand-card {
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all var(--htf-transition-medium);
}

.htf-brand-card:hover {
    transform: translateY(-5px);
    border-color: var(--htf-accent);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.htf-brand-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.htf-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--htf-transition-medium);
}

.htf-brand-card:hover .htf-brand-logo img {
    opacity: 1;
    filter: none;
}

.htf-brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--htf-text-secondary);
    transition: color var(--htf-transition-fast);
}

.htf-brand-card:hover .htf-brand-name {
    color: var(--htf-accent);
}

/* ============================================================
   CTA SECTION - FUTURISTIC PROMO
   ============================================================ */
.htf-cta-section {
    position: relative;
    padding: var(--htf-section-padding) 0;
    overflow: hidden;
}

.htf-cta-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.htf-cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.htf-cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.htf-cta-subtitle {
    font-size: 1.25rem;
    color: var(--htf-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.htf-newsletter {
    background: linear-gradient(135deg, var(--htf-secondary) 0%, var(--htf-primary-light) 100%);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    overflow: hidden;
}

.htf-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.htf-newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.htf-newsletter h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.htf-newsletter p {
    color: var(--htf-text-secondary);
    margin-bottom: 1.5rem;
}

.htf-newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .htf-newsletter-form {
        flex-direction: column;
    }
}

.htf-newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--htf-glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.htf-newsletter-input::placeholder {
    color: var(--htf-text-muted);
}

.htf-newsletter-input:focus {
    outline: none;
    border-color: var(--htf-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* ============================================================
   PARTNER SECTION
   ============================================================ */
.htf-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .htf-partner-grid {
        grid-template-columns: 1fr;
    }
}

.htf-partner-card {
    background: var(--htf-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--htf-glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--htf-transition-medium);
}

.htf-partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--htf-accent);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.htf-partner-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--htf-accent), var(--htf-accent-secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.htf-partner-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.htf-partner-card p {
    color: var(--htf-text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

/* Scroll Reveal Classes */
.htf-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.htf-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.htf-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.htf-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.htf-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.htf-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.htf-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.htf-reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.htf-stagger-1 { transition-delay: 0.1s; }
.htf-stagger-2 { transition-delay: 0.2s; }
.htf-stagger-3 { transition-delay: 0.3s; }
.htf-stagger-4 { transition-delay: 0.4s; }
.htf-stagger-5 { transition-delay: 0.5s; }
.htf-stagger-6 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
    .htf-hero {
        min-height: 80vh;
    }
    
    .htf-hero-content {
        padding: 1rem;
    }
    
    .htf-section {
        padding: 3rem 0;
    }
    
    .htf-section-header {
        margin-bottom: 2rem;
    }
    
    .htf-trust-item {
        border-right: none;
        border-bottom: 1px solid var(--htf-glass-border);
    }
    
    .htf-trust-item:last-child {
        border-bottom: none;
    }
    
    .htf-newsletter {
        padding: 2rem 1.5rem;
        margin: 0 1rem 3rem;
    }
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.htf-skeleton {
    background: linear-gradient(
        90deg,
        var(--htf-glass-bg) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        var(--htf-glass-bg) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   COUNTER ANIMATION
   ============================================================ */
.htf-counter {
    display: inline-block;
}

/* ============================================================
   HOMEPAGE LIGHT THEME OVERRIDES
   ============================================================ */

/* Hero Section */
[data-theme="light"] .htf-hero {
    background: var(--htf-primary);
}

[data-theme="light"] .htf-hero-title,
[data-theme="light"] .htf-hero h1 {
    color: var(--htf-text-primary) !important;
    text-shadow: none;
}

[data-theme="light"] .htf-hero-subtitle,
[data-theme="light"] .htf-hero p {
    color: var(--htf-text-secondary) !important;
}

[data-theme="light"] .htf-hero-badge {
    background: var(--htf-secondary) !important;
    color: var(--htf-text-primary) !important;
}

/* Section titles */
[data-theme="light"] .htf-section-title,
[data-theme="light"] .htf-section h2 {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-section-subtitle,
[data-theme="light"] .htf-section > p {
    color: var(--htf-text-secondary) !important;
}

/* Stats banner */
[data-theme="light"] .htf-stats-banner {
    background: var(--htf-primary-light) !important;
}

[data-theme="light"] .htf-stat-value {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-stat-label {
    color: var(--htf-text-secondary) !important;
}

/* Category cards */
[data-theme="light"] .htf-category-card {
    background: var(--htf-glass-bg) !important;
    border-color: var(--htf-glass-border) !important;
}

[data-theme="light"] .htf-category-name {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-category-count {
    color: var(--htf-text-muted) !important;
}

/* Product cards */
[data-theme="light"] .htf-product-card {
    background: var(--htf-glass-bg) !important;
    border-color: var(--htf-glass-border) !important;
}

[data-theme="light"] .htf-product-title,
[data-theme="light"] .htf-product-name {
    color: #1e293b !important;
}

[data-theme="light"] .htf-product-brand {
    color: #dc2626 !important;
}

[data-theme="light"] .htf-product-price {
    color: var(--htf-accent) !important;
}

/* Brand cards */
[data-theme="light"] .htf-brand-card {
    background: var(--htf-glass-bg) !important;
    border-color: var(--htf-glass-border) !important;
}

[data-theme="light"] .htf-brand-name {
    color: var(--htf-text-primary) !important;
}

/* CTA section */
[data-theme="light"] .htf-cta-section {
    background: linear-gradient(135deg, var(--htf-primary-light), var(--htf-secondary)) !important;
}

[data-theme="light"] .htf-cta-section h2,
[data-theme="light"] .htf-cta-title {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-cta-section p {
    color: var(--htf-text-secondary) !important;
}

/* Trust section */
[data-theme="light"] .htf-trust-section {
    background: var(--htf-primary-light) !important;
}

[data-theme="light"] .htf-trust-item h4 {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-trust-item p {
    color: var(--htf-text-secondary) !important;
}

/* Feature cards */
[data-theme="light"] .htf-feature-card {
    background: var(--htf-glass-bg) !important;
    border-color: var(--htf-glass-border) !important;
}

[data-theme="light"] .htf-feature-card h3 {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-feature-card p {
    color: var(--htf-text-secondary) !important;
}

/* Partner cards */
[data-theme="light"] .htf-partner-card {
    background: var(--htf-glass-bg) !important;
    border-color: var(--htf-glass-border) !important;
}

[data-theme="light"] .htf-partner-card h4 {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-partner-card p {
    color: var(--htf-text-secondary) !important;
}

/* Newsletter section */
[data-theme="light"] .htf-newsletter {
    background: var(--htf-primary-light) !important;
}

[data-theme="light"] .htf-newsletter h3 {
    color: var(--htf-text-primary) !important;
}

[data-theme="light"] .htf-newsletter p {
    color: var(--htf-text-secondary) !important;
}

/* All homepage text */
[data-theme="light"] .htf-homepage h1,
[data-theme="light"] .htf-homepage h2,
[data-theme="light"] .htf-homepage h3,
[data-theme="light"] .htf-homepage h4,
[data-theme="light"] .htf-homepage h5,
[data-theme="light"] .htf-homepage h6 {
    color: var(--htf-text-primary);
}

[data-theme="light"] .htf-homepage p,
[data-theme="light"] .htf-homepage span:not(.badge):not(.btn) {
    color: var(--htf-text-secondary);
}

/* Reduce glow effects in light mode */
[data-theme="light"] .htf-glow {
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] @keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(2, 132, 199, 0.2); }
    50% { box-shadow: 0 0 20px rgba(2, 132, 199, 0.3); }
}
