@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&family=Almendra:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --bg-color: #0a0a0a;
    --text-color: #d4d4d4;
    --accent-color: #00E5FF;
    --accent-hover: #00BFFF;
    --muted-text: #888;
    --stone-color: #1a1a1a;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Cinzel', serif;
    --font-accent: 'Almendra', serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;

    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.4) 0%, transparent 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    padding-top: var(--header-height);
    /* Offset for sticky header */
}

/* SECTION DIVIDER */
.section-divider {
    height: 100px;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L45 10 M55 10 L100 10 M50 5 L55 10 L50 15 L45 10 Z' stroke='%2300E5FF' stroke-width='0.5' fill='none' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.3;
    margin: var(--spacing-lg) 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    /* Wider for impact */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('2.jpeg');
}

.bg-2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('3.jpeg');
}

/* Stylish 3D Carousel */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    /* Constrained for desktop */
    margin: var(--spacing-lg) auto;
    perspective: 1000px;
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
    min-height: 450px;
}

/* Sticky Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #0a0a0a;
    /* Ensure solid background */
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 10000;
    /* High z-index to stay on top */
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--accent-color));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

.header-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-color);
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.hero-logo {
    height: 180px;
    filter: drop-shadow(0 0 20px var(--accent-color));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--accent-color));
}

.hero {
    padding-top: 0;
}


.carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    padding: 0;
    margin: 0;
    width: max-content;
    /* Ensure track is wide enough */
}

.carousel-slide {
    width: 350px;
    /* Fixed width for better control */
    min-width: 350px;
    margin: 0 -40px;
    /* Adjusted overlap */
    aspect-ratio: 4 / 5;
    background: #111;
    border: 2px solid #222;
    overflow: hidden;
    position: relative;
    transition: all 0.6s ease;
    transform: rotateY(45deg) scale(0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    /* Prevent slides from shrinking on small screens */
}


.carousel-slide.active {
    transform: rotateY(0deg) scale(1.1);
    z-index: 10;
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
}

.carousel-slide.prev {
    transform: rotateY(45deg) scale(0.85) translateZ(-100px);
    opacity: 0.6;
}

.carousel-slide.next {
    transform: rotateY(-45deg) scale(0.85) translateZ(-100px);
    opacity: 0.6;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: filter 0.5s ease;
}

.carousel-slide.active img {
    filter: grayscale(0);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 3rem;
    cursor: pointer;
    font-family: var(--font-display);
    position: relative;
    transition: all 0.3s ease;
    padding: 0 1rem;
}

.carousel-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-btn:hover {
    text-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: calc(100% - 0px);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: var(--spacing-lg);
    /* Reduced from --spacing-xl to move higher */
    position: relative;
}

.hero-logo {
    width: clamp(250px, 30vw, 400px);
    /* Larger logo */
    height: auto;
    border-radius: 50%;
    /* Optional: Circular logo */
    border: 3px solid #00E5FF;
    /* Vibrant Green Accent border */
    margin-bottom: var(--spacing-md);
    filter: grayscale(0%) contrast(1.1);
    /* Permanent Color */
    transition: filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
    /* Vibrant Green Intense Glow */
}

.hero-logo:hover {
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.9);
    /* Even stronger green glow on hover */
    transform: scale(1.02);
    /* Subtle zoom */
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem);
    margin-bottom: 0;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    line-height: 0.9;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.brand-name::after {
    content: "";
    display: none;
}


.tagline {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

/* Philosophy Section */
.philosophy {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.philosophy p {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    /* Larger body text */
    color: #bbb;
}

.philosophy h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
}

.philosophy .strong-statement {
    color: var(--text-color);
    font-weight: 700;
    /* Bolder */
    font-size: 2rem;
    margin-top: var(--spacing-lg);
    display: block;
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 5px 5px 0px rgba(0, 206, 209, 0.2);
    transform: translate(-2px, -2px);
}

.btn:hover::before {
    left: 0;
}

/* Navigation Menu Overlay */
.nav-toggle {
    position: relative;
    top: auto;
    right: auto;
    z-index: 10001;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: scale(1.1);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin-bottom: 2rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-color);
    letter-spacing: 0.4em;
}

