:root {
    --bg-main: #050505;
    --bg-darker: #000000;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #ff6b00;
    --accent-hover: #e66000;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--accent-primary);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    background: var(--accent-primary);
    color: #fff;
    border: 2px solid var(--accent-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text-block {
    flex: 1;
}

.hero-label {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    position: relative;
}

.book-cover {
    width: 100%;
    max-width: 320px;
    min-height: 450px;
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.book-cover:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 107, 0, 0.4);
}

/* Main Layout (Two Columns) */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

/* Left Column: Feed */
.feed-header {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-card {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.article-date {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.article-title a:hover {
    color: var(--accent-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.8rem;
    color: var(--text-primary);
}

/* Right Column: Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-author {
    text-align: center;
}

.author-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-primary);
    filter: grayscale(20%);
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--accent-primary);
}

/* Newsletter Widget */
.newsletter-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.newsletter-widget p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-full {
    width: 100%;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Override */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hamburger {
        display: block;
    }

    /* Layout Calibration */
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .about-header {
        padding-top: 6rem;
    }

    .about-header h1 {
        font-size: 2.2rem;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .feed-header {
        font-size: 1.6rem;
    }
}

/* About Page Specific Styles */
.about-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-main) 100%);
}

.about-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.about-main {
    padding: 5rem 0;
    max-width: 800px;
}

.about-section {
    margin-bottom: 5rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-section p strong {
    color: var(--text-primary);
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Contact Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--accent-primary);
    font-weight: 600;
}

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