/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Text Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #0a0e17;
    color: #fff;
    line-height: 1.6;
    background-image: url('https://media.istockphoto.com/id/1252693972/vector/space-stars-background-starry-night-sky-vector-illustration.jpg?s=612x612&w=0&k=20&c=fRK3ygLcZb-Tx-hXkCdt29QMsqGTIEjsh7cQCQgHm3s=');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.9) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Add stars animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 60px 110px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 80px 10px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 100px 30px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 120px 50px, rgba(255, 255, 255, 0.9), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

header h1 {
    font-weight: 500;
    letter-spacing: 0.5px;
}

#tab-cloaker {
    display: flex;
    align-items: center;
    gap: 10px;
}

#cloak-option {
    padding: 10px;
    border-radius: 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-family: 'Roboto', sans-serif;
}

#cloak-option option {
    background-color: white;
    color: #333;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.6);
    z-index: 100;
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.navbar ul li {
    text-align: center;
    margin: 0 10px;
}

.navbar ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 25px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.navbar ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.8), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar ul li a i {
    margin-right: 8px;
    font-size: 18px;
}

.navbar ul li a:hover {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.navbar ul li a:hover::before {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://media.istockphoto.com/id/1252693972/vector/space-stars-background-starry-night-sky-vector-illustration.jpg?s=612x612&w=0&k=20&c=fRK3ygLcZb-Tx-hXkCdt29QMsqGTIEjsh7cQCQgHm3s=');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.glowing-text {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 15px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-text {
    font-size: 32px; /* Adjust font size as needed */
    font-weight: 600;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8); /* Add text shadow for better visibility */
    margin-bottom: 20px; /* Add margin for spacing */
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(59, 130, 246, 0.5),
            0 0 15px rgba(59, 130, 246, 0.3);
    }
    to {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(59, 130, 246, 0.6),
            0 0 30px rgba(59, 130, 246, 0.4);
    }
}

.hero-subtitle {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 40px;
}

/* Search Container */
.search-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(13, 17, 23, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.search-container input {
    width: 70%;
    padding: 15px 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: rgba(13, 17, 23, 0.6);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    outline: none;
    transition: all 0.3s ease;
}

.search-container input::placeholder {
    color: #999;
}

.search-container input:focus {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.search-container button {
    padding: 15px 25px;
    margin-left: 10px;
    background-color: rgba(59, 130, 246, 0.8);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.search-container button:hover {
    background-color: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Sections */
section {
    padding: 40px 30px;
    margin: 50px auto;
    max-width: 1200px;
    background-color: rgba(16, 23, 34, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 162, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

section h2 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding-bottom: 15px;
    position: relative;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    letter-spacing: 1px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.8), transparent);
    border-radius: 2px;
}

/* Game Section */
.game-search, .browser-search {
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-search input, .browser-search input {
    width: 70%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.game-search input:focus, .browser-search input:focus {
    border-color: #4285F4;
    outline: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.game-search button, .browser-search button {
    padding: 12px 20px;
    background-color: #4285F4;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.game-search button:hover, .browser-search button:hover {
    background-color: #3b78e7;
    transform: translateY(-2px);
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}

.game {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(13, 17, 23, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(5px);
}

.game:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

.game h3 {
    background-color: rgba(59, 130, 246, 0.4);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.game iframe, .movie iframe, .tool iframe {
    border: none;
    display: block;
    width: 100%;
    background-color: #f5f5f5;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Browser Section */
#browser-message {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-style: italic;
}

#search-preview {
    background-color: #f9f9f9;
    text-align: center;
}

/* Movies Section */
.movie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.movie {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.movie h3 {
    background-color: #34A853;
    color: white;
    padding: 10px;
    text-align: center;
}

/* Tools Section */
.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tool {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
}

.tool h3 {
    background-color: #FBBC05;
    color: white;
    padding: 10px;
    text-align: center;
}

/* Chat Section */
.chat-container {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(13, 17, 23, 0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(5px);
    margin-top: 20px;
}

.chat-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

#chat h2 {
    margin-bottom: 15px;
}

#chat p {
    text-align: center;
    color: #ccc;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 150px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: monospace;
}

button {
    padding: 8px 15px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #3367D6;
}

/* Panic Button */
#panic-button {
    background-color: #EA4335;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(13, 17, 23, 0.8);
    color: white;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(0, 162, 255, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo-small {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Button Styles */
button {
    padding: 10px 20px;
    background-color: rgba(59, 130, 246, 0.6);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

button:hover {
    background-color: rgba(59, 130, 246, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    border-color: rgba(59, 130, 246, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-list, .movie-list, .tools-list {
        flex-direction: column;
        align-items: center;
    }

    .search-container input {
        width: 60%;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    #tab-cloaker {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .navbar ul {
        flex-wrap: wrap;
    }

    .navbar ul li {
        flex-basis: 50%;
    }

    .game, .movie, .tool {
        max-width: 100%;
    }

    .game iframe, .movie iframe, .tool iframe {
        height: 250px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-container input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-container button {
        width: 100%;
        margin-left: 0;
    }

    .navbar ul li {
        flex-basis: 100%;
    }
}