/* quietjoon.net - Zen aesthetic with edgy-rebellious undertones */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Playfair Display (headings), Inter (body) */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* ===== PARALLAX BACKGROUND ===== */
.parallax-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.parallax-bg {
    z-index: 0;
    opacity: 0.6;
}

.parallax-bg .vintage-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HUD OVERLAY ===== */
.hud-overlay {
    z-index: 1;
}

.hud-line {
    position: absolute;
    background: #4a90d9;
    opacity: 0.06;
}

.hud-line-h {
    width: 100%;
    height: 1px;
}

.hud-line-v {
    width: 1px;
    height: 100%;
}

.hud-line-1 { top: 15%; }
.hud-line-2 { top: 85%; }
.hud-line-3 { left: 8%; }
.hud-line-4 { left: 92%; }

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #4a90d9;
    border-style: solid;
    opacity: 0.12;
}

.hud-corner-tl { top: 20px; left: 20px; border-width: 1px 0 0 1px; }
.hud-corner-tr { top: 20px; right: 20px; border-width: 1px 1px 0 0; }
.hud-corner-bl { bottom: 20px; left: 20px; border-width: 0 0 1px 1px; }
.hud-corner-br { bottom: 20px; right: 20px; border-width: 0 1px 1px 0; }

/* ===== FLOATING NAVIGATION ===== */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: auto;
}

.nav-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 12px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 8px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: none;
}

.nav-link span {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
    color: #e8b84b;
    transform: scale(1.1);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

/* ===== CURSOR HUD ===== */
.cursor-hud {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(232, 184, 75, 0.6);
    border-radius: 50%;
    position: absolute;
    top: -16px;
    left: -16px;
    transition: width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease, border-color 0.2s ease;
}

.cursor-crosshair-h,
.cursor-crosshair-v {
    position: absolute;
    background: rgba(74, 144, 217, 0.3);
}

.cursor-crosshair-h {
    width: 12px;
    height: 1px;
    top: 0;
    left: -6px;
}

.cursor-crosshair-v {
    width: 1px;
    height: 12px;
    top: -6px;
    left: 0;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content-layer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 40px;
}

.hero-ornament-top,
.hero-ornament-bottom {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-ornament-top {
    margin-bottom: 30px;
    animation-delay: 0.3s;
}

.hero-ornament-bottom {
    margin-top: 30px;
    animation-delay: 0.9s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-title-quiet {
    color: #4a90d9;
}

.hero-title-joon {
    color: #e8b84b;
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

.scroll-indicator {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #e8b84b, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6c757d;
}

/* ===== ORNAMENTAL DIVIDERS ===== */
.ornamental-divider {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ornamental-divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.isometric-icon {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.isometric-icon:hover {
    transform: rotate(15deg) scale(1.1);
    opacity: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: -0.01em;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    padding: 40px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8b84b, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.about-card:hover::before {
    opacity: 1;
}

.card-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8b84b;
    margin-bottom: 16px;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #6c757d;
    font-weight: 300;
}

/* ===== WORK SECTION ===== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.work-card {
    position: relative;
    cursor: none;
    overflow: hidden;
}

.work-card-inner {
    padding: 40px 30px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 144, 217, 0.08);
    border-radius: 4px;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.work-card:hover .work-card-inner {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(74, 144, 217, 0.2);
    transform: translateY(-6px);
}

.work-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90d9, #e8b84b, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.work-card:hover .work-card-border {
    transform: scaleX(1);
}

.work-card-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(74, 144, 217, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.work-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.work-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 20px;
}

.work-card-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8b84b;
    padding: 4px 12px;
    border: 1px solid rgba(232, 184, 75, 0.3);
    border-radius: 2px;
}

/* ===== JOURNAL SECTION ===== */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-entry {
    padding: 40px 0;
    border-bottom: 1px solid rgba(74, 144, 217, 0.08);
    position: relative;
    transition: padding-left 0.4s ease;
}

.journal-entry:first-child {
    border-top: 1px solid rgba(74, 144, 217, 0.08);
}

.journal-entry::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: #e8b84b;
    transition: width 0.4s ease;
}

.journal-entry:hover {
    padding-left: 20px;
}

.journal-entry:hover::before {
    width: 10px;
}

.journal-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8b84b;
    display: block;
    margin-bottom: 12px;
}

.journal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.journal-entry:hover .journal-title {
    color: #4a90d9;
}

.journal-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #6c757d;
    font-weight: 300;
    max-width: 700px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 600px;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 40px;
}

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

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 20px;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(74, 144, 217, 0.08);
    border-radius: 4px;
    transition: border-color 0.4s ease, transform 0.3s ease;
    cursor: none;
}

.contact-link:hover {
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateX(8px);
}

.contact-link-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e8b84b;
}

.contact-link-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #f5f0e8;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 40px;
    text-align: center;
}

.footer-border {
    margin-bottom: 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f5f0e8;
}

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

.footer-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 300;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 300;
    font-style: italic;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-nav {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .nav-inner {
        flex-direction: row;
        gap: 16px;
        padding: 12px 20px;
    }

    .nav-link span {
        display: none;
    }

    .section {
        padding: 80px 20px;
    }

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

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

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    body {
        cursor: auto;
    }

    .cursor-hud {
        display: none;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 16px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-card {
        padding: 24px;
    }

    .work-card-inner {
        padding: 24px 20px;
    }
}