/* 계엄령.com - Neomorphism Design */

:root {
    --color-primary: #9b5c5c;
    --color-secondary: #4a4a4e;
    --color-tertiary: #6b7c5e;
    --color-quaternary: #8e8e93;
    --color-dark: #3a3a3c;
    --color-white: #ffffff;
    --color-light-gray: #c8c3bc;
    --color-alabaster: #e8e4df;
}

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--color-alabaster);
    overflow: hidden;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Leather texture background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="turbulence" baseFrequency="0.03 0.06" numOctaves="5" result="noise"/><feColorMatrix in="noise" type="saturate" values="0.2"/><feComponentTransfer in="noise"><feFuncR type="linear" slope="0.4" intercept="0.3"/><feFuncG type="linear" slope="0.3" intercept="0.2"/><feFuncB type="linear" slope="0.25" intercept="0.15"/></feComponentTransfer></filter><rect width="300" height="300" fill="%23e8e4df" filter="url(%23noise)"/></svg>');
    background-size: 300px 300px;
    opacity: 0.04;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: textureIn 400ms ease-out forwards;
    z-index: 0;
}

@keyframes textureIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.04;
    }
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    z-index: 1;
    overflow-y: auto;
}

/* Animated Seal */
.seal {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    animation: sealEmerge 600ms ease-out 300ms forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes sealEmerge {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: drop-shadow(0 0 0 rgba(59, 58, 60, 0));
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.08)) drop-shadow(-8px -8px 16px rgba(255, 255, 255, 0.9));
    }
}

.seal svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(8px 8px 16px rgba(0, 0, 0, 0.08)) drop-shadow(-8px -8px 16px rgba(255, 255, 255, 0.9));
}

/* Hero Title */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 4.5rem);
    letter-spacing: 0.06em;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 60px;
    animation: titleSlideIn 600ms ease-out 900ms forwards;
    opacity: 0;
    text-transform: uppercase;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blocks Container - Modular Grid */
.blocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 80px;
}

/* Modular Blocks */
.block {
    background-color: var(--color-alabaster);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.08),
                -8px -8px 16px rgba(255, 255, 255, 0.9);
    animation: blockFadeIn 600ms ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.block-1 { animation-delay: 1200ms; }
.block-2 { animation-delay: 1300ms; }
.block-3 { animation-delay: 1400ms; }
.block-4 { animation-delay: 1500ms; }
.block-5 { animation-delay: 1600ms; }
.block-6 { animation-delay: 1700ms; }

@keyframes blockFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block:hover {
    box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.12),
                -12px -12px 24px rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    transition: all 300ms ease-out;
}

/* Block Title */
.block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Block Text */
.block-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-secondary);
    letter-spacing: 0.02em;
}

/* Scrollbar styling */
.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background-color: var(--color-alabaster);
}

.container::-webkit-scrollbar-thumb {
    background-color: var(--color-light-gray);
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-top: 5vh;
    }

    .seal {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .hero-title {
        margin-bottom: 40px;
    }

    .blocks-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
        margin-bottom: 60px;
    }

    .block {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .blocks-container {
        gap: 20px;
        padding: 15px;
    }

    .block {
        padding: 20px;
    }

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

/* Focus styles for accessibility */
.block:focus-within {
    outline: none;
}

/* Print styles */
@media print {
    body::before {
        display: none;
    }

    .seal {
        margin-bottom: 20px;
    }

    .blocks-container {
        gap: 20px;
    }
}
