/* Base Styles */
:root {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --text-color: #f5f5f5;
    --accent-cyan: #4CC9F0;
    --accent-red: #E63946;
    --accent-gold: #F4C430;
    --title-font: 'Orbitron', sans-serif;
    --body-font: 'Inter', 'Noto Sans JP', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 18, 18, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 201, 240, 0.3);
}

.logo a {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.7);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
}

.nav-menu a.active {
    color: var(--accent-cyan);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
    transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, rgba(18, 18, 18, 0.9) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glowing-text {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.7),
                 0 0 20px rgba(76, 201, 240, 0.5),
                 0 0 30px rgba(76, 201, 240, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(76, 201, 240, 0.7),
                     0 0 20px rgba(76, 201, 240, 0.5),
                     0 0 30px rgba(76, 201, 240, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(76, 201, 240, 0.9),
                     0 0 25px rgba(76, 201, 240, 0.7),
                     0 0 35px rgba(76, 201, 240, 0.5);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    font-family: var(--title-font);
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.cta-button:hover {
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    left: 100%;
}

/* Featured Section */
.featured {
    padding: 5rem 5%;
    background-color: var(--secondary-bg);
}

.featured h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(244, 196, 48, 0.5);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.chapter-card {
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.chapter-gif {
    margin-bottom: 1rem;
    text-align: center;
}

.gif-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(76, 201, 240, 0.3);
    transition: border-color 0.3s ease;
}

.chapter-card:hover .gif-image {
    border-color: rgba(76, 201, 240, 0.8);
}

.chapter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.5);
}

.chapter-number {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.chapter-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.read-button {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--accent-red);
    color: var(--text-color);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.read-button:hover {
    background-color: #c8323e;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.7);
}

/* Footer */
footer {
    background-color: var(--primary-bg);
    padding: 3rem 5%;
    border-top: 1px solid rgba(76, 201, 240, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        padding: 1rem 3%;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        display: none !important;
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: top 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(76, 201, 240, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex !important;
        top: 70px;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: rgba(76, 201, 240, 0.1);
    }

    .hero {
        height: 100vh;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .featured {
        padding: 3rem 1rem;
    }

    .featured h2 {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chapter-card {
        padding: 1.5rem;
    }

    .chapter-card h3 {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}