/* rironbusou.net - Theoretical Authority Design */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background-color: #f5f0e8;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== NAVIGATION ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 217, 0.2);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5f0e8;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #f5f0e8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 4px;
}

/* Underline-draw animation */
.underline-draw {
    position: relative;
}

.underline-draw::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #e8b84b;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-draw:hover::after {
    width: 100%;
}

.underline-draw-auto {
    position: relative;
    display: inline-block;
}

.underline-draw-auto::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background: #e8b84b;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-draw-auto.visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5f0e8;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
}

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

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e8b84b;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #6c757d;
}

.section-dark .section-desc {
    color: rgba(245, 240, 232, 0.65);
}

.text-gold {
    color: #e8b84b;
}

/* ===== HERO ===== */
#hero {
    padding-top: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e8b84b;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4a90d9;
    color: #fff;
    border-color: #4a90d9;
}

.btn-primary:hover {
    background: #3a7bc8;
    border-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

.btn-outline {
    background: transparent;
    color: #f5f0e8;
    border-color: rgba(245, 240, 232, 0.3);
}

.btn-outline:hover {
    border-color: #e8b84b;
    color: #e8b84b;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== FLOATING CARDS ===== */
.floating-card {
    background: rgba(26, 26, 46, 0.85);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 12px;
    padding: 24px;
    transform: translateY(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.section-light .floating-card {
    background: #fff;
    border-color: rgba(26, 26, 46, 0.08);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section-light .floating-card:hover {
    box-shadow: 0 16px 48px rgba(26, 26, 46, 0.12);
}

/* Hero floating cards */
.hero-visual {
    position: relative;
    min-height: 400px;
}

.floating-card-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    animation: floatSlow 6s ease-in-out infinite;
}

.floating-card-2 {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 200px;
    animation: floatSlow 6s ease-in-out infinite 1s;
}

.floating-card-3 {
    position: absolute;
    bottom: 0;
    right: 40px;
    width: 180px;
    animation: floatSlow 6s ease-in-out infinite 2s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

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

.card-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 12px;
    font-weight: 500;
}

.stat-highlight {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #4a90d9;
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90d9;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== THEORY GRID ===== */
.theory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.theory-card {
    background: #fff;
    border: 1px solid rgba(26, 26, 46, 0.08);
    border-radius: 12px;
    padding: 40px 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.theory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26, 26, 46, 0.1);
}

.theory-icon {
    margin-bottom: 24px;
}

.theory-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.theory-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.65;
    margin-bottom: 20px;
}

.theory-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a90d9;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 2px;
}

/* ===== RESEARCH BLOCKS ===== */
.research-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.research-block:last-child {
    margin-bottom: 0;
}

.research-block-reverse {
    direction: rtl;
}

.research-block-reverse > * {
    direction: ltr;
}

.research-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.research-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(245, 240, 232, 0.75);
    margin-bottom: 20px;
}

.research-list {
    list-style: none;
    padding: 0;
}

.research-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.7);
}

.research-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: #e8b84b;
}

.research-visual {
    display: flex;
    justify-content: center;
}

.research-chart-card {
    width: 100%;
    max-width: 360px;
}

.bar-chart, .diagram {
    width: 100%;
    height: auto;
}

/* Pull Quote */
.pull-quote {
    margin-top: 24px;
    border-left: 3px solid #e8b84b;
    padding: 20px 24px;
}

.pull-quote blockquote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    color: #f5f0e8;
    margin-bottom: 8px;
}

.pull-quote cite {
    font-size: 0.85rem;
    color: #e8b84b;
    font-style: normal;
    font-weight: 500;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
}

.stat-number-lg {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #4a90d9;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
}

.section-light .stat-number-lg {
    color: #1a1a2e;
}

.stat-description {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* ===== PUBLICATIONS ===== */
.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    padding: 32px 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.publication-item:first-child {
    padding-top: 0;
}

.publication-item:last-child {
    border-bottom: none;
}

.pub-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.pub-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e8b84b;
    background: rgba(232, 184, 75, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.pub-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.pub-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.pub-title a {
    color: #f5f0e8;
    text-decoration: none;
    padding-bottom: 2px;
}

.pub-authors {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 4px;
}

.pub-journal {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: 1px solid rgba(26, 26, 46, 0.15);
    border-radius: 6px;
    background: #f5f0e8;
    color: #1a1a2e;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 28px;
}

.contact-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a2e;
    margin-bottom: 8px;
}

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

.contact-card a {
    color: #4a90d9;
    text-decoration: none;
    padding-bottom: 2px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1a1a2e;
    border-top: 1px solid rgba(74, 144, 217, 0.15);
    padding: 48px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5f0e8;
    font-weight: 600;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding-bottom: 2px;
}

.footer-links a:hover {
    color: #e8b84b;
}

.footer-copy {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ===== SCROLL ANIMATIONS ===== */
.section-header,
.theory-card,
.research-block,
.stat-card,
.publication-item,
.contact-form-wrap,
.contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-header.visible,
.theory-card.visible,
.research-block.visible,
.stat-card.visible,
.publication-item.visible,
.contact-form-wrap.visible,
.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.theory-card:nth-child(2),
.stat-card:nth-child(2) {
    transition-delay: 0.1s;
}
.theory-card:nth-child(3),
.stat-card:nth-child(3) {
    transition-delay: 0.2s;
}
.stat-card:nth-child(4) {
    transition-delay: 0.3s;
}

.publication-item:nth-child(2) { transition-delay: 0.1s; }
.publication-item:nth-child(3) { transition-delay: 0.2s; }
.publication-item:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .hero-visual {
        min-height: 300px;
    }

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

    .research-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .research-block-reverse {
        direction: ltr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(74, 144, 217, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    #hero {
        padding-top: 120px;
    }

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

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

    .hero-actions {
        flex-direction: column;
    }

    .floating-card-1 {
        position: relative;
        width: 100%;
        margin-bottom: 16px;
    }

    .floating-card-2,
    .floating-card-3 {
        position: relative;
        display: inline-block;
        width: calc(50% - 8px);
    }

    .hero-visual {
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-number-lg {
        font-size: 2.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}