* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #FFD700;
    --gold-dark: #FFA500;
    --red: #DC143C;
    --red-dark: #8B0000;
    --dark: #003b32;
    --dark-light: #004d42;
    --white: #ffffff;
    --gray: #cccccc;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #003b32 0%, #002a24 50%, #003b32 100%);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation with Light Particles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.light-particle {
    position: absolute;
    opacity: 0.4;
    animation: floatLight 20s infinite ease-in-out;
    pointer-events: none;
}

.light-1 {
    width: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.light-2 {
    width: 120px;
    top: 15%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.light-3 {
    width: 180px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.light-4 {
    width: 140px;
    top: 50%;
    right: 8%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.light-5 {
    width: 160px;
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 21s;
}

.light-6 {
    width: 130px;
    top: 35%;
    left: 25%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.light-7 {
    width: 170px;
    bottom: 35%;
    right: 35%;
    animation-delay: 2.5s;
    animation-duration: 23s;
}

.light-8 {
    width: 110px;
    top: 60%;
    left: 45%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

@keyframes floatLight {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -40px) scale(1.1) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(25px, 35px) scale(1.05) rotate(270deg);
        opacity: 0.5;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
    animation: fadeInDown 1s ease-out;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

.logo .gold {
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold);
}

.logo-subtitle {
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Dynamic Text */
.dynamic-text-container {
    margin-bottom: 60px;
    animation: fadeIn 1.5s ease-out;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.typewriter-text {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold);
    display: inline-block;
    min-width: 200px;
    text-align: left;
}

.cursor {
    color: var(--gold);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 600px;
    animation: fadeInUp 1.5s ease-out;
}

.search-instruction {
    text-align: center;
    margin-bottom: 30px;
}

.search-instruction p {
    font-size: 1.2rem;
    color: var(--gray);
}

.search-instruction .highlight {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px var(--gold);
}

/* Search Form */
.search-form {
    width: 100%;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.search-box:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 1.1rem;
    padding: 15px 25px;
    font-family: 'Poppins', sans-serif;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.search-btn:hover .btn-glow {
    left: 100%;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    animation: fadeIn 2s ease-out;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--gold));
}

.feature-text {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
    font-size: 0.9rem;
    animation: fadeIn 2s ease-out;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 215, 0, 0.2);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--gold);
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: 25px;
    }

    .search-btn {
        width: 100%;
        border-radius: 25px;
    }

    .features {
        gap: 20px;
    }

    .feature-item {
        min-width: 120px;
    }

    .light-particle {
        width: 100px !important;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .search-instruction p {
        font-size: 1rem;
    }

    .search-box input {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .search-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .light-particle {
        width: 80px !important;
    }
}
