/* Sakura Theme - Japanese Style Website */
:root {
    --primary-color: #FFB7C5;
    --secondary-color: #FFF0F5;
    --accent-color: #FF69B4;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --light-pink: #FFE4E1;
    --sakura-pink: #FFC0CB;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    overflow-x: hidden;
}

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

.sakura-petal {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 150% 0 150% 0;
    animation: sakura-fall 10s linear infinite;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(255, 183, 197, 0.3);
}

.sakura-petal::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 150% 0 150% 0;
    transform: rotate(90deg);
    opacity: 0.7;
}

@keyframes sakura-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* 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(255, 183, 197, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Noto Serif', serif;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.3);
    transition: var(--transition);
}

.nav-logo:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(255, 183, 197, 0.4);
    transform: rotate(5deg);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-pink);
    position: relative;
    z-index: 10;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    color: var(--text-light);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--primary-color);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Noto Serif', serif;
    text-shadow: 2px 2px 4px rgba(255, 183, 197, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Common Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: 'Noto Serif', serif;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Generator Section */
.generator {
    background: var(--white);
}

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

.generator-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.control-input {
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: 'Noto Sans', sans-serif;
}

.control-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.generate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

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

.generated-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    border: 1px solid var(--light-pink);
    position: relative;
    overflow: hidden;
}

.generated-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.generated-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
}

.generated-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-family: 'Noto Serif', serif;
}

.generated-card .reading {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.generated-card .meaning {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.generated-card .gender-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gender-tag.surname {
    background: #e7e9db;
    color: #d1db3c;
}

.gender-tag.male {
    background: #E3F2FD;
    color: #1976D2;
}

.gender-tag.female {
    background: #FCE4EC;
    color: #C2185B;
}

/* Name Card Styles */
.name-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    border: 1px solid var(--light-pink);
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.name-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
}

.name-kanji {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif', serif;
}

.name-reading {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.name-romaji {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.name-meaning {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.name-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.name-tags .tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--secondary-color);
    color: var(--accent-color);
    border: 1px solid var(--primary-color);
}

/* Name Category Styles */
.name-category {
    margin-bottom: 2rem;
}

.name-category h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Converter Results Styles */
.conversion-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--light-pink);
    box-shadow: 0 3px 15px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
}

.conversion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.15);
}

.conversion-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversion-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Noto Serif', serif;
    line-height: 1.3;
}

.gender-tag.unisex {
    background: #F3E5F5;
    color: #7B1FA2;
}

.gender-tag.full-name {
    background: #E8F5E8;
    color: #2E7D32;
}

/* Converter Section */
.converter {
    background: var(--secondary-color);
}

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

.converter-input {
    margin-bottom: 2rem;
}

.converter-input label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

#converterInput {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

#converterInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.converter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.converter-results {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    min-height: 200px;
}

.conversion-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--secondary-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.conversion-item:last-child {
    margin-bottom: 0;
}

.conversion-label {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.conversion-value {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-family: 'Noto Serif', serif;
}

/* English to Japanese Name Converter Section */
.english-converter {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
}

.english-converter-container {
    max-width: 900px;
    margin: 0 auto;
}

.converter-input-group {
    margin-bottom: 2rem;
}

.converter-input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#englishNameInput {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    margin-bottom: 0.5rem;
}

#englishNameInput:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.input-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.converter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.english-converter-results {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    min-height: 300px;
}

.english-conversion-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.english-conversion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 183, 197, 0.2);
}

.english-conversion-card:last-child {
    margin-bottom: 0;
}

.conversion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.english-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.japanese-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Noto Serif', serif;
}

.japanese-reading {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

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

.detail-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.detail-label {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: var(--text-dark);
    font-size: 1rem;
}

.conversion-explanation {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border-top: 3px solid var(--primary-color);
}

.conversion-explanation h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.conversion-explanation p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.meaning-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.kanji-component {
    background: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Meanings Section */
.meanings {
    background: var(--white);
}

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

.meaning-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    border: 1px solid var(--light-pink);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.meaning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
}

.meaning-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-family: 'Noto Serif', serif;
}

.meaning-card .reading {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.meaning-breakdown {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.kanji-meaning {
    background: var(--secondary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    color: var(--accent-color);
    font-weight: 600;
}

.full-meaning {
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
}

/* Culture Section */
.culture {
    background: var(--secondary-color);
}

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

.culture-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 183, 197, 0.2);
}

.culture-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

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

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

/* Gallery Section */
.gallery {
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 183, 197, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 105, 180, 0.9), transparent);
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif', serif;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 2;
}

.footer-content {
    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', serif;
}

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

    .nav-logo {
        gap: 0.6rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

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

    .logo-sub {
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

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

    .search-box {
        flex-direction: column;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-icon svg {
        width: 18px;
        height: 18px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }

    .search-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Origins and History Section */
.origins {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    position: relative;
    z-index: 2;
}

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

.origin-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.origin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.origin-card:hover::before {
    transform: scaleX(1);
}

.origin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 183, 197, 0.2);
    border-color: var(--primary-color);
}

.origin-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.origin-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.origin-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Timeline Styles */
.origins-timeline {
    margin-top: 4rem;
}

.origins-timeline h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

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

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

.timeline-date {
    flex: 0 0 200px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 183, 197, 0.1);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.1);
    margin: 0 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

/* Refresh Button Container */
.refresh-button-container {
    text-align: center;
    margin-top: 3rem;
}

#refreshMeanings {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: var(--transition);
}

#refreshMeanings:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.3);
}

#refreshMeanings i {
    transition: transform 0.3s ease;
}

#refreshMeanings:hover i {
    transform: rotate(180deg);
}

/* SEO Content Section */
.seo-content {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    position: relative;
    z-index: 2;
}

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

.seo-content-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.seo-content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.2);
}

.seo-content-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.seo-content-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-date {
        flex: none;
        margin-bottom: 1rem;
        width: auto;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
    
    .origins-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .refresh-button-container {
        margin-top: 2rem;
    }
    
    #refreshMeanings {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}