/* Dark Theme (Default) */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ff4d00;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-scrolled-bg: rgba(5, 5, 5, 0.8);
    --glow-color: rgba(255, 255, 255, 0.1);
    --hover-card-bg: rgba(255, 255, 255, 0.05);
    --hover-card-border: rgba(255, 255, 255, 0.2);
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --card-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.8);
    --glow-color: rgba(255, 77, 0, 0.15);
    --hover-card-bg: rgba(0, 0, 0, 0.05);
    --hover-card-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography */
h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

h2 span {
    color: var(--accent);
}

.glitch {
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 800;
    line-height: 0.8;
    color: var(--text-main);
    position: relative;
    text-transform: uppercase;
    margin-bottom: -1rem;
    z-index: 10;
    display: inline-block;
    width: max-content;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    transition: background 0.4s ease;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 83px, 0); }
    20% { clip: rect(41px, 9999px, 12px, 0); }
    40% { clip: rect(89px, 9999px, 53px, 0); }
    60% { clip: rect(10px, 9999px, 66px, 0); }
    80% { clip: rect(77px, 9999px, 98px, 0); }
    100% { clip: rect(32px, 9999px, 45px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(89px, 9999px, 12px, 0); }
    20% { clip: rect(22px, 9999px, 90px, 0); }
    40% { clip: rect(65px, 9999px, 33px, 0); }
    60% { clip: rect(4px, 9999px, 87px, 0); }
    80% { clip: rect(56px, 9999px, 21px, 0); }
    100% { clip: rect(98px, 9999px, 77px, 0); }
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
    transition: color 0.4s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Hide sun in dark mode, moon in light mode */
[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

/* Buttons */
.primary-btn,
.secondary-btn {
    padding: 1rem 2rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
}

.primary-btn:hover {
    background: var(--accent);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    border-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-image-container {
    flex: 1;
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    animation: pulse 8s infinite alternate;
    transition: background 0.4s ease;
}

.hero-tshirt {
    width: 120%;
    max-width: 800px;
    z-index: 2;
    transform-style: preserve-3d;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    will-change: transform;
}

[data-theme="light"] .hero-tshirt {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.2));
}

/* Collection Section */
.collection-section {
    padding: 8rem 4rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    margin: 1rem auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--hover-card-border);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .product-image {
    background: rgba(255,255,255,0.02);
}

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

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

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.price {
    font-weight: 600;
    color: var(--text-main);
}

.buy-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: var(--text-main);
    color: var(--bg-color);
    padding: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: var(--accent);
    color: var(--text-main);
}

/* Info Sections (About & Contact) */
.info-section {
    padding: 4rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.info-content {
    max-width: 800px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-content h2 {
    margin-bottom: 2rem;
}

.info-content p {
    margin: 0 auto 2rem auto;
}

.store-details h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.store-details p {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details a {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    padding: 4rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem;
        padding-top: 8rem;
    }

    .hero-content {
        align-items: center;
        margin-top: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-container {
        height: 60vh;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-tshirt {
        width: 100%;
    }

    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }
}