/* ========== General Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0d0d0d;
    color: #fff;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 1;
    }

    20%,
    22%,
    55% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px #ff6a00;
    }

    50% {
        box-shadow: 0 0 20px #ff6a00;
    }

    100% {
        box-shadow: 0 0 5px #ff6a00;
    }
}

/* ========== Navbar ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInUp 1s ease;
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff6a00;
    animation: flicker 3s infinite;
}
#menu{
    border: 2px solid #8573AA;
    padding: 15px;
    border-radius: 10px;
}
.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar ul li a {
    color: #ddd;
    font-size: 1rem;
    transition: color 0.3s;
    cursor: pointer;
}

.navbar ul li a:hover {
    color: #ff6a00;
}

.navbar .btn {
    padding: 8px 18px;
    background: #ff6a00;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.navbar .btn:hover {
    background: #e65a00;
    transform: scale(1.05);
}

.dark-toggle {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #444;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.dark-toggle:hover {
    background: #666;
    transform: rotate(20deg);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .navbar ul {
        position: absolute;
        top: 75px;
        left: -100%;
        width: 100%;
        background: #111;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        transition: left 0.3s ease-in-out;
    }

    .navbar ul.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

}

/* ========== Hero Section ========== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e1e1e, #000);
    animation: fadeInUp 1.2s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ff6a00;
    animation: floating 3s infinite;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ddd;
    animation: fadeInUp 1.5s ease;
}

.hero button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #ff6a00;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.hero button:hover {
    background: #e65a00;
    transform: scale(1.1);
}

/* ========== Resources Section ========== */
.resources {
    padding: 60px 20px;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

.resources h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff6a00;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    animation: fadeInUp 2s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.05);
    background: #222;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.4);
}

.card span {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6a00;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.card:hover span {
    bottom: 15px;
    opacity: 1;
}

/* ======= Revolutionize the Way You Learn ======= */
.WayToLearn h1 {
    text-align: center;
    margin-top: 30px; 
    color: #ff6b3d;
}

.card a {
    color: #ff6b3d;
}

.card .icon{
    width:20%;
    text-align: center;
}
.card div{
    width:80%;
    text-align: left;
}

/* ===== Container ===== */
.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    margin-top: 50px;
}

/* ===== Navigation Tabs ===== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s ease;
    color: #fff;
    font-weight: bold;
}

.tab.active {
    background-color: #ff6b3d;
    border-color: #ff6b3d;
}

.tab:hover {
    border-color: #ff6b3d;
}

/* ===== Grid Layout ===== */
.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== Left Column ===== */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.icon {
    font-size: 28px;
    color: #ff6b3d;
    flex-shrink: 0;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #fff;
}

.card p {
    color: #aaa;
    font-size: 14px;
}

/* ===== Right Column (Image/Preview) ===== */
.right-col img {
    margin-top: 100px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .content {
        grid-template-columns: 1fr;
    }

    .right-col {
        order: -1;
    }
}

/* ========== Community Section ========== */
.community {
    background: #111;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
}

.community h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff6a00;
}

.community-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stat {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
    transition: background 0.3s;
}

.stat:hover {
    background: #222;
}

.stat h3 {
    font-size: 1.5rem;
    color: #ff6a00;
}

/* ========== Global Community Section ========== */
.global-community {
    padding: 60px 20px;
    text-align: center;
    background: #0d0d0d;
}

.global-community h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff6a00;
}

.global-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.gstat {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 220px;
    font-weight: bold;
    transition: background 0.3s;
}

.gstat:hover {
    background: #222;
}

.global-community button {
    margin-top: 20px;
    padding: 12px 25px;
    background: #ff6a00;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.global-community button:hover {
    background: #e65a00;
}

/* ========== Footer ========== */
footer {
    background: #111;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 10px;
    color: #ff6a00;
}

.footer-links a {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* ========== Dark Mode ========== */
body.dark-mode {
    background: #f5f5f5;
    color: #111;
}

body.dark-mode .navbar {
    background: #eee;
}

body.dark-mode .navbar ul li a {
    color: #333;
}

body.dark-mode .card,
body.dark-mode .stat,
body.dark-mode .gstat {
    background: #fff;
    color: #111;
}

body.dark-mode .WayToLearn .tab,
body.dark-mode .WayToLearn h3 {
    color: #111;
}

body.dark-mode footer {
    background: #eee;
    color: #111;
}

body.dark-mode .footer-links a {
    color: #333;
}

/* ========== Login Modal ========== */
.loginModal {
    width: 30%;
    max-width: 400px;
    min-width: 300px;
    background-color: black;
    color: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: 0.4s ease;
    padding: 40px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
}

.loginModal span {
    font-size: 30px;
    cursor: pointer;
    float: right;
}

.headingModal {
    text-align: center;
    margin-bottom: 20px;
}

.headingModal h3 {
    font-size: 30px;
    color: #ff6a00;
}

.loginModal form input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    margin-top: 10px;
    padding: 5px;
    border: none;
}

.loginModal form button {
    width: 100%;
    margin-top: 30px;
    padding: 10px 0px;
    color: white;
    font-size: 20px;
    background-color: #ff6a00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.loginModal form p {
    margin-top: 30px;
    text-align: center;
    cursor: pointer;
}

.showModal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.signinModal {
    width: 30%;
    max-width: 400px;
    min-width: 300px;
    background-color: black;
    color: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: 0.4s ease;
    padding: 40px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
}

.signinModal span {
    font-size: 30px;
    cursor: pointer;
    float: right;
}

.headingModal {
    text-align: center;
    margin-bottom: 20px;
}

.headingModal h3 {
    font-size: 30px;
    color: #ff6a00;
}

.signinModal form input {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    margin-top: 10px;
    padding: 5px;
    border: none;
}

.signinModal form button {
    width: 100%;
    margin-top: 30px;
    padding: 10px 0px;
    color: white;
    font-size: 20px;
    background-color: #ff6a00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.signinModal form p {
    margin-top: 30px;
    text-align: center;
}

.showModal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}