/* 
  CellHall - Elite Tech Accessories (REBUILD)
  Archetype: Apple-Style Product Showcase
  Protocol: Rules Fix Upgrade
*/

:root {
    --primary: #0F172A;
    /* Slate 900 */
    --accent: #3B82F6;
    /* Electric Blue */
    --bg-color: #F8FAFC;
    /* Cool White */
    --white: #FFFFFF;
    --text-main: #334155;

    --font-head: 'Inter', sans-serif;
    /* Clean tech font */
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
    --radius: 20px;
    /* Super rounded Apple style */
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.bento-item {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-large {
    grid-column: span 2;
    background: black;
    color: white;
}

.bento-large h3 {
    color: white;
}

.bento-img {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 60%;
    transform: rotate(-10deg);
    transition: 0.4s;
}

.bento-item:hover .bento-img {
    transform: rotate(0deg) scale(1.1);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large {
        grid-column: auto;
        min-height: 400px;
    }

    .bento-item {
        min-height: 300px;
    }
}

/* Header */
.site-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Menu */
#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: block;
        animation: fadeIn 0.3s;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: block;
        position: static;
    }

    .nav-menu ul {
        display: flex;
        gap: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hero */
.hero {
    text-align: center;
    padding: 8rem 0 4rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Ad Slot / Monetization */
.ad-slot-header {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
    text-align: center;
    color: #94A3B8;
    font-size: 0.8rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

/* Trust Badges */
.badge-tech {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #EFF6FF;
    color: #2563EB;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

/* Footer (Tech Minimalist) */
.footer {
    background: #FAFAFA;
    border-top: 1px solid #E2E8F0;
    padding: 4rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748B;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

/* =========================================
   PREMIUM CSS PRODUCT VISUALIZATIONS
   Apple-Style Tech Product Showcase
   ========================================= */

/* 1. Titanium Case Hero */
.product-titanium {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-titanium::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 500px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.5) 100%);
    border-radius: 40px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.product-titanium::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 480px;
    background: #000;
    border-radius: 35px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* 2. GaN Charger */
.product-charger {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f0f0f0 100%);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-charger::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

.product-charger::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: blink 2s ease-in-out infinite;
}

/* 3. Wireless Earbuds */
.product-earbuds {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.product-earbuds::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 30px 30px 15px 15px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-earbuds::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border-radius: 10px 10px 5px 5px;
    bottom: 35px;
    right: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* 4. Rugged Case */
.product-case {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.product-case::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 160px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 15px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.4);
    border: 3px solid #1e293b;
}

.product-case::after {
    content: '';
    position: absolute;
    width: 84px;
    height: 130px;
    background: #000;
    border-radius: 12px;
    bottom: 35px;
    right: 23px;
}

/* 5. MagSafe */
.product-magsafe {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-magsafe::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffffff 30%, #e5e5e5 100%);
    border-radius: 50%;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.product-magsafe::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ec4899 0%, #be185d 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 6. Smart Hub */
.product-smarthub {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

.product-smarthub::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-smarthub::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    animation: blink 2s ease-in-out infinite;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}