/* ========================================= */
/* 1. ROOT VARIABLES & BASE STYLES           */
/* ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --text-light: #f4f4f5;
    --accent-fire: #e11d48; /* Bold crimson */
    --accent-gold: #fbbf24; /* Phoenix gold */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================= */
/* 2. NAVIGATION                             */
/* ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-fire);
}

/* ========================================= */
/* 3. HERO SECTION                           */
/* ========================================= */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 4px 4px 0px rgba(225, 29, 72, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
}

/* ========================================= */
/* 4. LAYOUT & SECTIONS                      */
/* ========================================= */
.section-dark, .section-accent {
    padding: 8rem 5%;
}

.section-accent {
    background-color: #111;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 3rem;
    font-style: italic;
}

.text-block p {
    font-size: 1.25rem;
    max-width: 800px;
    color: #a1a1aa;
}

/* ========================================= */
/* 5. GRIDS & CARDS                          */
/* ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.card {
    background: #1a1a1a;
    padding: 3rem;
    border-left: 4px solid var(--accent-fire);
    transition: transform 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Custom Link Styling for Cards */
.card-link {
    text-decoration: none; 
    color: inherit; 
    display: block;
}

.card-link .card {
    cursor: pointer; 
}

/* ========================================= */
/* 6. AUTHOR SECTION                         */
/* ========================================= */
.book-showcase {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(0,0,0,0) 100%);
    padding: 4rem;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.book-tagline {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ========================================= */
/* 7. BUTTONS                                */
/* ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-fire);
    color: #fff;
}

.btn-primary:hover {
    background-color: #be123c;
}

.btn-secondary {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* ========================================= */
/* 8. FOOTER                                 */
/* ========================================= */
footer {
    text-align: center;
    padding: 6rem 5%;
    background-color: #050505;
}

footer h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer p {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

/* ========================================= */
/* 9. MOBILE RESPONSIVENESS                  */
/* ========================================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }

    .glitch-text {
        font-size: 3rem; 
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .section-dark, .section-accent {
        padding: 4rem 5%; 
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }

    .book-showcase {
        padding: 2rem 1.5rem;
    }
    
    .book-tagline {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    footer h2 {
        font-size: 2rem;
    }
}

/* ========================================= */
/* 10. TABS & STUDENT WORKS                  */
/* ========================================= */
.tabs-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.tab-btn:hover {
    color: var(--accent-fire);
    opacity: 0.8;
}

.tab-btn.active {
    opacity: 1;
    color: var(--accent-gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-fire);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-text {
    color: var(--accent-fire);
    font-family: var(--font-heading);
    font-style: italic;
    display: inline-block;
    margin-top: 1.5rem;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.card-link:hover .btn-text {
    transform: translateX(8px);
}

.card-empty {
    border-left-color: #333;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
        gap: 1rem;
        border-bottom: none;
        margin-bottom: 2rem;
    }
    .tab-btn {
        font-size: 1.25rem;
        text-align: left;
    }
    .tab-btn.active::after {
        display: none;
    }
    .tab-btn.active {
        border-left: 3px solid var(--accent-fire);
        padding-left: 1rem;
    }
}