/* 
   -----------------------------------------
   Thrift & Threads - Main Styling
   -----------------------------------------
*/

/* 1. Global Variables (The Theme) */
:root {
    --primary-color: #000000;
    --secondary-color: #ff4757;
    --accent-color: #ff6b81;
    --bg-light: #f8f9fa;

    --text-dark: #2d3436;
    --text-light: #b2bec3;
    --white: #ffffff;

    --font-main: 'Outfit', sans-serif;
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* 2. Reset and Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 3. Navigation Bar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(26, 26, 36, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar:hover {
    background-color: rgba(26, 26, 36, 0.92);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

.logo:hover .motto {
    opacity: 1;
    color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    position: relative;
}

/* Hover underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-main);
}

/* Shop Menu Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(26, 26, 36, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 101;
    border-radius: 12px;
    top: 100%;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    cursor: pointer;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

/* 4. Hero & Intro Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.85), rgba(45, 52, 54, 0.6)), url('images/hero-bg.jpg') center/cover;
    color: var(--white);
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition-fast);
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 5. Slider / Banner logic */
.slider-container {
    position: relative;
    overflow: hidden;
    height: 90vh;
    width: 100%;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: var(--white);
}

.slide-1 {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.85), rgba(45, 52, 54, 0.6)), url('images/hero-bg.jpg') center/cover;
}

.slide-2 {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(255, 71, 87, 0.4)), url('images/hero-bg2.jpg') center/cover;
}

.slide-3 {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(45, 52, 54, 0.7)), url('images/hero-bg3.jpg') center/cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
}

.slider-btn-prev {
    left: 20px;
}

.slider-btn-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--secondary-color);
}

/* 6. Product Collections Grid */
.categories {
    padding: 6rem 5%;
    background-color: var(--white);
    text-align: center;
}

.categories h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    border-radius: 20px;
    height: 450px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.thrift-card {
    background: url('images/thrifts/thrift-placeholder.jpg') center/cover;
}

.custom-card {
    background: url('images/customized/custom-placeholder.jpg') center/cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 36, 0.9) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: var(--white);
    text-align: left;
    transition: var(--transition-slow);
}

.category-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(255, 71, 87, 0.95) 0%, rgba(255, 71, 87, 0.2) 100%);
}

.card-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.card-overlay p {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.category-card:hover .card-overlay h3 {
    transform: translateY(0);
}

.category-card:hover .card-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* 7. YouTube Video Section */
.video-section {
    padding: 6rem 5%;
    background-color: var(--bg-light);
    text-align: center;
}

.video-section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 8. Footer Area */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-about h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.footer-about p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 400px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
}

/* 9. Mobile Responsiveness */
@media (max-width: 900px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
        position: relative;
    }

    .hamburger {
        display: block !important;
        order: 1;
    }

    .logo {
        order: 2;
        margin: 0 auto;
        text-align: center;
    }

    .nav-btn {
        order: 3;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 36, 0.98);
        backdrop-filter: blur(15px);
        padding: 2rem 5%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    #nav-menu.active {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .slide {
        text-align: center;
    }
}