/* yongjoon.net - Skeuomorphic Forest-Green Magazine */
/* Colors: #e8b84b (gold), #1a1a2e (deep base), #f5f0e8 (warm off-white), #6c757d (muted gray), #4a90d9 (blue) */
/* Fonts: DM Sans (headings), Inter (body) */

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

:root {
    --gold: #e8b84b;
    --deep-base: #1a1a2e;
    --warm-white: #f5f0e8;
    --muted-gray: #6c757d;
    --blue: #4a90d9;
    --forest-dark: #0d1117;
    --forest-mid: #1a2332;
    --card-bg: rgba(26, 26, 46, 0.85);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--forest-dark);
    color: var(--warm-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Magazine Texture Overlay */
#magazine-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(245, 240, 232, 0.008) 2px,
            rgba(245, 240, 232, 0.008) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(245, 240, 232, 0.005) 2px,
            rgba(245, 240, 232, 0.005) 4px
        );
}

/* Floating Fish */
#fish-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.fish {
    position: absolute;
    width: 60px;
    height: 30px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.fish-1 {
    top: 15%;
    left: -80px;
    animation: swimRight 25s linear infinite;
    animation-delay: 0s;
}

.fish-2 {
    top: 45%;
    right: -80px;
    animation: swimLeft 30s linear infinite;
    animation-delay: 5s;
    width: 50px;
    height: 25px;
}

.fish-3 {
    top: 70%;
    left: -80px;
    animation: swimRight 35s linear infinite;
    animation-delay: 10s;
    width: 45px;
    height: 22px;
}

.fish-4 {
    top: 30%;
    right: -80px;
    animation: swimLeft 28s linear infinite;
    animation-delay: 15s;
    width: 55px;
    height: 28px;
}

@keyframes swimRight {
    0% {
        transform: translateX(0) translateY(0) scaleX(1);
        left: -80px;
    }
    50% {
        transform: translateX(0) translateY(-20px) scaleX(1);
    }
    100% {
        transform: translateX(calc(100vw + 160px)) translateY(0) scaleX(1);
        left: -80px;
    }
}

@keyframes swimLeft {
    0% {
        transform: translateX(0) translateY(0) scaleX(-1);
        right: -80px;
    }
    50% {
        transform: translateX(0) translateY(15px) scaleX(-1);
    }
    100% {
        transform: translateX(calc(-100vw - 160px)) translateY(0) scaleX(-1);
        right: -80px;
    }
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.8) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

#main-nav.scrolled {
    padding: 10px 40px;
    background: rgba(13, 17, 23, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--warm-white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--muted-gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--warm-white);
    background: rgba(232, 184, 75, 0.1);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(232, 184, 75, 0.12);
}

.link-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
}

.magazine-border {
    width: 100%;
    max-width: 1200px;
    padding: 60px;
    position: relative;
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(13, 17, 23, 0.8) 100%);
    box-shadow:
        0 0 0 1px rgba(232, 184, 75, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(245, 240, 232, 0.05);
}

.magazine-border::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(232, 184, 75, 0.08);
    border-radius: 2px;
    pointer-events: none;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 60px;
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: rgba(232, 184, 75, 0.08);
    letter-spacing: -2px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.section-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--warm-white);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.section-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.3;
}

/* Hero Section */
#hero {
    padding-top: 80px;
}

#hero .magazine-border {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(232, 184, 75, 0.1);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 20px;
    margin-bottom: 24px;
}

.badge-icon {
    width: 16px;
    height: 16px;
}

.hero-badge span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
}

.hero-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--warm-white);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 16px;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 440px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--deep-base);
}

.btn-primary:hover {
    background: #d4a43d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 184, 75, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 1px solid rgba(245, 240, 232, 0.2);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(232, 184, 75, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
}

.avatar-frame::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(232, 184, 75, 0.08);
}

.avatar-frame::after {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    border: 1px dashed rgba(74, 144, 217, 0.1);
    animation: rotateFrame 30s linear infinite;
}

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

.avatar-placeholder svg {
    width: 180px;
    height: 180px;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.deco-leaf {
    position: absolute;
}

.deco-leaf-1 {
    top: -20px;
    right: 20px;
    width: 60px;
    animation: floatLeaf 6s ease-in-out infinite;
}

.deco-leaf-2 {
    bottom: 10px;
    left: 30px;
    width: 50px;
    animation: floatLeaf 8s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.about-card {
    position: relative;
    padding: 36px 28px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(232, 184, 75, 0.1);
    transition: all 0.4s ease;
}

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

.card-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 184, 75, 0.03) 0%, transparent 60%),
        linear-gradient(180deg, rgba(26, 35, 50, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-card h3 {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--muted-gray);
    line-height: 1.7;
}

.inline-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.about-card-main {
    background: rgba(232, 184, 75, 0.03);
}

.about-card-secondary {
    background: rgba(74, 144, 217, 0.03);
}

.about-card-accent {
    background: rgba(232, 184, 75, 0.02);
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.achievement-card {
    position: relative;
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid rgba(232, 184, 75, 0.1);
    text-align: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.achievement-icon-wrap {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.achievement-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.counter {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.achievement-label {
    position: relative;
    z-index: 1;
    font-size: 13px;
    color: var(--muted-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.work-card-large {
    grid-row: span 2;
}

.work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(232, 184, 75, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

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

.work-card:hover .work-thumbnail svg {
    transform: scale(1.05);
}

.work-thumbnail {
    overflow: hidden;
}

.work-thumbnail svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.work-info {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.work-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-icon {
    width: 12px;
    height: 12px;
}

.work-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 8px;
}

.work-info p {
    font-size: 14px;
    color: var(--muted-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-panel,
.contact-form-panel {
    position: relative;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(232, 184, 75, 0.1);
    overflow: hidden;
}

.contact-info-panel h3 {
    position: relative;
    z-index: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--warm-white);
    margin-bottom: 16px;
}

.contact-info-panel p {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: var(--muted-gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-methods {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
}

.method-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-method span {
    font-size: 14px;
    color: var(--warm-white);
}

/* Form Styles */
form {
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--warm-white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-icon {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 8px;
    color: var(--warm-white);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(108, 117, 125, 0.6);
}

input:hover,
textarea:hover {
    border-color: rgba(232, 184, 75, 0.3);
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.1);
}

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

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
}

/* Footer */
#footer {
    padding: 40px;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
    background: rgba(13, 17, 23, 0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-fish {
    width: 40px;
    height: 20px;
}

.footer-brand span {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--warm-white);
}

.footer-copy {
    font-size: 13px;
    color: var(--muted-gray);
}

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

.footer-link {
    font-size: 13px;
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 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) {
    .section {
        padding: 100px 20px 40px;
    }

    .magazine-border {
        padding: 40px 30px;
    }

    #hero .magazine-border {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-tagline {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .avatar-frame {
        width: 200px;
        height: 200px;
    }

    .avatar-placeholder svg {
        width: 130px;
        height: 130px;
    }

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

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

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

    .work-card-large {
        grid-row: span 1;
    }

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

@media (max-width: 768px) {
    #main-nav {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .counter {
        font-size: 36px;
    }

    .magazine-border {
        padding: 30px 20px;
    }

    .page-number {
        font-size: 36px;
        right: 30px;
        bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}