/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(circle at top, rgba(180, 140, 92, 0.12), transparent 30%),
        linear-gradient(180deg, #090909 0%, #0e0d0c 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

body.is-transitioning {
    overflow: hidden;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    background: rgba(0, 0, 0, 0.9);
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

.transition-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.06) 18%, rgba(0,0,0,0.82) 52%, rgba(0,0,0,0.98) 100%);
    transform: scale(1.3);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.page-transition.active .transition-glow {
    transform: scale(1);
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.12), transparent);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    padding: 14px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-left .logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5d7b4, transparent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.icon-btn:hover {
    color: #fff;
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
}

.icon {
    width: 20px;
    height: 20px;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #f2cfaa, #b9814d);
    color: #111;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(236, 193, 148, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #0b0b0a 0%, #11100e 100%);
}

.panels-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 0;
}

/* Panel Base Styles */
.panel {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(255,255,255,0.08);
}

.panel-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.08) brightness(0.75);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,10,10,0.18) 0%, rgba(11,10,10,0.42) 40%, rgba(11,10,10,0.82) 100%);
    transition: all 0.5s ease;
    z-index: 1;
}

.panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
}

.panel-title {
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-subtitle {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    text-transform: uppercase;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(12px);
}

.panel-btn {
    margin-top: 24px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(18px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.panel-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* Caps Panel */
.panel-caps {
    width: 42%;
    clip-path: polygon(0 0, 95% 0, 85% 100%, 0 100%);
    z-index: 3;
    background: #12100f;
}

/* Shoes Panel */
.panel-shoes {
    width: 42%;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 5% 100%);
    z-index: 1;
    background: #0f0d0c;
}

/* Separator Panel */
.panel-separator {
    position: relative;
    width: 16%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, 
        rgba(20, 20, 20, 0.95) 0%, 
        rgba(30, 30, 30, 0.98) 50%, 
        rgba(20, 20, 20, 0.95) 100%);
    z-index: 2;
    margin: 0 -6%;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
    pointer-events: none;
    user-select: none;
}

.separator-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

.separator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.separator-text {
    font-size: 48px;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    letter-spacing: 4px;
}

.separator-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.separator-dots span {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.separator-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.separator-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Panel Hover Effects */
.panel:hover {
    flex-grow: 1.08;
}

.panel:hover .panel-image img {
    transform: scale(1.08);
    filter: grayscale(0.05) contrast(1.12) brightness(0.82);
}

.panel:hover .panel-overlay {
    background: linear-gradient(180deg, rgba(9,9,9,0.1) 0%, rgba(9,9,9,0.5) 100%);
}

.panel:hover .panel-title {
    transform: translateY(-8px);
    text-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

.panel:hover .panel-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.panel:hover .panel-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Controls */
.bottom-controls {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.power-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255,255,255,0.04);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.power-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.power-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    transform: scale(1.05);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-hint .icon {
    width: 16px;
    height: 16px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.arrow-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    color: #fff;
    transform: translateX(4px);
    border-color: rgba(255,255,255,0.5);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.8));
    animation: progress-slide 3s ease-in-out infinite;
}

@keyframes progress-slide {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0.6;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-center {
        display: none;
    }

    .panels-container {
        flex-direction: column;
    }

    .panel-caps,
    .panel-shoes {
        width: 100%;
        height: 40%;
        clip-path: none;
    }

    .panel-separator {
        width: 100%;
        height: 20%;
        margin: 0;
        clip-path: none;
        flex-direction: row;
        gap: 20px;
    }

    .separator-line {
        width: 60px;
        height: 1px;
    }

    .separator-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .panel-title {
        font-size: 32px;
    }

    .panel-subtitle,
    .panel-btn {
        opacity: 1;
        transform: none;
    }

    .bottom-controls {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .scroll-hint {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .panel:hover .panel-image img {
        transform: none;
    }

    .panel-subtitle,
    .panel-btn {
        opacity: 1;
        transform: none;
    }
}
