/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1410;
    color: #f5f0e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

/* ===== Animated Background Gradient ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(196, 169, 107, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 169, 107, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(61, 43, 31, 0.4) 0%, transparent 70%);
    animation: bgShift 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes bgShift {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
        opacity: 1;
    }
}

/* ===== Floating Particles ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 169, 107, 0.15);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== Container ===== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    animation: fadeIn 1.2s ease-out;
    position: relative;
    z-index: 1;
}

/* ===== Logo ===== */
.logo-wrapper {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.8s ease-out 0.2s both;
    position: relative;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 169, 107, 0.15) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(212, 188, 140, 0.2));
    transition: transform 0.4s ease;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.08);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* ===== Typography ===== */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #f5f0e8;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    color: #c4a96b;
    letter-spacing: 0.06em;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    text-shadow: 0 0 20px rgba(196, 169, 107, 0.2);
}

/* ===== Divider ===== */
.divider {
    width: 80px;
    height: 1px;
    background-color: #8b7355;
    margin: 1.5rem 0;
    animation: expandWidth 0.8s ease-out 0.6s both;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c4a96b, transparent);
    animation: shimmer 2.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== Status with Typing Cursor ===== */
.status {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #d4bc8c;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
    min-height: 2.5rem;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #d4bc8c;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ===== Message ===== */
.message {
    font-size: 0.95rem;
    font-weight: 300;
    color: #a89b8c;
    line-height: 1.7;
    letter-spacing: 0.03em;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* ===== Enhanced Loader ===== */
.loader {
    display: flex;
    gap: 8px;
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.9s both;
}

.loader span {
    display: block;
    width: 10px;
    height: 10px;
    background-color: #c4a96b;
    border-radius: 50%;
    animation: bounceEnhanced 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(196, 169, 107, 0.4);
}

.loader span:nth-child(1) {
    animation-delay: 0s;
}

.loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounceEnhanced {
    0%, 80%, 100% {
        transform: scale(0.5) translateY(0);
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(196, 169, 107, 0.2);
    }
    40% {
        transform: scale(1.1) translateY(-12px);
        opacity: 1;
        box-shadow: 0 0 20px rgba(196, 169, 107, 0.6);
    }
}

/* ===== Contact ===== */
.contact {
    margin-top: 2.5rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.contact p {
    font-size: 0.85rem;
    color: #8b7d6b;
    margin-bottom: 0.25rem;
}

.contact a {
    color: #d4bc8c;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    position: relative;
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #d4bc8c;
    transition: width 0.3s ease;
}

.contact a:hover {
    color: #f5f0e8;
}

.contact a:hover::after {
    width: 100%;
}

/* ===== Footer ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out 1.2s both;
    z-index: 1;
}

footer p {
    font-size: 0.75rem;
    color: #5a5046;
    letter-spacing: 0.05em;
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .logo {
        width: 140px;
    }

    .logo-wrapper::after {
        width: 160px;
        height: 160px;
    }

    .title {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }

    .status {
        font-size: 1.35rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .message {
        font-size: 0.85rem;
    }

    .container {
        padding: 1.5rem;
    }
}
