@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;600&display=swap');

body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; background: #050505; color: white; margin: 0; }

/* HEADER */
.main-header { position: fixed; width: 100%; height: 90px; background: rgba(5,5,5,0.9); backdrop-filter: blur(20px); z-index: 1000; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-container { max-width: 1500px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.nav-links a { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5em; color: #555; transition: 0.3s; text-decoration: none; }
.nav-links a:hover { color: #fff; }

/* SERIES CARDS */
.series-card { height: 85vh; transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; position: relative; overflow: hidden; }
.series-card:hover { flex: 1.4; }
.card-bg { position: absolute; inset: 0; filter: grayscale(1) brightness(0.4); transition: 1s ease; background-size: cover; background-position: center; }
.series-card:hover .card-bg { filter: grayscale(0) brightness(0.7); transform: scale(1.05); }
.card-content-lock { 
    position: absolute; 
    bottom: 48px; 
    left: 0; 
    width: 100%; 
    padding: 0 40px; 
    text-align: center;
    transition: all 0.5s ease;
    z-index: 40;
    pointer-events: none; 
    transform: none !important; 
}
.card-content-lock h3 {
    white-space: nowrap;
    overflow: visible;
    display: block;
    width: 100%;
    margin-bottom: 8px;
}
.card-content-lock .flex {
    justify-content: center;
    pointer-events: auto; 
}
.card-content-lock button { 
    pointer-events: auto !important; 
    cursor: pointer;
    position: relative;
    z-index: 50; 
    opacity: 1 !important;
}
.series-card:hover .card-content-lock { bottom: 64px; }

/* VIDEO HOLDERS */
.video-holder {
    pointer-events: none; 
    z-index: 20;
}
.video-holder:not(.hidden) { 
    display: block;
    opacity: 1; 
}

/* ENGINEERING HOTSPOTS */
.hotspot { position: absolute; width: 14px; height: 14px; background: #000; border-radius: 50%; cursor: help; z-index: 50; }
.hotspot-pulse { position: absolute; inset: -4px; border: 1px solid rgba(0,0,0,0.3); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 
    0% { transform: scale(1); opacity: 1; } 
    100% { transform: scale(2.5); opacity: 0; } 
}
.hotspot:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 12px;
    border-radius: 2px;
    font-size: 10px;
    letter-spacing: 0.1em;
    width: 200px;
    z-index: 100;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* COMPONENT THUMBS */
.component-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible !important; 
    z-index: 1;
    cursor: pointer;
    padding: 15px;
}
.component-thumb:hover {
    transform: scale(1.15); 
    z-index: 50; 
    border-color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    background: #111;
}
.component-thumb img {
    width: 85%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
    backface-visibility: hidden; 
    background: #111;
    transition: opacity 0.3s ease;
}
.thumb-label {
    font-size: 9px;
    letter-spacing: 0.3em;
    color: #555;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
}
.component-thumb:hover .thumb-label {
    color: #fff;
}
.component-thumb.active {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}
.component-thumb.active .thumb-label { color: #fff; }

/* SELECTION GRID */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-height: 150px;
}

/* EXPORT BUTTONS */
.export-btn { 
    background: transparent; 
    color: white; 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 18px 0; 
    font-size: 9px; 
    text-transform: uppercase; 
    letter-spacing: 0.3em; 
    cursor: pointer; 
    transition: 0.4s; 
}
.export-btn:hover { 
    background: white; 
    color: black; 
    border-color: white; 
}

/* CURRENCY BUTTONS */
.curr-btn { 
    background: transparent; 
    border: none; 
    color: #444; 
    font-size: 10px; 
    cursor: pointer; 
    padding-bottom: 4px; 
    border-bottom: 1px solid transparent; 
    transition: 0.3s; 
}
.curr-btn.active { 
    color: white; 
    border-bottom-color: white; 
}

/* BUTTON DOCKS */
.action-dock, .export-dock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100 !important;
    pointer-events: auto !important;
}
.action-dock { bottom: 30px; }
.export-dock { top: 30px; }
.action-dock button, .export-dock button {
    color: white;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
    transition: opacity 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.action-dock button:hover, .export-dock button:hover { opacity: 0.6; }

/* TOP BUILD CONTROLS */
.btn-top-action {
    color: #888;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.3s;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.btn-top-action:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}
.btn-top-save {
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn-top-reset {
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.btn-top-reset:hover { color: #ff4d4d; }

/* WATCH DISPLAY */
#watch-display {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    cursor: crosshair;
}
#modal-img, #lume-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out; 
    pointer-events: none;
    z-index: 10;
}

/* PRICE STYLING */
#live-price {
    cursor: help;
    transition: all 0.3s ease;
    position: relative;
}
#live-price:hover {
    transform: scale(1.02);
    color: #00ff88;
}

/* HUD SERIAL */
#hud-serial {
    letter-spacing: 0.2em;
    font-weight: bold;
}

/* ENGINEERING SECTION */
.cursor-crosshair { cursor: crosshair; }
.mix-blend-multiply { mix-blend-mode: multiply; }

#engineering .aspect-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

#engineering.bg-\[\#F5F5F7\] .hotspot {
    background: #000;
    border-radius: 50%;
}
#engineering.bg-\[\#F5F5F7\] .hotspot-pulse {
    border-color: rgba(0, 0, 0, 0.4);
}

/* ANIMATION TRIGGER */
.anim-trigger {
    position: relative;
    z-index: 10;
    cursor: pointer;
}
#calibre-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* MODAL SCROLLBAR */
.lg\:col-span-5::-webkit-scrollbar {
    width: 4px;
}
.lg\:col-span-5::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.lg\:col-span-5::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.lg\:col-span-5::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Beat Rate Visualizer Animation */
.beat-bar {
    flex: 1;
    height: 100%;
    background: linear-gradient(to top, #000, #666);
    border-radius: 2px;
    animation: beat 1s ease-in-out infinite;
}
.beat-bar:nth-child(1) { animation-delay: 0s; }
.beat-bar:nth-child(2) { animation-delay: 0.166s; }
.beat-bar:nth-child(3) { animation-delay: 0.333s; }
.beat-bar:nth-child(4) { animation-delay: 0.5s; }
.beat-bar:nth-child(5) { animation-delay: 0.666s; }
.beat-bar:nth-child(6) { animation-delay: 0.833s; }

@keyframes beat {
    0%, 100% { transform: scaleY(0.2); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* Enhanced Hotspot Hover State for Engineering */
#engineering .hotspot {
    transition: transform 0.3s ease;
    background: #000;
}
#engineering .hotspot:hover {
    transform: scale(1.3);
}
#engineering .hotspot-pulse {
    border-color: rgba(0,0,0,0.3);
}
/* =============================================
   MOBILE RESPONSIVE STYLES
   Added for PWA mobile support
   ============================================= */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,5,5,0.98);
    z-index: 10000;
    padding: 90px 20px 30px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.active {
    display: flex !important;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.mobile-menu a:active {
    background: rgba(255,255,255,0.05);
    color: #f59e0b;
}

.mobile-menu .menu-section {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu .menu-section-title {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
}

/* =============================================
   MOBILE BREAKPOINT - 768px and below
   ============================================= */
@media screen and (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none !important;
    }
    
    /* Adjust header */
    .main-header {
        height: 60px !important;
    }
    
    .header-container {
        padding: 0 15px !important;
    }
    
    .logo-center {
        position: relative !important;
        left: auto !important;
        transform: none !important;
    }
    
    .logo-center img {
        height: 22px !important;
    }
    
    /* Cart icon position */
    .cart-icon-container {
        position: fixed !important;
        right: 15px !important;
        top: 18px !important;
    }
    
    /* Quick menu dropdown */
    .header-dropdown {
        position: fixed !important;
        right: 55px !important;
        top: 18px !important;
    }
    
    #quick-menu {
        right: 0 !important;
        width: 200px !important;
    }
    
    /* Hero Section */
    section.h-screen,
    .h-screen {
        min-height: 100vh !important;
        height: auto !important;
        padding-top: 80px !important;
    }
    
    /* Section padding */
    .py-32 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .py-24 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .px-8, .px-12, .px-16, .px-20 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Typography */
    h1, .text-6xl, .text-5xl {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    h2, .text-4xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3, .text-3xl {
        font-size: 1.25rem !important;
    }
    
    .text-2xl {
        font-size: 1.125rem !important;
    }
    
    /* Gap adjustments */
    .gap-16, .gap-24 {
        gap: 24px !important;
    }
    
    .gap-8, .gap-12 {
        gap: 16px !important;
    }
    
    /* Series Section - Stack cards */
    #series {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .series-card {
        min-height: 50vh !important;
        height: 50vh !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .series-card:last-child {
        border-bottom: none !important;
    }
    
    .series-card:hover {
        flex: 1 !important;
    }
    
    /* Card content positioning */
    .card-content-lock {
        bottom: 30px !important;
        padding: 0 20px !important;
    }
    
    .series-card:hover .card-content-lock {
        bottom: 40px !important;
    }
    
    /* Grid layouts */
    .grid {
        gap: 15px !important;
    }
    
    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .lg\:grid-cols-2,
    .lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Selection grid */
    .selection-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Component thumbs */
    .component-thumb {
        height: 120px !important;
        padding: 10px !important;
    }
    
    .component-thumb:hover {
        transform: scale(1.05) !important;
    }
    
    .component-thumb img {
        width: 70% !important;
        margin-bottom: 8px !important;
    }
    
    .thumb-label {
        font-size: 7px !important;
        letter-spacing: 0.15em !important;
    }
    
    /* Configurator Panel - Full screen on mobile */
    #configurator-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        z-index: 10002 !important;
    }
    
    /* Action docks */
    .action-dock, .export-dock {
        padding: 8px 15px !important;
        gap: 10px !important;
    }
    
    .action-dock button, .export-dock button {
        font-size: 7px !important;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 0 !important;
    }
    
    .testimonial-image-container {
        height: 180px !important;
    }
    
    /* Cart Sidebar */
    #cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Availability tracker - hide on mobile */
    #availability-tracker {
        display: none !important;
    }
    
    /* Footer */
    footer {
        padding: 40px 15px 30px !important;
    }
    
    footer > div > div:first-child {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 30px !important;
    }
    
    /* Flex direction changes */
    .md\:flex-row,
    .lg\:flex-row {
        flex-direction: column !important;
    }
    
    /* Width overrides */
    .w-1\/2, .w-1\/3, .w-2\/3 {
        width: 100% !important;
    }
}

