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

:root {
    --pastel-pink: #FFD3E1;
    --pastel-blue: #C4E0FF;
    --pastel-purple: #E5DAFF;
    --pastel-mint: #D4F4DD;
    --pastel-peach: #FFE5CC;
    --pastel-lavender: #E8DBFF;
    --text-dark: #3D3D4E;
    --text-light: #6B6B7E;
    --white: #FFFFFF;
    --cream: #FFFBF5;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #FF8FB1, #C891FF, #8BC6FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-purple));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #FF8FB1;
}

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

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFE5F0 0%, #E5F3FF 50%, #F0E5FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 211, 225, 0.3), transparent);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 224, 255, 0.3), transparent);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 4rem 2rem;
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FF8FB1, #C891FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-korean {
    font-family: 'Noto Serif KR', serif;
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pastel-purple), transparent);
    margin: 2rem auto;
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--white);
}

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

.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-purple));
}

/* Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--pastel-pink), var(--pastel-purple), var(--pastel-blue));
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 150px;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF8FB1;
    text-align: center;
    padding: 1rem;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin: 0 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    font-family: 'Noto Serif KR', serif;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

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

.genre-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-8px);
}

.genre-header {
    padding: 2rem;
    text-align: center;
}

.genre-header h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.genre-card p {
    padding: 0 2rem 2rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Popular Manhwas */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.popular-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-8px);
}

.popular-rank {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF8FB1, #C891FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(255, 143, 177, 0.3);
}

.popular-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.popular-genre {
    font-size: 0.9rem;
    color: #FF8FB1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.popular-card > p:last-child {
    color: var(--text-light);
    line-height: 1.8;
}

/* Platforms */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
}

.platform-card h3 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.platform-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.platform-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-purple));
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-header {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-purple), var(--pastel-blue));
}

.comparison-header .comparison-cell {
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Noto Serif KR', serif;
}

.comparison-cell {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.comparison-row:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #3D3D4E 0%, #2A2A3A 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    font-family: 'Noto Serif KR', serif;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--pastel-pink);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--pastel-pink);
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-korean {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-content {
        margin: 1rem 0;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell {
        border-bottom: 1px solid #f0f0f0;
    }
}

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

/* Selection Color */
::selection {
    background: var(--pastel-purple);
    color: var(--text-dark);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pastel-pink), var(--pastel-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF8FB1, #C891FF);
}