/* simidiot.com - Dark-mode futuristic scholarly simulation platform */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Commissioner */

:root {
    --color-base: #1a1a2e;
    --color-base-light: #252542;
    --color-base-lighter: #2d2d52;
    --color-primary: #4a90d9;
    --color-offwhite: #f5f0e8;
    --color-accent: #e8b84b;
    --color-muted: #6c757d;
    --color-sunset-start: #e8b84b;
    --color-sunset-mid: #d4843e;
    --color-sunset-end: #4a90d9;
    --font-main: 'Commissioner', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Geometric Background */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(74, 144, 217, 0.08);
    border-radius: 2px;
}

.geo-shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    border-color: rgba(232, 184, 75, 0.06);
}

.geo-shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 3%;
    transform: rotate(30deg);
}

.geo-shape-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 15%;
    transform: rotate(60deg);
    border-color: rgba(232, 184, 75, 0.05);
}

.geo-shape-4 {
    width: 160px;
    height: 160px;
    bottom: 15%;
    right: 10%;
    transform: rotate(15deg);
}

.geo-shape-5 {
    width: 100px;
    height: 100px;
    top: 75%;
    left: 40%;
    transform: rotate(72deg);
    border-color: rgba(232, 184, 75, 0.04);
}

/* Minimal Navigation */
.nav-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0) 100%);
    transition: background 0.3s ease;
}

.nav-minimal.scrolled {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
}

.logo-text {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-offwhite);
    letter-spacing: -0.02em;
}

.logo-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-sunset-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-offwhite);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 6rem 3rem 4rem;
    z-index: 1;
}

.hero-illustration {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-svg {
    width: 100%;
    height: auto;
}

.orbit-ring {
    transform-origin: 300px 200px;
}

.ring-1 {
    animation: orbitSpin 20s linear infinite;
}

.ring-2 {
    animation: orbitSpin 35s linear infinite reverse;
}

.ring-3 {
    animation: orbitSpin 50s linear infinite;
}

.orbit-dot.dot-1 {
    animation: orbitDot1 20s linear infinite;
    transform-origin: 300px 200px;
}

.orbit-dot.dot-2 {
    animation: orbitDot2 35s linear infinite;
    transform-origin: 300px 200px;
}

.orbit-dot.dot-3 {
    animation: orbitDot3 50s linear infinite;
    transform-origin: 300px 200px;
}

.core-sphere {
    animation: corePulse 4s ease-in-out infinite;
}

.core-glow {
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitDot1 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitDot2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes orbitDot3 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% { r: 20; opacity: 1; }
    50% { r: 23; opacity: 0.9; }
}

@keyframes glowPulse {
    0%, 100% { r: 35; opacity: 1; }
    50% { r: 42; opacity: 0.7; }
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), var(--color-sunset-mid), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-sunset-mid));
    color: var(--color-base);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 184, 75, 0.3);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* Section Shared Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-desc {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Simulations Section */
.simulations-section {
    position: relative;
    z-index: 1;
    padding: 6rem 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px;
}

/* Card Flip */
.sim-card {
    height: 380px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.sim-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: var(--color-base-light);
    border: 1px solid rgba(74, 144, 217, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-front:hover {
    border-color: rgba(232, 184, 75, 0.3);
    box-shadow: 0 4px 20px rgba(232, 184, 75, 0.08);
}

.card-back {
    background: linear-gradient(145deg, var(--color-base-lighter), var(--color-base-light));
    border: 1px solid rgba(232, 184, 75, 0.2);
    transform: rotateY(180deg);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-main);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-offwhite);
}

.card-brief {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.6;
    flex: 1;
}

.card-flip-hint {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-accent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sim-card:hover .card-flip-hint {
    opacity: 1;
}

.card-back-header {
    margin-bottom: 1rem;
}

.scholarly-label {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    background: rgba(232, 184, 75, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
}

.card-back-title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-offwhite);
}

.card-analysis {
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.8);
    line-height: 1.7;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.meta-tag {
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: rgba(74, 144, 217, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
}

/* About Section */
.about-section {
    position: relative;
    z-index: 1;
    padding: 6rem 3rem;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 37, 66, 0.5) 50%, transparent 100%);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-illustration {
    display: flex;
    justify-content: center;
}

.about-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0.8;
}

.about-title {
    font-family: var(--font-main);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-content .section-accent-line {
    margin: 0 0 1.5rem 0;
}

.about-text {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Explore Section */
.explore-section {
    position: relative;
    z-index: 1;
    padding: 6rem 3rem;
}

.explore-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.explore-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.explore-desc {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.explore-item {
    position: relative;
    display: block;
    padding: 2rem 2rem 2rem 2.5rem;
    background: var(--color-base-light);
    border: 1px solid rgba(74, 144, 217, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.explore-item:hover {
    border-color: rgba(232, 184, 75, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.explore-item-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.explore-item:hover .explore-item-accent {
    opacity: 1;
}

.explore-item-title {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-offwhite);
    margin-bottom: 0.5rem;
}

.explore-item-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.explore-item-count {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 4rem 3rem 2rem;
    border-top: 1px solid rgba(74, 144, 217, 0.08);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-tagline {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(74, 144, 217, 0.05);
    width: 100%;
    text-align: center;
}

.footer-copy {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(108, 117, 125, 0.6);
}

/* Scroll Reveal Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-minimal {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-section {
        padding: 5rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-illustration {
        order: -1;
    }
    
    .explore-grid {
        grid-template-columns: 1fr;
    }
    
    .simulations-section,
    .about-section,
    .explore-section {
        padding: 4rem 1.5rem;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}