/*
Theme Name: Antigravity - baskt.ai
Author: Antigravity Architect
Description: High-performance cyberpunk aesthetic with glassmorphism and neon gradients for digital marketplaces.
Version: 2.0
*/

:root {
    /* Antigravity Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    
    /* Neon Gradients */
    --gradient-cyberpunk: linear-gradient(135deg, #9d00ff 0%, #00e5ff 100%);
    --gradient-cyberpunk-hover: linear-gradient(135deg, #b020ff 0%, #20f5ff 100%);
    --gradient-fire: linear-gradient(135deg, #ff006e 0%, #ffbe0b 100%);
    
    /* Accent Colors */
    --neon-purple: #9d00ff;
    --neon-blue: #00e5ff;
    --neon-pink: #ff006e;
    --neon-yellow: #ffbe0b;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --text-dim: #6b6b6b;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Shadows & Glow */
    --glow-purple: 0 0 20px rgba(157, 0, 255, 0.5);
    --glow-blue: 0 0 20px rgba(0, 229, 255, 0.5);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(157, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(157, 0, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--glow-purple), var(--card-shadow);
}

/* Neon Gradient Button */
.neon-button {
    background: var(--gradient-cyberpunk);
    color: var(--text-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cyberpunk-hover);
    opacity: 0;
    transition: var(--transition-fast);
}

.neon-button:hover::before {
    opacity: 1;
}

.neon-button:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.neon-button span {
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-cyberpunk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Badges */
.view-badge {
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badge {
    background: rgba(157, 0, 255, 0.2);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin: 4px;
}

/* Value Props */
.value-props {
    padding: 100px 10%;
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.prop-item {
    text-align: center;
    padding: 50px 30px;
}

.prop-item .icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    filter: drop-shadow(var(--glow-blue));
}

.prop-item h3 {
    margin-bottom: 16px;
}

.prop-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.product-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.product-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-smooth);
}

.product-card:hover .product-thumb::after {
    left: 100%;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-cyberpunk);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    .props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .props-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .value-props {
        padding: 60px 5%;
    }
}

/* Exit Intent Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeIn 0.3s ease;
}

.exit-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-inner {
    max-width: 550px;
    width: 90%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--glow-purple), var(--card-shadow);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-content .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(var(--glow-purple));
}

.popup-content h2 {
    margin-bottom: 16px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.popup-form input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.popup-form input::placeholder {
    color: var(--text-dim);
}

.spam-free {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet Styles (1024px and below) */
@media (max-width: 1024px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    body {
        font-size: 0.95rem;
    }

    /* Container padding */
    .container {
        padding: 0 4%;
    }

    /* Product grid - 2 columns on tablet */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Value props - 2 columns on tablet */
    .props-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Buttons */
    .neon-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Typography for mobile */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    body {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Spacing */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 5%;
    }

    /* Product Cards - Single column */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 5%;
    }

    .product-card {
        padding: 20px;
    }

    .product-thumb {
        height: 250px;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    /* Product meta - Stack vertically */
    .product-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .product-meta .price {
        font-size: 1.3rem;
    }

    .add-to-cart-mini {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        justify-content: center;
    }

    /* Value Props - Single column */
    .props-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .prop-item {
        padding: 24px;
        text-align: center;
    }

    .prop-item .icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    /* Glassmorphism cards */
    .glass-card {
        padding: 20px;
        border-radius: 16px;
    }

    /* Buttons - Full width on mobile */
    .neon-button {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .neon-button span {
        width: 100%;
    }

    /* CTA groups */
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-ctas .neon-button,
    .hero-ctas .secondary-button {
        width: 100%;
    }

    /* Exit Popup */
    .popup-inner {
        width: 90%;
        max-width: 400px;
        padding: 30px 24px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
    }

    .popup-form input,
    .popup-form button {
        width: 100%;
    }

    /* Trust badges */
    .trust-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    /* View badges */
    .view-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Touch targets - Minimum 44px */
    a, button, input[type="submit"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Ultra compact typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Reduced padding */
    section {
        padding: 40px 0;
    }

    .glass-card {
        padding: 16px;
    }

    .product-card {
        padding: 16px;
    }

    /* Smaller icons */
    .prop-item .icon {
        font-size: 2.5rem;
    }

    /* Compact forms */
    input[type="email"],
    input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    /* Buttons */
    .neon-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Product thumbnail smaller */
    .product-thumb {
        height: 200px;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    section {
        padding: 40px 0;
    }

    .hero {
        min-height: auto;
        padding: 60px 5%;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images are crisp */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add overrides here */
}

/* Print styles */
@media print {
    header,
    footer,
    .mobile-menu-toggle,
    .exit-popup {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        border: 1px solid #ddd;
        background: white;
    }
}
