:root {
        --bg-gradient: radial-gradient(circle at top, #0f172a, #0e0e10 70%);
        --primary-color: #60a5fa; /* sky blue */
        --secondary-color: #1f2937;
        --text-color: #f3f4f6;
        --glow-color: rgba(96, 165, 250, 0.7);
        --star-color: rgba(255, 255, 255, 0.8);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    body {
        background: var(--bg-gradient);
        color: var(--text-color);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 1rem;
        overflow: hidden;
        position: relative;
    }

    /* Floating stars */
    .star {
        position: absolute;
        background: var(--star-color);
        border-radius: 50%;
        opacity: 0.7;
        animation: twinkle 3s infinite ease-in-out;
    }

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

    header {
        text-align: center;
        margin-bottom: 2.5rem;
        opacity: 0;
        transform: translateY(-40px);
        animation: headerEnter 1.2s ease forwards;
    }

    @keyframes headerEnter {
        to { opacity: 1; transform: translateY(0); }
    }

    header h1 {
        font-size: 3rem;
        font-weight: 600;
        color: var(--primary-color);
        text-shadow: 0 0 15px var(--glow-color), 0 0 30px var(--primary-color);
        animation: glow 3s infinite alternate;
        letter-spacing: 2px;
    }

    header p {
        font-size: 1.2rem;
        color: #9ca3af;
        margin-top: 0.7rem;
    }

    @keyframes glow {
        from { text-shadow: 0 0 10px var(--glow-color); }
        to { text-shadow: 0 0 25px var(--primary-color), 0 0 50px var(--glow-color); }
    }

    .search-container {
        background: var(--secondary-color);
        padding: 1rem;
        border-radius: 50px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 0 25px rgba(0,0,0,0.4);
        max-width: 600px;
        width: 100%;
        transition: 0.3s ease;
        opacity: 0;
        transform: scale(0.8);
        animation: searchEnter 1.2s ease forwards;
        animation-delay: 0.8s;
    }

    @keyframes searchEnter {
        to { opacity: 1; transform: scale(1); }
    }

    .search-container:hover {
        box-shadow: 0 0 35px var(--glow-color);
    }

    .search-container input {
        flex: 1;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-color);
    }

    .search-container button {
        background: var(--primary-color);
        border: none;
        padding: 0.8rem 1.4rem;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s ease;
        color: white;
    }

    .search-container button:hover {
        background: #3b82f6;
        transform: scale(1.07);
        box-shadow: 0 0 12px var(--glow-color);
    }

    footer {
        position: absolute;
        bottom: 1rem;
        font-size: 0.9rem;
        color: #6b7280;
        opacity: 0;
        animation: footerEnter 1s ease forwards;
        animation-delay: 1.6s;
    }

    @keyframes footerEnter {
        to { opacity: 1; }
    }

    #frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  display: none;
  z-index: 9999;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
}

.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 1.2rem;
  letter-spacing: 1px;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
