/*
Theme Name: Tech Savings Hub
Theme URI: https://example.com/tech-savings-hub
Author: Gemini Agent
Author URI: https://google.com
Description: A premium, dark-mode, glassmorphism-inspired theme for technology deals and reviews.
Version: 1.0.2
Text Domain: tech-savings-hub
*/

/* =========================================
   IMPORTED DESIGN SYSTEM (Prototype)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette - Cyberpunk / Tech Aesthetics */
    --bg-dark: #030614;
    /* Deep Abyss Space */
    --bg-card: rgba(10, 15, 30, 0.4);
    --bg-card-hover: rgba(20, 25, 45, 0.7);

    --primary: #00f3ff;
    /* Cyan Neon */
    --secondary: #fb00ff;
    /* Magenta Neon */
    --accent: #00ff9d;
    /* Green Neon */
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;

    --gradient-main: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --gradient-text: linear-gradient(90deg, var(--primary), var(--secondary));

    /* Effects */
    --glass-border: 1px solid rgba(0, 243, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --neon-glow: 0 0 15px rgba(0, 243, 255, 0.5), 0 0 30px rgba(0, 243, 255, 0.3);

    /* Spacing */
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* 3D Grid & Neon Nebula Background */
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(251, 0, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 85% 20%, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-position: center center;
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 5px;
    /* Sharper edges for extreme futuristic feel */
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(251, 0, 255, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.02);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.glass-card:hover::after {
    transform: scaleX(1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 243, 255, 0.2);
}

/* Header */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(3, 6, 20, 0.7);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.neon-icon {
    color: var(--primary);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: pulseGlow 2s infinite alternate;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Hero Section */
.hero {
    padding: 120px 0;
    display: flex;
    align-items: center;
    min-height: 85vh;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 90%;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.4;
    animation: orbPulse 8s ease-in-out infinite alternate;
}

.hero-image {
    width: 450px;
    height: 450px;
    object-fit: cover;
    z-index: 2;
    border-radius: 20px;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4), inset 0 0 20px rgba(251, 0, 255, 0.3);
    border: 2px solid rgba(0, 243, 255, 0.3);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Feature Grid */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 120px;
}

.deal-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.deal-card:hover img {
    transform: scale(1.05);
}

.deal-card h3 a {
    transition: color 0.3s;
}

.deal-card h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Comparison Section */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px;
}

.comparison-table th {
    text-align: left;
    padding: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.comparison-row {
    background: var(--bg-card);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glass-shadow);
}

.comparison-row:hover {
    transform: scale(1.02) translateX(10px);
    background: var(--bg-card-hover);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-left: 3px solid var(--primary);
}

.comparison-row td {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.comparison-row td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.9), rgba(3, 6, 20, 0.95)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    text-align: center;
    border-radius: 20px;
    margin: 120px 0;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 243, 255, 0.1);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.newsletter-input {
    padding: 18px 30px;
    border-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    font-family: inherit;
    font-size: 1.1rem;
    width: 450px;
    max-width: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(0, 243, 255, 0.4);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(251, 0, 255, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-25px) rotateY(-10deg) rotateX(8deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }
}

@keyframes pulseGlow {
    from {
        filter: drop-shadow(0 0 5px var(--primary));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 20px var(--primary));
        transform: scale(1.05);
    }
}

@keyframes orbPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* WP Alignments */
.alignwide {
    margin-left: -80px;
    margin-right: -80px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    width: 100vw;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .hero-image {
        width: 100%;
        max-width: 350px;
        height: 350px;
        margin-top: 40px;
    }

    .nav-links {
        display: none;
    }

    .newsletter-input {
        width: 100%;
    }
}