/* ===================================
   Global Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #2C2416;
    color: #D2B48C;
    overflow-x: hidden;
}

/* ===================================
   Section Structure
   =================================== */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 8px solid #4A2C17;
    padding: 2rem;
}

.section:last-of-type {
    border-bottom: none;
}

/* ===================================
   Section 1: Hero / Stamp
   =================================== */

.hero-section {
    background-color: #D2B48C;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.stamp-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp {
    width: 300px;
    height: 300px;
    border: 6px dashed #2C2416;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    font-family: 'Roboto Slab', serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2C2416;
    text-align: center;
    line-height: 1.2;
    animation: stampPulse 3s ease-in-out infinite;
}

.stamp-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2C2416;
}

.stamp-red {
    color: #8B2500;
}

@keyframes stampPulse {
    0%, 100% {
        transform: rotate(-15deg) scale(1);
    }
    50% {
        transform: rotate(-15deg) scale(1.05);
    }
}

/* ===================================
   Section 2: Mandate / Decree
   =================================== */

.mandate-section {
    background-color: #A0522D;
    color: #F5E6D0;
    position: relative;
}

.mandate-content {
    max-width: 700px;
    text-align: center;
    position: relative;
}

.mandate-section h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F5E6D0;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.mandate-text {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #F5E6D0;
}

.mandate-text p {
    margin-bottom: 1.5rem;
}

.geometric-accent {
    position: absolute;
    background-color: #4A2C17;
}

.accent-1 {
    width: 150px;
    height: 150px;
    top: 2rem;
    left: -100px;
    opacity: 0.3;
    animation: floatAccent 4s ease-in-out infinite;
}

.accent-2 {
    width: 100px;
    height: 100px;
    bottom: 2rem;
    right: -80px;
    opacity: 0.3;
    transform: rotate(45deg);
    animation: floatAccent 5s ease-in-out infinite reverse;
}

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

/* ===================================
   Section 3: Registry / File Cards
   =================================== */

.registry-section {
    background-color: #8B4513;
    flex-direction: column;
}

.registry-content {
    width: 100%;
    max-width: 1000px;
}

.registry-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D2B48C;
    text-align: center;
    margin-bottom: 3rem;
}

.file-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.file-card {
    background-color: #D2B48C;
    padding: 2rem;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border: 4px solid #2C2416;
    box-shadow: inset 0 0 0 2px #A0522D;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-card:hover {
    transform: translateY(-10px);
    box-shadow: inset 0 0 0 2px #A0522D, 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-number {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A2C17;
    line-height: 1;
}

.card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2C2416;
    text-align: center;
}

.card-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8B2500;
}

.card-denied {
    opacity: 0.75;
}

.card-denied .shape {
    background-color: #8B2500;
}

.card-shapes {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.shape {
    width: 40px;
    height: 40px;
    background-color: #2C2416;
}

.shape-circle {
    border-radius: 50%;
}

.shape-diamond {
    transform: rotate(45deg);
}

.shape-triangle {
    background-color: transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #2C2416;
    width: 0;
    height: 0;
}

.shape-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.shape-square {
    width: 40px;
    height: 40px;
}

/* ===================================
   Section 4: Seal / Certification
   =================================== */

.seal-section {
    background-color: #6B4226;
    flex-direction: column;
    gap: 2rem;
}

.seal-container {
    text-align: center;
}

.seal-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D2B48C;
    margin-bottom: 2rem;
}

.seal-stamp {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sealRotate 20s linear infinite;
}

.seal-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 5px solid #D2B48C;
    border-radius: 50%;
    top: 0;
    left: 0;
}

.seal-text {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D2B48C;
    z-index: 2;
}

.seal-highlight {
    color: #8B2500;
    text-shadow: 0 0 10px rgba(139, 37, 0, 0.3);
}

.seal-details {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #D2B48C;
    line-height: 1.6;
}

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

/* ===================================
   Section 5: Footer / Documentation
   =================================== */

.footer-section {
    background-color: #4A2C17;
    flex-direction: column;
    gap: 2rem;
    border-bottom: none;
}

.footer-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.footer-section h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D2B48C;
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #8B4513;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-value {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #D2B48C;
    letter-spacing: 0.05em;
}

.footer-separator {
    width: 80%;
    height: 2px;
    background-color: #8B4513;
    margin: 2rem auto;
}

.footer-notice {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: #A0522D;
    line-height: 1.6;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .stamp {
        width: 200px;
        height: 200px;
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .mandate-section h1 {
        font-size: 2rem;
    }

    .registry-section h2 {
        font-size: 1.8rem;
    }

    .file-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .file-card {
        padding: 1.5rem;
    }

    .card-number {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .seal-stamp {
        width: 180px;
        height: 180px;
    }

    .seal-circle {
        width: 180px;
        height: 180px;
    }

    .seal-text {
        font-size: 1.3rem;
    }

    .section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stamp {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }

    .mandate-section h1 {
        font-size: 1.5rem;
    }

    .registry-section h2 {
        font-size: 1.3rem;
    }

    .file-cards {
        grid-template-columns: 1fr;
    }

    .seal-stamp {
        width: 150px;
        height: 150px;
    }

    .seal-circle {
        width: 150px;
        height: 150px;
    }

    .seal-text {
        font-size: 1rem;
    }
}
