/* General Styles */
body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    color: #ffffff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Press Start 2P', cursive;
    color: #ffffff;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .glitch-text {
        font-size: 2.5rem !important;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    p {
        font-size: 0.95rem;
    }
}

/* Pixel Border */
.pixel-border {
    border: 4px solid #ffffff;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    padding: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ---------- Join Section Styles ---------- */
.join-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(10, 10, 30, 0.3);
    border-radius: 30px;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s;
}

.social-link:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }

    .join-content {
        text-align: center;
        margin-bottom: 30px;
    }
}

.join-form {
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.join-form h3 {
    margin-bottom: 20px;
}

.join-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border-radius: var(--border-radius);
    padding: 10px 15px;
    margin-bottom: 15px;
}

.join-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.join-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

.join-form button {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.join-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

/* Navigation */
.navbar {
    height: 70px;
    /* Reduced height for a slimmer navbar */
    padding: 10px 20px;
    /* Adjusted padding for better alignment */
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 10px;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, #000428, #004e92);
        padding: 15px;
        border-radius: 0 0 10px 10px;
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        margin-top: 10px;
    }

    .nav-item {
        margin: 5px 0;
    }
}

.nav-link {
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: bold;
}

.nav-link:hover {
    color: #ff00ff !important;
}

/* Mobile Navigation Toggle Button */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler i {
    color: #ffffff;
    font-size: 1.5rem;
}

/* Particles Background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ensure it spans the full height of the hero section */
    z-index: -1;
    /* Ensure particles are behind content */
    pointer-events: none;
    /* Prevent interaction with particles */
    background: transparent;
    /* Ensure no background color blocks visibility */
}

/* Particle Canvas Styles */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    /* Ensure stacking context for particles */
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    text-align: center;
    padding: 150px 0;
    /* Increased padding for a more spacious look */
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 40, 0.7);
    /* Dark blue overlay with opacity */
}

.glitch-text {
    font-size: 4rem;
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
    position: relative;
    /* Ensure text stays above video */
    z-index: 1;
}

/* Ensure hero content stays above video */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px #ff00ff, -2px -2px #00ffff;
}

.section-header {
    margin-bottom: 50px;
    /* Add more space below headers */
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    margin: 10px auto;
}

/* General Section Spacing */
.section {
    padding: 100px 0;
    /* Increased from default */
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* Features Section */
.feature-card {
    background: #2a2a40;
    border: 4px solid #ffffff;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    height:89%;
    /* Add spacing between feature cards */
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .feature-card:hover {
        transform: none;
        /* Disable hover scaling on mobile */
    }
}

.feature-card-icon {
    font-size: 3rem;
    color: #ff00ff;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border: 4px solid #ffffff;
    margin-bottom: 20px;
}

.gallery-grid {
    row-gap: 30px;
    /* Add vertical spacing between gallery rows */
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

@media (max-width: 768px) {
    .gallery-overlay {
        opacity: 0.7;
        /* Always show overlay partially on mobile for better UX */
    }

    .gallery-item {
        margin-bottom: 15px;
    }
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    color: #ffffff;
    font-size: 2rem;
}

.gallery-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery-image {
        height: 180px;
    }
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Simple Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Touch-friendly close button */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        /* Larger touch target */
        background: rgba(0, 0, 0, 0.5);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Roadmap Section */
.roadmap-item {
    margin-bottom: 50px;
    /* Add spacing between roadmap items */
}

@media (max-width: 768px) {
    .roadmap-item {
        margin-bottom: 30px;
    }
}

/* ---------- Footer Styles ---------- */
.footer {
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    padding: 50px 0;
    /* Increased padding for a more open footer */
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ff00ff;
}

.footer-contact i {
    color: #ff00ff;
    margin-right: 10px;
}

/* Mobile Footer Improvements */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 20px;
        display: block;
    }

    .footer h4 {
        margin-top: 20px;
    }

    .footer-contact li {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
    z-index: 100;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        /* Larger touch target */
    }
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- Logo Styles ---------- */
.logo {
    max-width: 50px;
    /* Adjusted size for a smaller logo */
    height: 50px;
    /* Ensure the logo is square */
    border-radius: 50%;
    /* Make the logo circular */
    object-fit: cover;
    /* Ensure the logo fits within the circular shape */
    display: block;
    margin: 0 auto;
    /* Center the logo horizontally */
}

/* ---------- Navbar Styles ---------- */
.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

/* Mobile About Section Improvements */
@media (max-width: 768px) {
    .about-image {
        margin-bottom: 30px;
    }

    .about-content h3 {
        text-align: center;
    }

    .feature-box {
        margin-bottom: 20px;
    }
}