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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Display', 'SF Pro Display', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 1em;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Display', 'SF Pro Display', sans-serif;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.back-arrow {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Hamburger Menu */
.hamburger-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger animation when checked */
.hamburger-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}

.hamburger-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh; /* Increased height to prevent image cutoff */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1);
    opacity: 1;
    animation: fadeAndDesaturate 12s infinite;
}

@keyframes fadeAndDesaturate {
    0% {
        filter: saturate(1);
        opacity: 1;
    }
    25% {
        filter: saturate(0.8);
        opacity: 0.8;
    }
    50% {
        filter: saturate(0.64);
        opacity: 0.64;
    }
    75% {
        filter: saturate(0.512);
        opacity: 0.512;
    }
    100% {
        filter: saturate(0.4096);
        opacity: 0.4096;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade 12s infinite;
}

.overlay-image:nth-child(1) {
    animation-delay: 0s;
}

.overlay-image:nth-child(2) {
    animation-delay: 3s;
}

.overlay-image:nth-child(3) {
    animation-delay: 6s;
}

.overlay-image:nth-child(4) {
    animation-delay: 9s;
}

@keyframes crossfade {
    0% {
        opacity: 0;
    }
    12.5% {
        opacity: 0.8;
    }
    25% {
        opacity: 0.8;
    }
    37.5% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero-title-section {
    background-color: #000;
    padding: 80px 0 20px 0; /* More compact padding */
    text-align: center;
    min-height: 30vh; /* Reduced min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title-section h1 {
    font-size: 4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
    margin: 0;
    line-height: 1.1;
}

.title-bold {
    font-weight: 900;
    font-size: 4rem;
}

.title-subtitle {
    font-weight: 300;
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 20px 0 0 0;
    display: block;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Display', 'SF Pro Display', sans-serif;
}


.main-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Display', 'SF Pro Display', sans-serif;
}

.main-subtitle {
    font-size: 1.5rem;
    text-align: center;
    opacity: 0.8;
    font-weight: 300;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.article-card-link:hover .article-card {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.article-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.article-link:hover {
    opacity: 0.7;
}

/* Book Page Styles */
.book-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
    margin-top: 3rem;
}

.book-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover-full {
    width: 100%;
    margin-bottom: 2rem;
}


.book-info {
    padding: 40px;
    border-radius: 15px;
    margin: 2rem 0;
}

.book-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(10px);
}

.book-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.book-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.book-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.book-description p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.book-features {
    list-style: none;
    margin: 20px 0;
}

.book-features li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.book-status {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.notify-btn {
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Unbounded', sans-serif;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
    margin-top: 3rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.about-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.about-description p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.achievements {
    margin: 40px 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.achievements ul {
    list-style: none;
}

.achievements li {
    padding: 8px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        transition: top 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
    }

    .hamburger-toggle:checked ~ .nav-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .title-bold {
        font-size: 3rem;
    }

    .title-subtitle {
        font-size: 1.4rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .book-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .book-placeholder {
        width: 250px;
        height: 320px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .main-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .hero-title-section h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .title-bold {
        font-size: 2.5rem;
    }

    .title-subtitle {
        font-size: 1.2rem;
    }

    .article-card {
        padding: 20px;
    }

    .book-placeholder {
        width: 200px;
        height: 260px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
