/* simulai.net - Pastoral Art Deco Romance */
/* Colors: #1a1a2e (deep base), #f5f0e8 (warm off-white), #e8b84b (accent gold), #4a90d9 (primary blue), #6c757d (muted gray) */
/* Font: Inter, Caveat (handwritten), Playfair Display (serif body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Ripple Container */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232, 184, 75, 0.4);
    animation: rippleExpand 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.6;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Star Map Canvas */
#star-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.section--final {
    min-height: 60vh;
}

/* Handwritten Typography */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1.handwritten {
    font-size: clamp(3.5rem, 8vw, 7rem);
    color: #f5f0e8;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.1;
}

h2.handwritten {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #f5f0e8;
    text-align: center;
    margin-bottom: 8px;
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #e8b84b;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Art Deco Frame */
.deco-frame {
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: 60px 50px;
    text-align: center;
    border: 1px solid rgba(232, 184, 75, 0.2);
}

.deco-frame--hero {
    border: none;
    max-width: 900px;
    padding: 80px 50px;
}

.deco-frame--wide {
    max-width: 1000px;
}

/* Art Deco Corners */
.deco-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.deco-corner::before,
.deco-corner::after {
    content: '';
    position: absolute;
    background-color: #e8b84b;
}

.deco-corner--tl {
    top: -1px;
    left: -1px;
}

.deco-corner--tl::before {
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
}

.deco-corner--tl::after {
    top: 0;
    left: 0;
    width: 2px;
    height: 40px;
}

.deco-corner--tr {
    top: -1px;
    right: -1px;
}

.deco-corner--tr::before {
    top: 0;
    right: 0;
    width: 40px;
    height: 2px;
}

.deco-corner--tr::after {
    top: 0;
    right: 0;
    width: 2px;
    height: 40px;
}

.deco-corner--bl {
    bottom: -1px;
    left: -1px;
}

.deco-corner--bl::before {
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
}

.deco-corner--bl::after {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 40px;
}

.deco-corner--br {
    bottom: -1px;
    right: -1px;
}

.deco-corner--br::before {
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
}

.deco-corner--br::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 40px;
}

.deco-frame--hero .deco-corner::before,
.deco-frame--hero .deco-corner::after {
    background-color: rgba(232, 184, 75, 0.3);
}

/* Deco Divider */
.deco-divider {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.deco-ornament {
    width: 200px;
    height: 24px;
}

.deco-ornament--small {
    width: 120px;
    height: 16px;
}

.deco-ornament--footer {
    width: 200px;
    height: 20px;
}

/* Hero Section */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 24px;
}

.hero-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(245, 240, 232, 0.7);
    margin-top: 16px;
}

/* About Section */
.about-content {
    max-width: 600px;
    margin: 24px auto 0;
}

.about-content p {
    font-size: 1.05rem;
    color: rgba(245, 240, 232, 0.85);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Constellation Chart */
.chart-container {
    margin-top: 32px;
}

.constellation-chart {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
    background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.8) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 4px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot--gold {
    background-color: #e8b84b;
}

.legend-dot--blue {
    background-color: #4a90d9;
}

.legend-dot--gray {
    background-color: #6c757d;
}

.legend-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6c757d;
    letter-spacing: 0.05em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid rgba(232, 184, 75, 0.1);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(232, 184, 75, 0.35);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 20px;
}

.icon-svg {
    width: 64px;
    height: 64px;
}

.feature-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.7;
}

/* Radial Chart / Data Viz */
.radial-chart-container {
    display: flex;
    justify-content: center;
    margin: 32px 0 24px;
}

#radial-chart {
    width: 320px;
    height: 320px;
    max-width: 100%;
}

.data-labels {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.data-value {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8b84b;
    line-height: 1.2;
}

.data-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6c757d;
}

/* Philosophy / Quote */
.philosophy-quote {
    position: relative;
    padding: 20px 0;
}

.quote-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    color: #e8b84b;
    opacity: 0.5;
    line-height: 0;
    vertical-align: top;
}

.quote-mark--end {
    vertical-align: bottom;
}

.quote-text {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #f5f0e8;
    margin: 16px 0;
    display: inline;
}

/* Contact */
.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 24px;
}

.contact-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #e8b84b;
    text-decoration: none;
    letter-spacing: 0.1em;
    padding: 12px 32px;
    border: 1px solid rgba(232, 184, 75, 0.4);
    transition: all 0.4s ease;
}

.contact-link:hover {
    background-color: rgba(232, 184, 75, 0.1);
    border-color: #e8b84b;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 60px;
}

.footer-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 0.08em;
}

/* Section Reveal Animation */
.section .deco-frame {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .deco-frame {
    opacity: 1;
    transform: translateY(0);
}

/* Constellation star twinkle */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .deco-frame {
        padding: 40px 24px;
    }

    .data-labels {
        gap: 24px;
    }

    .chart-legend {
        gap: 16px;
    }

    .section {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .deco-frame {
        padding: 32px 16px;
    }

    .deco-corner {
        width: 24px;
        height: 24px;
    }

    .deco-corner--tl::before,
    .deco-corner--tr::before,
    .deco-corner--bl::before,
    .deco-corner--br::before {
        width: 24px;
    }

    .deco-corner--tl::after,
    .deco-corner--tr::after,
    .deco-corner--bl::after,
    .deco-corner--br::after {
        height: 24px;
    }
}
