body {
    font-family: 'Roboto', sans-serif;
    background-color: #000; /* Default: dark mode */
    color: #fff;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-color: #fff;
    color: #000;
}

.navbar {
    background-color: #000 !important;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.light-mode .navbar {
    background-color: #fff !important;
    border-bottom: 1px solid #ddd;
}

.navbar-brand {
    font-weight: 900;
    font-size: 2rem;
    color: #1d9bf0; /* X blue for dark mode */
    transition: color 0.3s ease;
}

body.light-mode .navbar-brand {
    color: #007bff; /* Lighter blue for light mode */
}

.nav-link {
    color: #d1d5db;
    font-weight: 600;
    transition: color 0.3s ease;
}

body.light-mode .nav-link {
    color: #333;
}

.nav-link:hover {
    color: #1d9bf0;
}

body.light-mode .nav-link:hover {
    color: #007bff;
}

.display-1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

body.light-mode .display-1 {
    color: #000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 1.5rem;
    color: #d1d5db;
    font-weight: 400;
}

body.light-mode .lead {
    color: #555;
}

.btn-primary {
    background: linear-gradient(135deg, #1d9bf0, #00c6ff);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #1d9bf0;
    color: #1d9bf0;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

body.light-mode .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-academy {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.btn-academy:hover {
    transform: translateY(-2px);
}

.search-bar {
    background-color: #202327;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #fff;
    width: 400px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

body.light-mode .search-bar {
    background-color: #f1f3f5;
    color: #000;
}

.search-bar::placeholder {
    color: #71767b;
}

body.light-mode .search-bar::placeholder {
    color: #666;
}

.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

body.light-mode .mode-toggle {
    color: #000;
}

.social-icons a {
    color: #d1d5db;
    font-size: 1.2rem; /* Smaller icons */
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

body.light-mode .social-icons a {
    color: #555;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #1d9bf0;
}

body.light-mode .social-icons a:hover {
    color: #007bff;
}

.footer {
    background-color: #000;
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    color: #71767b;
    font-size: 14px;
}

body.light-mode .footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #71767b;
    text-decoration: none;
    transition: color 0.3s;
}

body.light-mode .footer-links a {
    color: #555;
}

.footer-links a:hover {
    color: #fff;
}

body.light-mode .footer-links a:hover {
    color: #007bff;
}

/* Transparent Modals */
.modal-content {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark */
    border: none;
    border-radius: 15px;
}

body.light-mode .modal-content {
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent light */
}

.modal-title, .modal-body p {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

body.light-mode .modal-title, body.light-mode .modal-body p {
    color: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-close {
    filter: invert(1); /* White close button in dark mode */
}

body.light-mode .btn-close {
    filter: invert(0); /* Black close button in light mode */
}

.navbar-toggler {
    border: none;
}

.navbar-nav {
    gap: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 3rem;
    }
    .lead {
        font-size: 1.2rem;
    }
    .search-bar, .btn-outline-primary, .btn-primary {
        width: 100%;
        margin-bottom: 10px;
    }
    .social-icons a {
        font-size: 1rem;
        margin: 0 8px;
    }
}