/* rinji.net - Fairycore Enchanted Forest Theme */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #e8b84b (accent gold), #f5f0e8 (warm off-white), #6c757d (muted gray) */
/* Fonts: Nunito, Quicksand */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Quicksand', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== PARALLAX BACKGROUND ===== */
#parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

#parallax-bg-deep {
    background: radial-gradient(ellipse at 30% 60%, #2a1a3e 0%, #1a1a2e 60%),
                radial-gradient(ellipse at 70% 40%, #251a38 0%, transparent 50%);
}

#parallax-trees-far {
    background:
        linear-gradient(transparent 65%, #1a1a2e 65%, #1a1a2e 67%, transparent 67%),
        radial-gradient(ellipse 40px 60px at 10% 72%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 35px 55px at 20% 70%, #251a38 50%, transparent 51%),
        radial-gradient(ellipse 45px 65px at 35% 71%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 30px 50px at 50% 73%, #251a38 50%, transparent 51%),
        radial-gradient(ellipse 40px 60px at 65% 70%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 35px 55px at 80% 72%, #251a38 50%, transparent 51%),
        radial-gradient(ellipse 42px 62px at 92% 71%, #2a1a3e 50%, transparent 51%);
    opacity: 0.6;
}

#parallax-trees-mid {
    background:
        radial-gradient(ellipse 50px 70px at 5% 78%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 40px 60px at 15% 76%, #321a42 50%, transparent 51%),
        radial-gradient(ellipse 55px 75px at 28% 77%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 45px 65px at 42% 79%, #321a42 50%, transparent 51%),
        radial-gradient(ellipse 50px 70px at 58% 76%, #2a1a3e 50%, transparent 51%),
        radial-gradient(ellipse 40px 60px at 72% 78%, #321a42 50%, transparent 51%),
        radial-gradient(ellipse 55px 75px at 88% 77%, #2a1a3e 50%, transparent 51%);
    opacity: 0.4;
}

#parallax-trees-near {
    background:
        radial-gradient(ellipse 60px 90px at -2% 85%, #1a1a2e 50%, transparent 51%),
        radial-gradient(ellipse 55px 80px at 98% 83%, #1a1a2e 50%, transparent 51%);
    opacity: 0.3;
}

/* Sparkle particles */
#sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e8b84b;
    animation: sparkleFloat 6s ease-in-out infinite;
    opacity: 0;
}

.sparkle.blue {
    background: #4a90d9;
}

@keyframes sparkleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.8; }
    50% { opacity: 0.4; transform: translateY(-40px) scale(1); }
    80% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

/* ===== GRID OVERLAY ===== */
#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(74, 144, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 217, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== MAIN CONTENT ===== */
#main-content {
    position: relative;
    z-index: 2;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.section-dark {
    background-color: #2a1a3e;
}

.section-deep {
    background-color: #1a1a2e;
}

.section-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
    position: relative;
    z-index: 2;
    margin-top: -2px;
    margin-bottom: -2px;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    background: transparent;
    text-align: center;
    flex-direction: column;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: heroFadeIn 1.5s ease-out;
}

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

.hero-icon {
    width: 120px;
    height: 120px;
    animation: heroIconPulse 4s ease-in-out infinite;
}

@keyframes heroIconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(232, 184, 75, 0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(232, 184, 75, 0.6)); }
}

.fairy-crystal-icon {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: 0.05em;
    text-shadow: 0 0 40px rgba(232, 184, 75, 0.3);
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: #6c757d;
    max-width: 500px;
}

.hero-icons-row {
    display: flex;
    gap: 32px;
    margin: 16px 0;
}

.fairy-icon {
    width: 36px;
    height: 36px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fairy-icon:hover {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 36px;
    border: 1.5px solid rgba(232, 184, 75, 0.4);
    border-radius: 50px;
    color: #e8b84b;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    background: rgba(232, 184, 75, 0.05);
}

.hero-cta:hover {
    background: rgba(232, 184, 75, 0.15);
    border-color: #e8b84b;
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.2);
    transform: translateY(-2px);
}

.cta-arrow {
    width: 20px;
    height: 20px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-title {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(232, 184, 75, 0.15);
}

.section-desc {
    font-size: 1.15rem;
    color: #6c757d;
    font-weight: 400;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fairy-card {
    position: relative;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.fairy-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fairy-card[data-reveal='left'].revealed {
    animation: revealLeft 0.7s ease forwards;
}

.fairy-card[data-reveal='right'].revealed {
    animation: revealRight 0.7s ease forwards;
}

.fairy-card[data-reveal='up'].revealed {
    animation: revealUp 0.7s ease forwards;
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.fairy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(232, 184, 75, 0.12);
    border-color: rgba(232, 184, 75, 0.3);
}

.card-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e8b84b;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

.card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.04), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.fairy-card:hover .card-shimmer {
    left: 100%;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    background: rgba(42, 26, 62, 0.5);
    border: 1px solid rgba(232, 184, 75, 0.08);
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.feature-item[data-reveal='right'] {
    transform: translateX(30px);
}

.feature-item.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.08);
    border-color: rgba(232, 184, 75, 0.2);
}

.feature-icon-circle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(232, 184, 75, 0.06);
    border: 1px solid rgba(232, 184, 75, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.feature-icon-circle svg {
    width: 100%;
    height: 100%;
}

.feature-content h3 {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8b84b;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(232, 184, 75, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 35px rgba(232, 184, 75, 0.1);
}

.gallery-visual {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item-large .gallery-visual {
    aspect-ratio: 4/3;
}

.gallery-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.gallery-cap-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gallery-caption span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* ===== ABOUT ===== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 800px;
    margin: 0 auto;
}

.about-text-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background: rgba(42, 26, 62, 0.4);
    border: 1px solid rgba(232, 184, 75, 0.08);
    border-radius: 16px;
    opacity: 0;
    transform: translateX(-30px);
}

.about-text-block[data-reveal='right'] {
    transform: translateX(30px);
}

.about-text-block.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-ornament {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.about-ornament svg {
    width: 100%;
    height: 100%;
}

.about-text-block p {
    font-size: 1.05rem;
    color: #f5f0e8;
    line-height: 1.8;
    opacity: 0.85;
}

/* ===== CONTACT ===== */
.section-final {
    min-height: 60vh;
}

.contact-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.contact-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.contact-icon-item:hover {
    transform: translateY(-4px);
}

.contact-icon-item svg {
    width: 48px;
    height: 48px;
}

.contact-icon-item span {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
}

/* ===== FOOTER ===== */
#footer {
    background: #1a1a2e;
    border-top: 1px solid rgba(232, 184, 75, 0.08);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-fairy-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-icon:hover {
    opacity: 1;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #6c757d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icons {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-icons-row {
        gap: 20px;
    }

    .section {
        padding: 60px 16px;
    }

    .about-text-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
