/*
Theme Name: GeekyEgg 3D
Theme URI: https://geekyegg.com
Author: GeekyEgg Team
Author URI: https://geekyegg.com
Description: A clean, light-mode WordPress theme with immersive 3D scroll animations and modern product showcases.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geekyegg-3d
*/

/* ============================================
   GEEKYEGG 3D - LIGHT MODE THEME
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-hero: #1a1a2e;
    --text-primary: #111111;
    --text-secondary: #666666;
    --text-muted: #888888;
    --text-light: #ffffff;
    --border: #e5e5e5;
    --border-dark: #111111;
    --accent: #111111;
    --accent-hover: #333333;
    --surface: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: #111111;
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--text-primary);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 25px;
}

.top-bar-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-links a:hover {
    color: #fff;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 35px;
    list-style: none;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: opacity 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 1.8;
    transition: stroke 0.3s;
}

.nav-icon:hover {
    stroke: var(--text-secondary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 600px;
    letter-spacing: -1px;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header::before,
.section-header::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    background: var(--border);
    vertical-align: middle;
    margin: 0 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: middle;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    padding: 100px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    position: relative;
    background: var(--surface);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px var(--shadow-lg);
}

.product-image-wrap {
    position: relative;
    background: var(--bg-secondary);
    padding: 40px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.product-image-wrap img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    mix-blend-mode: multiply;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: #ff4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.product-badge.new {
    background: #4CAF50;
}

.product-info {
    padding: 20px 0;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 40px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 500;
}

/* 3D Product Showcase Sections */
.showcase-section {
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.showcase-section.alt {
    background: var(--bg-secondary);
}

.showcase-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    transform-style: preserve-3d;
}

.showcase-image {
    position: relative;
    max-width: 500px;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.showcase-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
}

.showcase-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
    top: -20%;
    left: -20%;
    z-index: -1;
}

.showcase-info .tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.showcase-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.showcase-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 450px;
}

.showcase-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.showcase-price .original {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 15px;
    font-weight: 500;
}

.btn-dark {
    padding: 14px 35px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 12px;
}

.btn-dark:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    padding: 14px 35px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: #fff;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more-wrap {
    text-align: center;
    margin-top: 60px;
}

.btn-load-more {
    padding: 16px 50px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: var(--text-primary);
    color: #fff;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 100px 40px;
    background: var(--bg-secondary);
    text-align: center;
}

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

.newsletter-section .section-header {
    margin-bottom: 40px;
}

.newsletter-section .section-header::before,
.newsletter-section .section-header::after {
    display: none;
}

.newsletter-section .section-title {
    font-size: 20px;
}

.newsletter-text {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 35px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 16px 30px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--text-secondary);
}

/* ============================================
   FEATURES BAR
   ============================================ */
.features-bar {
    padding: 60px 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 1.5;
}

.feature-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   MARQUEE BAR
   ============================================ */
.marquee-bar {
    background: var(--text-primary);
    color: #fff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    display: inline-block;
    padding: 0 40px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.marquee-item::before {
    content: '◆';
    margin-right: 40px;
    color: #ff4444;
    font-size: 8px;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-primary);
    padding: 80px 40px 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.5fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .site-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter-form input {
    padding: 12px 15px;
    border: 1px solid var(--border);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.footer-newsletter-form input:focus {
    border-color: var(--text-primary);
}

.footer-newsletter-form button {
    padding: 12px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter-form button:hover {
    background: var(--text-secondary);
}

.payment-icons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.payment-icon {
    padding: 4px 10px;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cursor-follower.active {
    opacity: 1;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--text-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .main-nav {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .products-section,
    .showcase-section,
    .newsletter-section {
        padding: 60px 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .showcase-info .btn-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn-dark, .btn-outline {
        width: 100%;
        margin-right: 0;
    }
}

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