/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bitcoin-orange: #f7931a;
    --bitcoin-gold: #ffb800;
    --dark-bg: #000000;
    --dark-blue: #0a0a0a;
    --neon-blue: #00d4ff;
    --neon-purple: #b744ff;
    --neon-pink: #ff006e;
    --neon-green: #00ff88;
    --gradient-1: linear-gradient(135deg, #f7931a 0%, #ffb800 50%, #ff8c00 100%);
    --gradient-2: linear-gradient(135deg, #f7931a 0%, #ffb800 50%, #ffd700 100%);
    --gradient-3: linear-gradient(135deg, #ff8c00 0%, #f7931a 100%);
    --gradient-bitcoin: radial-gradient(circle at center, #ffb800 0%, #f7931a 50%, #ff6b00 100%);
    --text-light: #ffffff;
    --text-dark: #0a0e27;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== LANGUAGE SWITCHER ==================== */
#language-switcher {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#language-switcher button {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#language-switcher button.active {
    background: var(--gradient-2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

#language-switcher button:hover {
    transform: scale(1.05);
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    border-bottom: 2px solid rgba(247, 147, 26, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
}

.cart-link {
    position: relative;
    background: var(--gradient-1);
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-pink);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 25%, #000000 50%, #FF8C00 75%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 140, 0, 0.8)) drop-shadow(0 0 60px rgba(255, 165, 0, 0.6));
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
}

.glitch::after {
    animation: glitch-2 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(0.025em, 0.0125em);
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s backwards;
}

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

.feature-card {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(247, 147, 26, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== CTA BUTTON ==================== */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(247, 147, 26, 0.6);
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 3px solid rgba(247, 147, 26, 0.8);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--bitcoin-orange);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ==================== SECTIONS ==================== */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* ==================== PRODUCTS PREVIEW ==================== */
.products-preview {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-blue) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(247, 147, 26, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(247, 147, 26, 0.4);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .view-btn {
    transform: translateY(0);
}

.product-card h3 {
    padding: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.price {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--bitcoin-orange);
    padding-bottom: 1.5rem;
}

/* Mobile button - hidden by default */
.view-btn-mobile {
    display: none;
}

.product-info {
    display: block;
}

/* ==================== WHY BTCBOX SECTION ==================== */
.why-btcbox {
    position: relative;
    background: var(--dark-blue);
}

.wavy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(247, 147, 26, 0.3) 35px, rgba(247, 147, 26, 0.3) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 212, 255, 0.3) 35px, rgba(0, 212, 255, 0.3) 70px);
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(70px) translateY(70px);
    }
}

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

.benefit-item {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 26, 0.6);
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.3);
}

.benefit-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    line-height: 1;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--neon-blue);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 2px solid rgba(247, 147, 26, 0.3);
    padding: 3rem 2rem 1rem;
}

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

.footer-section h4 {
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--bitcoin-orange);
    transform: translateX(5px);
    display: inline-block;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(247, 147, 26, 0.2);
    opacity: 0.7;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bitcoin-orange);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Language Switcher in Menu */
.mobile-language-switcher {
    display: none;
    gap: 10px;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid rgba(247, 147, 26, 0.3);
}

.mobile-language-switcher button {
    flex: 1;
    padding: 10px 20px;
    border: 2px solid rgba(247, 147, 26, 0.3);
    background: rgba(247, 147, 26, 0.1);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-language-switcher button.active {
    background: var(--gradient-2);
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

.mobile-language-switcher button:hover {
    transform: scale(1.05);
    border-color: var(--bitcoin-orange);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 2px solid rgba(247, 147, 26, 0.3);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem 1.5rem;
        border-radius: 50px;
        background: var(--gradient-1);
        text-align: center;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
    }
    
    .cart-link {
        width: 100%;
        text-align: center;
    }
    
    /* Show mobile language switcher in menu, hide desktop one */
    .mobile-language-switcher {
        display: flex;
    }
    
    #language-switcher {
        display: none;
    }
    
    /* Logo */
    .logo img {
        height: 40px;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding-top: 140px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin-bottom: 2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* CTA Button */
    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 1rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
    }
    
    /* Hide overlay on mobile and show button below */
    .product-overlay {
        display: none !important;
    }
    
    .product-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
        padding-top: 0;
    }
    
    /* Show mobile button, hide overlay button */
    .view-btn-mobile {
        display: inline-block !important;
        position: static !important;
        transform: translateY(0) !important;
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 0.5rem;
        padding: 1rem 2rem;
    }
    
    .price {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .product-card h3 {
        padding: 1.5rem 1.5rem 0.5rem;
        margin-bottom: 0;
    }
    
    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .benefit-item {
        padding: 2rem;
    }
    
    .benefit-number {
        font-size: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero {
        padding-top: 130px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0.8rem;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 2rem;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    .price {
        font-size: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .benefit-number {
        font-size: 2.5rem;
    }
    
    .benefit-item h3 {
        font-size: 1.3rem;
    }
    
    #language-switcher {
        padding: 5px;
    }
    
    #language-switcher button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Make all interactive elements larger for touch */
    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button {
        min-height: 48px;
    }
    
    .view-btn-mobile {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }
    
    /* Keep overlay hidden on mobile touch devices */
    .product-overlay {
        display: none !important;
    }
}
