/* ==============================================
   ipjosim.com - Styles
   Palette: #F0E8E0, #E0D8E8, #7A5A3A, #5A3A20,
            #2A2028, #C080A0, #D08040, #4080A0
   Fonts: Noto Sans KR, Urbanist
   ============================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    line-height: 1.85;
    font-size: clamp(15px, 1.05vw, 17px);
    color: #2A2028;
    background-color: #F0E8E0;
    overflow-x: hidden;
}

/* ---- LEATHER TEXTURE MIXIN (used via classes) ---- */
.leather-texture {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122,90,58,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90,58,32,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(122,90,58,0.1) 0%, transparent 45%),
        radial-gradient(circle at 30% 30%, rgba(90,58,32,0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(122,90,58,0.08) 0%, transparent 30%),
        linear-gradient(180deg, #7A5A3A 0%, #5A3A20 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px, 100% 100%;
}

/* ====================
   HERO SECTION
   ==================== */
#hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #F0E8E0 0%, #E0D8E8 60%, #F0E8E0 100%);
    overflow: hidden;
    padding: 60px 80px 60px 120px;
}

.leather-strip-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122,90,58,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90,58,32,0.14) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(122,90,58,0.12) 0%, transparent 45%),
        radial-gradient(circle at 30% 30%, rgba(90,58,32,0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(122,90,58,0.1) 0%, transparent 30%),
        linear-gradient(180deg, #7A5A3A 0%, #6A4A2A 50%, #5A3A20 100%);
    opacity: 0;
    transition: opacity 600ms ease;
    z-index: 2;
}

.leather-strip-left.visible {
    opacity: 1;
}

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

.hero-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 8vw, 120px);
    color: #2A2028;
    line-height: 1.1;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 800ms ease, transform 800ms ease;
}

.hero-title.visible {
    opacity: 1;
    transform: scale(1.0);
}

.hero-dot-com {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 36px);
    color: #7A5A3A;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 800ms ease 200ms;
}

.hero-dot-com.visible {
    opacity: 1;
}

.hero-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 24px);
    color: #7A5A3A;
    margin-top: 16px;
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 800ms ease 400ms;
}

.hero-subtitle.visible {
    opacity: 1;
}

/* Floral ornaments */
.floral-ornament {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.floral-hibiscus {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 12%;
}

.floral-chrysanthemum {
    width: 160px;
    height: 160px;
    bottom: 15%;
    right: 25%;
}

.floral-plum {
    width: 140px;
    height: 140px;
    top: 55%;
    right: 8%;
}

/* SVG path draw animation */
.draw-path {
    fill: none;
    stroke-dasharray: var(--path-length, 600);
    stroke-dashoffset: var(--path-length, 600);
    transition: stroke-dashoffset 1200ms ease;
}

.draw-path.drawn {
    stroke-dashoffset: 0;
}

/* ====================
   PORTFOLIO SECTION
   ==================== */
#portfolio {
    padding: 100px 60px;
    background: linear-gradient(180deg, #E0D8E8 0%, #F0E8E0 50%, #E0D8E8 100%);
}

.section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    color: #2A2028;
    margin-bottom: 50px;
    text-align: center;
}

.section-title-en {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #7A5A3A;
    letter-spacing: 0.02em;
    display: block;
    margin-top: 4px;
}

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

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    position: relative;
    background: linear-gradient(160deg, #F0E8E0 0%, #E0D8E8 100%);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
    box-shadow: 0 2px 12px rgba(42,32,40,0.08);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-leather-bar {
    width: 100%;
    height: 6px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122,90,58,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90,58,32,0.15) 0%, transparent 40%),
        linear-gradient(90deg, #7A5A3A 0%, #5A3A20 100%);
    opacity: 0;
    transition: opacity 400ms ease;
}

.portfolio-card.visible .card-leather-bar {
    opacity: 1;
}

.card-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.card-ornament-tl {
    top: 8px;
    left: 8px;
}

.card-ornament-br {
    bottom: 8px;
    right: 8px;
}

.card-content {
    padding: 24px 20px 20px;
}

.card-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #5A3A20;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    margin-top: 16px;
}

.card-label:first-child {
    margin-top: 0;
}

.card-label span {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #7A5A3A;
    letter-spacing: 0.02em;
    margin-left: 6px;
}

.card-original {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2A2028;
    line-height: 1.7;
    padding: 8px 12px;
    background: rgba(42,32,40,0.03);
    border-left: 3px solid #C080A0;
    border-radius: 2px;
}

.card-suggestion {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2A2028;
    line-height: 1.7;
    padding: 8px 12px;
    background: rgba(64,128,160,0.05);
    border-left: 3px solid #4080A0;
    border-radius: 2px;
}

/* Tone Bar */
.tone-bar-wrap {
    margin: 8px 0 4px;
}

