:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ff3333;
    /* Optional accent, maybe a red or just white */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 800px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.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);
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    /* Align to bottom */
    justify-content: center;
    overflow: hidden;
    padding-bottom: 60px;
    /* Margin to bottom */
    padding-top: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    /* Fallback */
    background-image: url('ressources/FCDidi-Shirt_2026_L1240898_web_(c)DidiOffensiv.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.6;
    /* Dim the image a bit */
}

/* Gradient overlay at bottom of hero for smooth transition */
.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-content:hover {
    transform: translateY(-10px);
}

.hero-logo {
    width: 100%;
    max-width: 150px;
    /* Small logo */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    display: block;
    margin: 0 auto;
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 100px 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding-left: 20px;
}

.text-block {
    margin-bottom: 60px;
}

.text-block:last-child {
    margin-bottom: 0;
}

.text-block h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.text-block p {
    font-size: 1.5rem;
    opacity: 0.8;
}



/* Video Update */
.split-video {
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9/16;
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mute-btn svg {
    width: 24px;
    height: 24px;
}

.mute-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.hidden {
    display: none;
}

/* Image Detail Section */
.image-section {
    width: 100%;
    padding: 50px 0;
    display: block;
    background-color: #000;
}

.image-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.image-section img:hover {
    opacity: 1;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-flow: dense;
    /* Crucial for packing the grid */
    gap: 15px;
    padding: 0 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.5s;
    cursor: pointer;
}

.grid-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Helper classes for grid spans via HTML */
.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1500px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Order Form Modal Specifics */
.order-form-container {
    background-color: #111;
    padding: 40px;
    border: 1px solid #333;
    max-width: 600px;
    width: 90%;
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
}

.order-form-container h2 {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.close-order {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-order:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
}

.shirt-line {
    display: flex;
    gap: 15px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
}

.shirt-line .form-group {
    margin-bottom: 0;
}

.shirt-line .half {
    flex: 1;
}

.secondary-btn {
    background: transparent;
    border: 1px dashed #555;
    color: #aaa;
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 30px;
    border-radius: 4px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: #222;
    color: #fff;
    border-color: #777;
}

.full-width {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.remove-line {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #333;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.remove-line:hover {
    background: var(--accent-color);
}

/* Order Section */
.order-section {
    padding: 120px 20px;
    text-align: center;
}

.product-card {
    background: linear-gradient(145deg, #0f0f0f, #050505);
    border: 1px solid #222;
    padding: 60px 40px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
    border-color: #333;
}

.product-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card .lead {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #aeaeae;
}

.sizes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sizes span {
    display: inline-block;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
}

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0;
    /* Removed margin to align with button */
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 15px 40px;
    /* Slightly adjusted padding */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background-color: #f0f0f0;
}

.small-print {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #555;
    letter-spacing: 0.5px;
}

.order-total-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.order-total {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.payment-info {
    font-size: 0.9rem;
    color: #aaa;
}

.size-notice {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 25px;
    margin-top: -15px;
    text-align: center;
    line-height: 1.4;
}

/* Form Feedback */
.form-feedback {
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    min-height: 20px;
}

.success-message {
    color: #4CAF50;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

.error-message {
    color: #f44336;
    padding: 10px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 4px;
}

/* Footer */
.footer-section {
    padding: 80px 20px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #444;
    border-top: 1px solid #111;
    text-transform: uppercase;
}

.credits p {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 20px;
        gap: 60px;
    }

    .split-text {
        text-align: center;
        padding-left: 0;
    }



    .text-block h2 {
        font-size: 2.5rem;
    }

    .price-tag {
        font-size: 3.5rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        padding-bottom: 50px;
    }

    /* Reset spans on mobile to prevent layout breakage */
    .col-span-2,
    .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}