/* --- Tutorials Page - Ultra Premium Styling --- */

:root {
    --color-primary: #000000;
    --color-gold: #d4af37;
    --color-gold-light: #f9f295;
    --color-gold-dark: #8c6a42;
    --color-silk: #f8f5f2;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Hero Section - Ultra Premium Redesign --- */
.tutorials-hero {
    height: 80vh; /* Premium cinematic wide banner height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Softer opacity to allow text to stand out */
    animation: heroZoom 30s infinite alternate linear;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 10%, rgba(0,0,0,0.8) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 10%, rgba(0,0,0,0.8) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #000 20%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

.hero-text-box {
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-gold);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 85px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.hero-title span {
    display: block;
    color: var(--color-gold);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1em;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 500px;
    animation: fadeInLeft 1.2s ease-out 0.4s both;
    border-left: 2px solid var(--color-gold);
    padding-left: 30px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollLineAnim 2s infinite linear;
}

@keyframes scrollLineAnim {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Image Grid Section --- */
.tutorials-content {
    background: var(--color-silk);
    padding: 100px 0;
    position: relative;
}

.tutorials-header {
    text-align: center;
    margin-bottom: 60px;
}

.tutorials-header h2 {
    font-size: 45px;
    font-family: var(--font-heading);
    color: #111;
    margin-bottom: 15px;
}

.tutorials-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tutorial-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.15);
}

.tutorial-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.tutorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tutorial-card:hover .tutorial-img {
    transform: scale(1.08);
}

.tutorial-card-content {
    padding: 30px 25px;
    background: #fff;
    flex-grow: 1;
    position: relative;
}

.step-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tutorial-card-content h3 {
    font-size: 22px;
    color: #111;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.tutorial-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 65px;
    }
}

@media (max-width: 768px) {
    .tutorials-hero {
        height: auto;
        padding: 100px 0 60px;
        flex-direction: column;
    }

    .hero-bg-img {
        width: 100%;
        height: 100%;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    }

    .hero-overlay {
        background: linear-gradient(0deg, #000 40%, rgba(0,0,0,0) 100%);
    }

    .hero-content {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-text-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 45px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 15px;
        padding-left: 0;
        border-left: none;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .tutorials-content {
        padding: 60px 20px;
    }

    .tutorials-header h2 {
        font-size: 32px;
    }

    .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Lightbox Modal Styles --- */
.tutorial-lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-lightbox.active {
    opacity: 1;
}

.tutorial-lightbox .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.tutorial-lightbox.active .lightbox-content {
    transform: scale(1);
}

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

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover {
    color: var(--color-gold);
    transform: translateY(-50%) translateX(-5px);
}

.lightbox-next:hover {
    color: var(--color-gold);
    transform: translateY(-50%) translateX(5px);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 30px;
    }
}