.tone-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #4080A0 0%, #E0D8E8 50%, #D08040 100%);
    border-radius: 5px;
    overflow: visible;
}

.tone-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(90deg, #4080A0 0%, #D08040 100%);
    width: 0;
    transition: width 600ms ease-out;
    opacity: 0.6;
}

.tone-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #2A2028;
    border: 2px solid #F0E8E0;
    border-radius: 50%;
    left: 0;
    transition: left 600ms ease-out;
    z-index: 2;
}

.tone-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.tone-cool-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    color: #4080A0;
    font-weight: 700;
}

.tone-warm-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    color: #D08040;
    font-weight: 700;
}

/* ====================
   NUNCHI SECTION
   ==================== */
#nunchi {
    position: relative;
    padding: 100px 60px;
    background: linear-gradient(135deg, #F0E8E0 0%, #E0D8E8 100%);
    overflow: hidden;
}

.nunchi-florals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nunchi-floral {
    position: absolute;
    opacity: 0.5;
}

.nunchi-floral-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 5%;
}

.nunchi-floral-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 3%;
}

.nunchi-floral-3 {
    width: 90px;
    height: 130px;
    top: 50%;
    right: 15%;
}

.nunchi-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.nunchi-text p {
    margin-bottom: 20px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.05vw, 17px);
    color: #2A2028;
    line-height: 1.85;
}

.nunchi-text strong {
    color: #5A3A20;
    font-weight: 700;
}

.nunchi-text em {
    color: #C080A0;
    font-style: italic;
}

/* ====================
   DEMO SECTION
   ==================== */
#demo {
    padding: 100px 60px;
    background: linear-gradient(180deg, #E0D8E8 0%, #F0E8E0 100%);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.demo-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #5A3A20;
}

.demo-textarea {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    color: #2A2028;
    background: #F0E8E0;
    border: 2px solid #7A5A3A;
    border-radius: 4px;
    padding: 16px;
    resize: vertical;
    line-height: 1.7;
    transition: box-shadow 300ms ease, border-color 300ms ease;
    outline: none;
}

.demo-textarea:focus {
    box-shadow: 0 0 8px rgba(122,90,58,0.2);
    border-color: #5A3A20;
}

.demo-button {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #F0E8E0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(122,90,58,0.15) 0%, transparent 50%),
        linear-gradient(135deg, #7A5A3A 0%, #5A3A20 100%);
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: transform 200ms ease, box-shadow 200ms ease;
    align-self: flex-start;
}

.demo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(90,58,32,0.25);
}

.demo-button:active {
    transform: translateY(0);
}

.demo-results {
    display: none;
}

.demo-results.active {
    display: block;
}

.demo-results-inner {
    position: relative;
}

.demo-result-card {
    background: linear-gradient(160deg, #F0E8E0 0%, #E0D8E8 100%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(42,32,40,0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.demo-result-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-result-content {
    padding: 24px 20px 20px;
}

.demo-tone-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #2A2028;
    line-height: 1.7;
    padding: 8px 12px;
    background: rgba(42,32,40,0.03);
    border-left: 3px solid #D08040;
    border-radius: 2px;
}

.demo-suggestion-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #2A2028;
    line-height: 1.7;
    padding: 8px 12px;
    background: rgba(64,128,160,0.05);
    border-left: 3px solid #4080A0;
    border-radius: 2px;
}

.demo-result-floral {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    opacity: 0.4;
    pointer-events: none;
}

/* ====================
   FOOTER
   ==================== */
#footer {
    background: linear-gradient(135deg, #F0E8E0 0%, #E0D8E8 100%);
}

.footer-leather-strip {
    width: 100%;
    height: 6px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122,90,58,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90,58,32,0.15) 0%, transparent 40%),
        linear-gradient(90deg, #7A5A3A 0%, #5A3A20 100%);
}

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

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-link {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #5A3A20;
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 200ms ease;
}

.footer-link:hover {
    color: #C080A0;
}

.footer-bullet {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-bullet .draw-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    fill: none;
}

.footer-copy {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    color: #7A5A3A;
    letter-spacing: 0.02em;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 768px) {
    #hero {
        padding: 40px 30px 40px 70px;
    }

    .floral-hibiscus {
        width: 120px;
        height: 120px;
        top: 5%;
        right: 5%;
    }

    .floral-chrysanthemum {
        width: 100px;
        height: 100px;
        bottom: 8%;
        right: 10%;
    }

    .floral-plum {
        width: 80px;
        height: 80px;
        top: 60%;
        right: 2%;
    }

    #portfolio {
        padding: 60px 24px;
    }

    #nunchi {
        padding: 60px 24px;
    }

    #demo {
        padding: 60px 24px;
    }

    .footer-content {
        padding: 30px 24px;
    }

    .footer-nav {
        gap: 16px;
    }
}
