body {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    background-color: #1a1a1a; /* Default dark mode background */
    color: #fff; /* Default dark mode text color */
    overflow-x: hidden;
    padding-top: 80px; /* Add padding to account for fixed header */
}

* {
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Ensure it's behind main content and header */
}

header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000; /* Ensure it's on top of other content */
    backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 80px; /* Explicit height for header */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Limit width for larger screens */
    margin: 0 auto; /* Center the nav content */
    padding: 0 1rem;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}


#devimg{
    width: 150px;
    height: 150px;
    border-radius: 50%;

}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

nav a:hover {
    color: #00aaff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
}

.theme-toggle {
    width: 50px;
    height: 25px;
    flex-shrink: 0; /* Prevent shrinking */
}

.theme-toggle input[type="checkbox"] {
    display: none;
}

.switch-label {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Keep relative for the pseudo-element */
}

.switch-label::before {
    content: '';
    width: 21px;
    height: 21px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    margin-left: 2px; /* Adjust initial position */
}

.theme-toggle input[type="checkbox"]:checked + .switch-label {
    background-color: #00aaff;
}

.theme-toggle input[type="checkbox"]:checked + .switch-label::before {
    transform: translateX(25px);
    margin-left: 2px; /* Keep consistent margin */
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #00aaff;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #0088cc;
    transform: scale(1.05);
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

.developer-card, .feature-card, .buy-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
    max-width: 90%;
    margin: 0 auto;
}

.developer-card:hover, .feature-card:hover, .buy-card:hover {
    transform: translateY(-10px);
}

.developer-card img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.download-btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
}

.download-btn:hover {
    transform: scale(1.05);
    background-color: rgba(33, 63, 215, 0.2);
}

.android {
    background-color: #a4c639;
    color: #fff;
}

.ios {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #000;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
    }

    .hamburger-menu div {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        margin-left: auto;
    }
}

/* Light Mode */
body.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

body.light-mode header {
    background-color: rgba(255, 255, 255, 0.7);
}

body.light-mode .logo {
    color: #333; /* Darker color for logo in light mode */
}

body.light-mode nav a {
    color: #333;
}

body.light-mode nav a:hover {
    color: #00aaff;
}

body.light-mode .hero-content,
body.light-mode .developer-card,
body.light-mode .feature-card,
body.light-mode .buy-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .cta-button {
    background-color: #007bff;
}

body.light-mode .cta-button:hover {
    background-color: #0056b3;
}

body.light-mode .android {
    background-color: #8bc34a;
}

body.light-mode .ios {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
}

body.light-mode footer {
    background-color: #ccc;
    color: #333;
}

body.light-mode .theme-toggle .switch-label {
    background-color: #ccc;
}

body.light-mode .theme-toggle .switch-label::before {
    background-color: #fff;
}