/* Cookie Disclaimer */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid var(--accent-color);
    padding: 2rem;
    z-index: 9999;
    transition: bottom 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner p {
    color: var(--text-color);
    font-size: 1rem;
    max-width: 800px;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Footer Links */
.footer-legal-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

footer {
    padding: 4rem 0 10rem; /* Bottom padding to prevent overlap with cookie banner */
    background: #050505;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

footer .container {
    text-align: center;
}

.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--muted-text);
}

.footer-legal-links a:hover {
    color: var(--accent-color);
}


/* ANIMATIONS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-name {
        /* font-size handled by clamp() */
        -webkit-text-stroke: 0;
        /* Remove stroke on mobile for readability */
        color: var(--text-color);
    }

    .brand-name::after {
        display: none;
    }

    .section {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}

/* T-SHIRT THEMED ELEMENTS */
.clothing-label {
    background-color: #1a1a1a;
    background-image: repeating-linear-gradient(45deg, #222 25%, transparent 25%, transparent 75%, #222 75%, #222),
        repeating-linear-gradient(45deg, #222 25%, #1a1a1a 25%, #1a1a1a 75%, #222 75%, #222);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    border: 2px dashed #555;
    padding: var(--spacing-md) var(--spacing-lg);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 4rem auto;
    /* Centering */
    width: 90%;
    /* Reset width inheritance issue */
    max-width: 800px;
    transform: none;
    /* Removed rotation for better alignment */
}

.clothing-label::before {
    content: "EST. 2026";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 2px 10px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    border: 1px solid #333;
    font-family: var(--font-display);
}

.screen-frame {
    border: 20px solid #2a2a2a;
    background-color: #1a1a1a;
    padding: var(--spacing-md);
    box-shadow:
        inset 0 0 50px #000,
        0 0 30px rgba(0, 229, 255, 0.15);
    position: relative;
    margin: 4rem auto;
    max-width: 1100px;
    border-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='100' fill='%231a1a1a'/%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z' stroke='%23333' stroke-width='2' fill='none'/%3E%3Cpath d='M50 5 L50 15 M50 85 L50 95 M5 50 L15 50 M85 50 L95 50' stroke='%2300E5FF' stroke-width='1'/%3E%3C/svg%3E") 30 stretch;
}

.screen-frame::after {
    content: "SWORN";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.6;
    letter-spacing: 1rem;
}

.screen-frame>* {
    position: relative;
    z-index: 1;
}

/* Mobile Adjustments for Themed Elements */
@media (max-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        letter-spacing: 0.02em;
    }

    .brand-name {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .philosophy h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .clothing-label {
        border: 2px dashed #555;
        padding: var(--spacing-sm) var(--spacing-md);
        margin: 2rem auto;
        /* Center on mobile */
        width: 100%;
        /* Use full available width minus padding */
        transform: none;
        /* Reset rotation */
    }

    /* content "EST. 2026" inherits from global, no need to override unless changing size */

    .screen-frame {
        border-width: 8px;
        /* Thinner border on mobile */
        padding: var(--spacing-sm);
        margin: 4rem auto;
    }
}

/* Shop Styles */
.shop-header {
    text-align: center;
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: var(--spacing-sm);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #222;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.8rem;
    overflow: hidden;
    /* Ensure image fits */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-meta {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 0.5rem;
    display: block;
}

.product-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Mobile Refinements */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .main-header {
        padding: 0 1.5rem;
    }

    .header-logo {
        height: 35px;
    }

    .carousel-slide {
        width: 250px;
        min-width: 250px;
        margin: 0 -30px;
        /* Reduced overlap for mobile visibility */
    }

    .carousel-nav {
        gap: 2rem;
        margin-top: 3rem;
    }

    .carousel-btn {
        font-size: 2.5rem;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .header-title {
        display: none;
        /* Only show logo on mobile for space */
    }
}

/* Page Header for subpages */
.page-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    position: relative;
    padding-top: var(--header-height);
}

.page-header h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

/* Landing Page Hero Entry */
.landing-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
}

.landing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.landing-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 4rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-color);
    border: 2px solid rgba(0, 229, 255, 0.3);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    min-width: 250px;
}

.landing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.landing-btn:hover {
    color: var(--bg-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.4);
    font-weight: bold;
}

.landing-btn:hover::before {
    width: 100%;
}

@media (max-width: 768px) {
    .landing-links {
        flex-direction: column;
        width: 90%;
        gap: 1.5rem;
    }
    
    .landing-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
    .landing-hero {
        justify-content: flex-start;
        padding-top: calc(var(--header-height) + 2rem);
    }
}