:root {
    /* Color Palette */
    --color-primary: #006994;
    /* Ocean Blue */
    --color-secondary: #4ECDC4;
    /* Turquoise */
    --color-accent: #FF6B6B;
    /* Coral Pink */
    --color-bg-light: #F7F9FC;
    --color-bg-dark: #0A2342;
    --color-text-main: #2C3E50;
    --color-text-light: #FFFFFF;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-ocean: linear-gradient(135deg, #006994 0%, #4ECDC4 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);

    /* Typography */
    --font-main: 'Zen Maru Gothic', sans-serif;
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
}

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

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

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at top right, #e0f7fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.main-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-bg-dark);
}

.title-small {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.highlight {
    color: var(--color-accent);
    background: linear-gradient(120deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0) 100%);
    padding: 0 0.2em;
    border-radius: 0.2em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-main);
    font-family: var(--font-main);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-ocean);
    color: var(--color-white);
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* About Section */
.section {
    padding: 6rem 2rem;
}

.about-section {
    background-color: var(--color-white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.section-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Footer */
.main-footer {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 2rem;
    text-align: center;
    font-family: var(--font-main);
}

/* Bubbles Animation */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

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

    .title-small {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }
}

/* Characters Section */
.characters-section {
    background-color: var(--color-bg-light);
}

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

.character-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-10px);
}

.char-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--color-bg-light);
}

.char-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('assets/characters.jpg');
    background-size: 300% auto;
    /* Zoom in to show one character at a time */
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

/* Crop positions for each character */
.color-1 {
    background-position: 5% 20%;
}

/* Awaawa (Left) */
.color-2 {
    background-position: 50% 20%;
}

/* Awa-hakase (Center) */
.color-3 {
    background-position: 95% 20%;
}

/* Awasan (Right) */

.character-card:hover .char-placeholder {
    background-size: 320% auto;
    /* Subtle zoom effect */
}

.character-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Comic Section */
.comic-section {
    background-color: #e0f7fa;
    /* Light ocean blue */
}

.comic-viewer {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: var(--color-white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comic-img {
    width: 100%;
    height: auto;
    display: block;
}

.comic-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-heading);
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

/* Learn Section */
.learn-section {
    background-color: var(--color-white);
}

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

.learn-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.learn-card:hover {
    border-color: var(--color-secondary);
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.2);
}

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

.learn-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.learn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 700;
}

.learn-link:hover {
    text-decoration: underline;
}

/* Vertical Comic Adjustment */
.comic-viewer.vertical {
    max-width: 500px;
    /* Limit width for vertical comic to avoid it being too huge */
}

/* Subpage Styles */
.page-header {
    background: var(--gradient-ocean);
    color: var(--color-white);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.supplement-label {
    font-family: var(--font-heading);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.page-content {
    background-color: var(--color-bg-light);
}

.content-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--color-secondary);
    padding-left: 1rem;
}

.highlight-box {
    background-color: #f0fcfc;
    padding: 2rem;
    border-radius: 10px;
    line-height: 2;
    font-size: 1.1rem;
}

.back-link-container {
    text-align: center;
    margin-top: 3rem;
}

.cta-button.secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-button.secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}