/*
 * ConsoleSniper - Homepage Styles
 * Modern, premium design with glassmorphism and micro-animations
 */

/* ===== HOME PAGE LAYOUT ===== */
.home-page {
    background: #0a0e17;
    color: #e0e6ed;
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(39, 197, 161, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(255, 133, 82, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
    background-size: 100px 100px, 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.title-accent {
    background: linear-gradient(135deg, #27c5a1 0%, #00fff7 50%, #ff8552 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #27c5a1 0%, #1fa085 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(39, 197, 161, 0.3);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(39, 197, 161, 0.4);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #27c5a1;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27c5a1, #00fff7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(39, 197, 161, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(39, 197, 161, 0.2) 0%, rgba(0, 255, 247, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: #27c5a1;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Category-specific accent colors */
.category-card.laptops .card-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
}

.category-card.laptops .card-icon svg {
    color: #818cf8;
}

.category-card.laptops:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.category-card.pcs .card-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
}

.category-card.pcs .card-icon svg {
    color: #60a5fa;
}

.category-card.pcs:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.category-card.hardware .card-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.1));
}

.category-card.hardware .card-icon svg {
    color: #f472b6;
}

.category-card.hardware:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

.category-card.handhelds .card-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(252, 211, 77, 0.1));
}

.category-card.handhelds .card-icon svg {
    color: #fbbf24;
}

.category-card.handhelds:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.category-card.servers .card-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(74, 222, 128, 0.1));
}

.category-card.servers .card-icon svg {
    color: #4ade80;
}

.category-card.servers:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.category-card.builder .card-icon {
    background: linear-gradient(135deg, rgba(255, 133, 82, 0.2), rgba(255, 160, 122, 0.1));
}

.category-card.builder .card-icon svg {
    color: #ff8552;
}

.category-card.builder:hover {
    border-color: rgba(255, 133, 82, 0.3);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(39, 197, 161, 0.15) 0%, rgba(0, 255, 247, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: #27c5a1;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* ===== NEWSLETTER CTA ===== */
.newsletter-cta {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(39, 197, 161, 0.05) 100%);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .categories-section,
    .features-section,
    .newsletter-cta {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 1rem;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}