:root {
    --bg-color: #0a0a0b;
    --card-bg: #161618;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e4;
    --accent: #07d47f;
    --glass: rgba(255, 255, 255, 0.05);
    --pill-bg: #ffffff;
    --pill-text: #0a0a0b;
    --font-main: 'Urbanist', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    font-size: 110%;
    font-weight: 500;
    letter-spacing: 0.03em; 
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    /* font-family: 'Inter', sans-serif; */
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3 {
    /* font-weight: 700;
    letter-spacing: 0.05em;  */
    /* text-transform: uppercase; */
}

/* --- NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.logoimg { 
    height: 3rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a[href="index.html"] {
    font-size: 1.5rem;
    line-height: 1; 
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 3px rgba(10, 10, 11, 0.5); 
}

.nav-links a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* --- FEATURED HERO --- */
.featured-hero {
    padding: 0;
    margin: 0;
}

.featured-hero--card {
    padding: 0 5%;
}

.hero-video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.scroll-arrow:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.hero-content {
    max-width: 1200px;
    padding: 3rem 5%;
    margin: 0 auto;
    width: 100%;
}

.hero-content p:last-child {
    margin-bottom: 0;
}

.badge {
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-content h1 { 
    font-size: 2.5rem; 
    margin: 0.5rem 0; 
}

/* Card-style hero for tutorials and shop pages */
.hero-card {
    position: relative;
    width: 100%;
    height: 70vh;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: 0.3s;
}

.hero-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.hero-card .hero-content {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.hero-card .hero-content h1 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

/* .studio-text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
} */

.studio-text {
    padding: 2rem 5% 0;
    /* display: flex; */
    /* gap: 1rem; */
    flex-wrap: wrap;
    text-align: left;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-primary);
}

#gallery {
    padding-top: 5rem;
}

/* --- TUTORIAL GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
    padding: 3rem 5% 5rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    height: 400px;
}

.post-card:hover {
    transform: translateY(-4px);
    /* border-color: var(--accent); */
    border-color: rgba(246, 253, 153, 0.5);
    box-shadow: 0px 0px 20px rgba(231, 255, 164, 0.3);
}

.post-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.post-info { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: white;
    z-index: 2;
}
.post-info h3 { 
    /* margin: 0.5rem 0;  */
    bottom: 0;
    font-size: 1.2rem; 
    font-weight: normal;
    color: white;
}
.post-info p { 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 0.8rem; 
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #555;
    border-top: 1px solid var(--glass);
    padding-top: 1rem;
}

/* --- MOBILE NAV --- */
.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    border: none; 
    background: none; 
}

.hamburger span { 
    width: 22px; 
    height: 2px; 
    background: white; 
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; 
        top: 65px; 
        right: -100%; 
        flex-direction: column;
        background: var(--bg-color); 
        width: 50%; 
        height: 100vh; 
        padding: 2rem; 
        transition: 0.4s;
    }
    .nav-links.open { right: 0; }
    
    /* Hero stays fullscreen on mobile */
    .hero-video-container { 
        height: 80vh;
    }
    
    /* Text section below video */
    .hero-content {
        padding: 2rem 5%;
    }

    .hero-video {
        height: 50vh;
        object-fit: cover;
    }

    .scroll-arrow {
        bottom: 1vh;
    }
    
    .studio-text {
        font-size: 1.1rem;
    }

    #gallery {
    padding-top: 3rem;
}

    /* Card hero responsive styles */
    .hero-card {
        height: 300px;
        margin: 1rem 0;
    }

    .hero-card .hero-content {
        padding: 1.5rem;
    }

    .hero-card .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* --- STUDIO FILTERS --- */

.filter-container {
    padding: 2rem 5% 0;
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap on small mobile screens */
    align-items: center; /* Vertically centers the "Filter:" text with the buttons */
    /* gap: 10px;  */
    gap: 1rem;
    /* margin-bottom: 2rem; */
}

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

button.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

a.filter-btn {
    background: transparent;
    border-color: transparent;
    cursor: default;
    /* color: rgb(255, 255, 255); */
    font-size: 1.1rem;
    padding-left: 0; 
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none; 
}

.post-card:hover .play-overlay {
    opacity: 1;
    pointer-events: auto; 
}

.label {
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-right: 5px;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #050506;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-email {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.footer-email:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    transform: scale(130%);
}

.copyright {
    color: #444;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
    .footer-left p {
        margin: 0.5rem auto 1.5rem;
    }
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
}

.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10002;
}

.modal-nav.prev {
    left: 10px;
}

.modal-nav.next {
    right: 10px;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-text {
    margin-top: 0;
    color: var(--text-primary);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent);
}

/* Shop Modal Styles */
.shop-modal-content {
    background: var(--card-bg);
    opacity: 90%;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shop-modal-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}