/* YESANG.XYZ - STYLES */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: #3d2a1a;
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* CONTAINER AND SECTION LAYOUT */

.container {
    width: 100vw;
    overflow: hidden;
}

.section {
    width: 100vw;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5vw;
    position: relative;
    transition: transform 0.15s ease-out;
}

.section-warm {
    background: linear-gradient(180deg, #f77f3a 0%, #e85d2c 100%);
    color: #2a1608;
}

.section-light {
    background: #faf4e8;
    color: #3d2a1a;
}

.section-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* HERO SECTION */

#section-1 {
    min-height: 100vh;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    min-height: 100vh;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2a1608;
    animation: titleEnter 0.8s ease-out 0.3s backwards;
    will-change: transform;
}

@keyframes titleEnter {
    from {
        transform: perspective(1200px) rotateX(15deg) translateZ(-50px);
        opacity: 0;
    }
    to {
        transform: perspective(1200px) rotateX(0) translateZ(0);
        opacity: 1;
    }
}

.botanical-container {
    width: 300px;
    height: 350px;
    animation: sunflowerDraw 1.5s ease-out 1.1s backwards;
}

@keyframes sunflowerDraw {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.botanical-illustration {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(42, 22, 8, 0.2));
}

.stroke-animate {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: strokeDraw 1.5s ease-out 1.1s forwards;
}

@keyframes strokeDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.label-text {
    animation: fadeIn 0.5s ease-out 2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.appear {
    animation: fadeIn 0.6s ease-out 2.3s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #2a1608;
    font-weight: 400;
    letter-spacing: 0.1em;
    animation: fadeIn 0.8s ease-out 1.4s backwards;
}

/* GRID LAYOUT */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.grid-span-1 {
    grid-column: span 1;
}

.grid-span-2 {
    grid-column: span 2;
}

.grid-span-3 {
    grid-column: span 3;
}

.grid-span-4 {
    grid-column: span 4;
}

/* TYPOGRAPHY */

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.08em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 0.8rem;
    color: inherit;
}

p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: 1.2rem;
}

strong {
    font-weight: 600;
}

/* SECTION ELEMENTS */

.section-title {
    color: inherit;
    text-align: center;
}

.section-light .section-title {
    color: #3d2a1a;
}

.section-warm .section-title {
    color: #2a1608;
}

.content-block {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.section-light .content-block {
    background: rgba(255, 255, 255, 0.7);
}

.section-warm .content-block {
    background: rgba(42, 22, 8, 0.1);
    color: #2a1608;
}

.grid-item {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.section-light .grid-item {
    background: rgba(250, 244, 232, 0.8);
    border: 1px solid rgba(89, 58, 34, 0.1);
}

.section-warm .grid-item {
    background: rgba(42, 22, 8, 0.12);
    color: #2a1608;
}

.grid-item p {
    margin-bottom: 0;
    flex-grow: 1;
}

/* TILT EFFECT */

.tilt-element {
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-element:not(.hero-title) {
    transition: transform 0.15s ease-out;
}

/* BOTANICAL FEATURE */

.botanical-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.botanical-feature svg {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.section-warm .feature-text {
    color: #2a1608;
}

/* BOTANICAL ELEMENTS */

.botanical-lotus {
    filter: drop-shadow(0 8px 24px rgba(42, 22, 8, 0.15));
}

.ripple {
    animation: rippleWave 2s ease-in-out infinite;
}

@keyframes rippleWave {
    0%, 100% {
        r: 40px;
        opacity: 0.5;
    }
    50% {
        r: 65px;
        opacity: 0.1;
    }
}

.leaf-accent {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #2a7a6a 0%, #1e5a4e 100%);
    border-radius: 50% 0;
    opacity: 0.4;
    position: absolute;
}

.leaf-accent-1 {
    top: 15%;
    right: 5%;
    animation: leafFloat 3s ease-in-out infinite;
}

.leaf-accent-2 {
    bottom: 20%;
    left: 8%;
    animation: leafFloat 3.5s ease-in-out infinite 0.5s;
}

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

/* TECH MOTIF */

.tech-motif {
    width: 100px;
    height: 100px;
    position: absolute;
    opacity: 0.3;
}

.tech-circuit-1 {
    bottom: 10%;
    right: 15%;
    background: linear-gradient(135deg, transparent 45%, #5a3a22 45%, #5a3a22 55%, transparent 55%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 80%, 80% 80%, 80% 20%, 0 20%);
}

/* BORDERS */

.botanical-border {
    height: 24px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(90, 58, 34, 0.3) 20px,
        rgba(90, 58, 34, 0.3) 24px
    );
    margin: 3rem 0 2rem 0;
}

.botanical-garland {
    height: 40px;
    width: 100%;
    margin-bottom: 2rem;
    background: repeating-linear-gradient(
        90deg,
        #2a1608,
        #2a1608 2px,
        transparent 2px,
        transparent 15px
    );
    opacity: 0.4;
    border-radius: 50%;
}

/* CLOSING SECTION */

#section-5 {
    min-height: 100vh;
}

.closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    min-height: 80vh;
}

.closing-title {
    color: #2a1608;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.closing-subtitle {
    color: #2a1608;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    font-family: 'Inconsolata', monospace;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer-link {
    color: #2a1608;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

.footer-link:hover {
    border: 1px solid #2a1608;
    background: rgba(42, 22, 8, 0.1);
}

.footer-divider {
    color: #2a1608;
    opacity: 0.5;
}

/* PERSPECTIVE TRANSFORM ON SCROLL */

.section {
    transform: perspective(1200px) rotateX(0deg);
    transform-origin: center center;
    transition: transform 0.3s ease-out;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .grid-span-2 {
        grid-column: span 2;
    }

    .grid-span-3 {
        grid-column: span 2;
    }

    .grid-span-4 {
        grid-column: span 2;
    }

    .section {
        padding: 4vh 4vw;
    }

    .leaf-accent {
        width: 80px;
        height: 80px;
    }

    .botanical-feature {
        min-height: 250px;
    }

    .feature-text {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-span-1,
    .grid-span-2,
    .grid-span-3,
    .grid-span-4 {
        grid-column: span 1;
    }

    .section {
        padding: 3vh 3vw;
    }

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

    .botanical-container {
        width: 200px;
        height: 250px;
    }

    h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