/* =============================================
   SMALL MOBILE - 480px and below
   ============================================= */
@media screen and (max-width: 480px) {
    .main-header {
        height: 55px !important;
    }
    
    .header-container {
        padding: 0 12px !important;
    }
    
    .logo-center img {
        height: 18px !important;
    }
    
    h1, .text-6xl, .text-5xl {
        font-size: 1.5rem !important;
    }
    
    h2, .text-4xl {
        font-size: 1.25rem !important;
    }
    
    .selection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .component-thumb {
        height: 100px !important;
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
    
    .mobile-menu a {
        font-size: 14px !important;
        padding: 14px 15px !important;
    }
    
    .py-32 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* =============================================
   TABLET - 769px to 1024px
   ============================================= */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .main-header {
        height: 70px !important;
    }
    
    .header-container {
        padding: 0 25px !important;
    }
    
    .nav-links {
        gap: 25px !important;
    }
    
    .nav-links a {
        font-size: 9px !important;
    }
    
    .series-card {
        height: 60vh !important;
    }
    
    .selection-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* =============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================= */
@media (hover: none) and (pointer: coarse) {
    .component-thumb:hover,
    .series-card:hover {
        transform: none !important;
    }
    
    .series-card:hover .card-bg {
        transform: none !important;
    }
    
    .component-thumb:active,
    button:active,
    a:active {
        opacity: 0.8;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media screen and (max-width: 896px) and (orientation: landscape) {
    .h-screen {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    .series-card {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    #configurator-panel {
        overflow-y: auto !important;
    }
    
    .mobile-menu {
        padding-top: 60px !important;
    }
}


/* =============================================
   HEADER ICON POSITIONING - v4.6.7
   ============================================= */
/* Desktop positions (1400px+) */
.vip-portal-btn {
    right: 380px;
}
.account-icon-container {
    right: 210px;
}
.currency-selector {
    right: 100px;
}
.cart-icon-container {
    right: 40px;
}

/* Large screens (1200px - 1400px) - Icons only */
@media screen and (max-width: 1400px) {
    .vip-portal-btn {
        right: 260px !important;
        padding: 8px !important;
        display: flex !important;
    }
    .vip-portal-btn span {
        display: none !important;
    }
    .account-icon-container {
        right: 185px !important;
        padding: 8px !important;
        display: flex !important;
        background: rgba(201, 169, 98, 0.15) !important;
        border: 1px solid rgba(201, 169, 98, 0.4) !important;
        border-radius: 8px !important;
    }
    .account-icon-container span {
        display: none !important;
    }
    .currency-selector {
        right: 80px !important;
    }
    .cart-icon-container {
        right: 30px !important;
    }
}

/* Medium screens (1024px - 1200px) - Hide nav links */
@media screen and (max-width: 1200px) {
    .nav-links {
        display: none !important;
    }
    .header-container {
        justify-content: center !important;
    }
    .vip-portal-btn {
        right: 200px !important;
        display: flex !important;
    }
    .account-icon-container {
        right: 130px !important;
        display: flex !important;
        background: rgba(201, 169, 98, 0.15) !important;
        border: 1px solid rgba(201, 169, 98, 0.4) !important;
        border-radius: 8px !important;
        padding: 8px !important;
    }
    .account-icon-container span {
        display: none !important;
    }
    .currency-selector {
        right: 50px !important;
    }
    .cart-icon-container {
        right: 12px !important;
    }
}

/* Small desktop / tablet (769px - 1024px) - Hide VIP */
@media screen and (max-width: 1024px) {
    .vip-portal-btn {
        display: none !important;
    }
    .account-icon-container {
        right: 120px !important;
        padding: 8px !important;
        display: flex !important;
        background: rgba(201, 169, 98, 0.15) !important;
        border: 1px solid rgba(201, 169, 98, 0.4) !important;
        border-radius: 8px !important;
    }
    .currency-selector {
        right: 50px !important;
    }
    .cart-icon-container {
        right: 12px !important;
    }
}

/* Mobile (768px and below) */
@media screen and (max-width: 768px) {
    .logo-center img {
        height: 32px !important;
    }
    .vip-portal-btn {
        display: none !important;
    }
    .account-icon-container {
        right: 100px !important;
        top: 16px !important;
        padding: 8px !important;
        display: flex !important;
        background: rgba(201, 169, 98, 0.15) !important;
        border: 1px solid rgba(201, 169, 98, 0.4) !important;
        border-radius: 8px !important;
    }
    .account-icon-container span {
        display: none !important;
    }
    .currency-selector {
        right: 55px !important;
        top: 16px !important;
    }
    .currency-selected {
        padding: 8px 10px !important;
        gap: 4px !important;
    }
    .currency-selected .currency-code,
    #selectedCode {
        display: none !important;
    }
    .currency-flag,
    #selectedFlag {
        font-size: 20px !important;
    }
    .currency-arrow {
        width: 10px !important;
        height: 10px !important;
    }
    .currency-options {
        right: 0 !important;
        left: auto !important;
        min-width: 140px !important;
    }
    .cart-icon-container {
        right: 15px !important;
        top: 16px !important;
    }
}

/* Extra small (480px and below) */
@media screen and (max-width: 480px) {
    .logo-center img {
        height: 28px !important;
    }
    .account-icon-container {
        right: 90px !important;
        top: 14px !important;
        display: flex !important;
    }
    .currency-selector {
        right: 50px !important;
        top: 14px !important;
    }
    .cart-icon-container {
        right: 12px !important;
        top: 14px !important;
    }
}
