/* ==========================================================================
   ALPATAD CREATIVE DIGITAL AGENCY - 404 ERROR PAGE STYLESHEET
   File: css/404.css
   Concise, modern, and fully responsive CSS
   ========================================================================== */

:root {
    --primary-lime: #a8ff1a;
    --primary-lime-hover: #b8ff33;
    --primary-lime-solid: #9ee51c;
    --bg-light: #eff3ec;
    --bg-white: #ffffff;
    --text-dark: #0c1509;
    --text-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.25s ease;
}

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   HEADER (Light version matching screenshot)
   -------------------------------------------------------------------------- */
.light-header {
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--primary-lime);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4b5843;
    display: block;
    margin-top: 3px;
}

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

.nav-item {
    position: relative;
}

.nav-a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}

.nav-a:hover,
.nav-a.active {
    color: #65a30d;
}

.dropdown-box {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 50;
}

.nav-item:hover .dropdown-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-box a {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-box a:hover {
    background: var(--bg-light);
    color: #4d7c0f;
}

/* Header Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-works-pill {
    background-color: var(--primary-lime-solid);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-works-circle {
    background-color: var(--primary-lime-solid);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-works-circle svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-dark);
}

.header-actions:hover .btn-works-pill {
    background-color: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.header-actions:hover .btn-works-circle {
    background-color: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px) rotate(45deg);
}

.header-actions:hover .btn-works-circle svg {
    stroke: var(--bg-white);
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-dark);
}

/* --------------------------------------------------------------------------
   404 MAIN HERO SECTION (MATCHING SCREENSHOT)
   -------------------------------------------------------------------------- */
.error-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 70px;
    text-align: center;
}

.error-content-box {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 404 Illustration SVG Container */
.error-illustration-wrap {
    width: 100%;
    max-width: 680px;
    margin-bottom: 30px;
    position: relative;
}

.error-svg-art {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating animation for paper character and clouds */
@keyframes cuteBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes sparkleTwinkle {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.25); opacity: 1; }
}

.anim-character {
    transform-origin: center bottom;
    animation: cuteBounce 3s ease-in-out infinite;
}

.anim-cloud-left {
    animation: cloudFloat 5s ease-in-out infinite alternate;
}

.anim-cloud-right {
    animation: cloudFloat 6s ease-in-out infinite alternate-reverse;
}

.anim-sparkle {
    transform-origin: center;
    animation: sparkleTwinkle 2.5s ease-in-out infinite;
}

/* Title matching screenshot */
.error-heading-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Button Group Matching Screenshot: Arrow circle on LEFT, Pill on RIGHT */
.error-btn-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-arrow-left-circle {
    background-color: var(--primary-lime-solid);
    color: var(--text-dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-arrow-left-circle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-dark);
    transition: transform 0.3s ease;
}

.btn-home-pill {
    background-color: var(--primary-lime-solid);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.error-btn-wrap:hover .btn-arrow-left-circle {
    background-color: var(--text-dark);
    transform: translateY(-2px) rotate(-45deg);
    box-shadow: 0 6px 20px rgba(12, 21, 9, 0.18);
}

.error-btn-wrap:hover .btn-arrow-left-circle svg {
    stroke: var(--bg-white);
}

.error-btn-wrap:hover .btn-home-pill {
    background-color: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 21, 9, 0.18);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        border-bottom: 2px solid var(--primary-lime);
        gap: 14px;
        align-items: flex-start;
    }

    .nav-links.open {
        display: flex;
    }

    .dropdown-box {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 14px;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .error-heading-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 576px) {
    .light-header {
        padding: 12px 0;
    }

    .btn-works-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-works-circle {
        width: 34px;
        height: 34px;
    }

    .error-heading-title {
        font-size: 1.6rem;
    }

    .btn-home-pill {
        padding: 11px 22px;
        font-size: 0.9rem;
    }

    .btn-arrow-left-circle {
        width: 42px;
        height: 42px;
    }
}
