﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #1a7c5a;
    --green-hover: #155f45;
    --bg: #ffffff;
    --text: #1a1a2e;
    --muted: #6b7280;
    --icon-color: #d1d5db;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Floating background icons */
.bg-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.icon {
    position: absolute;
    color: var(--icon-color);
    font-size: 18px;
    animation: floatIcon 6s ease-in-out infinite;
    opacity: 0.7;
}

    .icon:nth-child(1) {
        top: 8%;
        left: 8%;
        animation-delay: 0s;
        font-size: 14px;
    }

    .icon:nth-child(2) {
        top: 14%;
        left: 28%;
        animation-delay: 0.5s;
        font-size: 16px;
    }

    .icon:nth-child(3) {
        top: 7%;
        left: 52%;
        animation-delay: 1s;
        font-size: 12px;
    }

    .icon:nth-child(4) {
        top: 12%;
        left: 70%;
        animation-delay: 1.5s;
        font-size: 18px;
    }

    .icon:nth-child(5) {
        top: 18%;
        left: 88%;
        animation-delay: 2s;
        font-size: 14px;
    }

    .icon:nth-child(6) {
        top: 32%;
        left: 4%;
        animation-delay: 0.3s;
        font-size: 20px;
    }

    .icon:nth-child(7) {
        top: 38%;
        left: 18%;
        animation-delay: 0.8s;
        font-size: 13px;
    }

    .icon:nth-child(8) {
        top: 28%;
        left: 80%;
        animation-delay: 1.3s;
        font-size: 16px;
    }

    .icon:nth-child(9) {
        top: 50%;
        left: 92%;
        animation-delay: 1.8s;
        font-size: 14px;
    }

    .icon:nth-child(10) {
        top: 58%;
        left: 6%;
        animation-delay: 2.3s;
        font-size: 12px;
    }

    .icon:nth-child(11) {
        top: 68%;
        left: 20%;
        animation-delay: 0.6s;
        font-size: 18px;
    }

    .icon:nth-child(12) {
        top: 65%;
        left: 75%;
        animation-delay: 1.1s;
        font-size: 14px;
    }

    .icon:nth-child(13) {
        top: 75%;
        left: 58%;
        animation-delay: 1.6s;
        font-size: 16px;
    }

    .icon:nth-child(14) {
        top: 72%;
        left: 42%;
        animation-delay: 2.1s;
        font-size: 12px;
    }

    .icon:nth-child(15) {
        top: 85%;
        left: 85%;
        animation-delay: 0.9s;
        font-size: 15px;
    }

    .icon:nth-child(16) {
        top: 90%;
        left: 35%;
        animation-delay: 1.4s;
        font-size: 13px;
    }

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
        opacity: 0.8;
    }
}

/* Main content */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.number-404 {
    font-size: clamp(100px, 18vw, 160px);
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -6px;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: var(--muted);
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

    .btn:hover {
        background: var(--green-hover);
        transform: translateY(-2px);
    }

    .btn:active {
        transform: translateY(0);
    }
