:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --accent-orange: #FF6600;
    --accent-green: #4CAF50;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    /* Set the gradient overlay AND the background image on the body */
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.4) 0%, rgba(18, 18, 18, 0.95) 100%),
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Makes the background stay still while scrolling */
    
    color: var(--text-gray);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 650px;
    /* Reduced to make the square layout smaller */
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    text-transform: uppercase;
}

/* --- Header & Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    /* Removed min-height to pull the next section up */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0 0px; /* Add top padding to push content down, 0 bottom padding */
}

.header-socials {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 250px;
    max-width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px rgba(255, 102, 0, 0.3));
}

.main-headline {
    color: var(--accent-orange);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.headline-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.hero-intro {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 80%;
    margin: 0 auto;
}

/* --- Advantages Section --- */
.advantages-section {
    padding: 25px 20px 50px 20px;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.advantage-card {
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.advantage-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 102, 0, 0.3);
}

.card-icon {
    color: var(--accent-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid var(--accent-orange);
    padding: 6px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.card-text h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.card-text p {
    font-size: 0.85rem;
    color: var(--text-white);
    line-height: 1.4;
}

/* --- Materials Section --- */
.materials-section {
    padding: 60px 20px 50px;
}

.section-title {
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-white);
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    /* Override uppercase for this specific title */
}

.material-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 100%;
    margin: 0 auto;
}

.material-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.material-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: inherit;
    width: 100%;
    padding: 25px 15px 45px 15px; /* extra bottom padding for the arrow */
    border-radius: 12px;
    background-color: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.material-link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    font-size: 1.2rem;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.material-link:hover {
    background-color: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 102, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.material-link:hover::after {
    transform: translateX(5px);
}

.mat-icon {
    color: var(--text-white);
    font-size: 2.2rem;
    width: 60px;
    /* Fixed width to align all titles vertically */
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.mat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mat-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-align: left;
}

.mat-content p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.4;
    text-align: left;
}

/* --- Carousel Section --- */
.carousel-section {
    padding: 30px 20px 60px;
    position: relative;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    padding-bottom: 15px;
    width: 100%;
    /* Hide scrollbar completely but allow scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-image {
    flex: 0 0 calc(100% - 30px);
    /* 1 custom square-ish image shown completely on mobile */
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-card);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 30, 30, 0.8);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background-color: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

.carousel-btn.prev {
    left: -15px;
}

.carousel-btn.next {
    right: -15px;
}

/* --- Video Section --- */
.video-section {
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Ensure video respects border-radius */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Match the cards */
    background-color: var(--bg-card);
    /* Fallback */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Subtle depth */
    position: relative;
    /* Optional aspect ratio trick for responsiveness, natively handled by most videos though */
}

/* Ensure the video scales flexibly */
.promo-video {
    width: 100%;
    height: auto;
    display: block;
    /* Remove bottom whitespace */
    object-fit: cover;
}

/* --- CTA Section --- */
.cta-section {
    padding: 20px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #FF3300 0%, var(--accent-orange) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: var(--accent-green);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn i {
    font-size: 1.3rem;
}

.btn-text {
    text-align: left;
    line-height: 1.3;
}

/* --- Footer --- */
.site-footer {
    background-color: #0A0A0A;
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content.horizontal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a.active-link {
    color: var(--accent-orange);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #1E1E1E;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.facebook:hover {
    background-color: #1877F2;
    transform: translateY(-3px);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-3px);
}

.social-icon.pinterest:hover {
    background-color: #E60023;
    transform: translateY(-3px);
}

.social-icon.tiktok:hover {
    background-color: #010101;
    box-shadow: 2px 2px 0px #fe2c55, -2px -2px 0px #25f4ee;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* --- Gallery Section --- */
.gallery-wrapper {
    padding: 40px 20px 80px;
    text-align: center;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    /* Prevent layout shifting during filter hide */
    min-height: 400px;
    align-items: start;
}

.gallery-item {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.gallery-placeholder {
    background-color: rgba(30, 30, 30, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.gallery-placeholder:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background-color: rgba(30, 30, 30, 0.8);
    transform: scale(1.02);
}

.gallery-placeholder i {
    font-size: 2.5rem;
}

.gallery-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Media Queries for Desktop layout */
@media (min-width: 768px) {
    .main-headline {
        font-size: 2.1rem;
    }

    .hero-intro {
        font-size: 1.3rem;
    }

    .cta-section {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .btn {
        width: auto;
        padding: 18px 40px;
    }

    .materials-section.container {
        max-width: 1100px;
    }

    .material-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        gap: 30px;
    }

    .material-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mat-content h4, 
    .mat-content p {
        text-align: center;
    }

    .carousel-image {
        flex: 0 0 calc(33.333% - 10px);
        /* Show exactly 3 square images at a time on desktop */
    }
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-orange);
}