* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

header {
    background: #007bff;
    padding: 15px;
    text-align: center;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

    header img {
        height: 40px;
        margin-right: 10px;
    }

.section {
    padding: 40px 20px;
    text-align: center;
    background: white;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease-in-out;
}

.visible {
    transform: translateY(0);
    opacity: 1;
}

.module-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.module-item {
    background: #007bff;
    color: white;
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
}

    .module-item:hover {
        transform: scale(1.1);
    }

.testimonials {
    background: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
}

.testimonial-item {
    background: white;
    padding: 15px;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
    max-width: 90%;
    font-size: 1rem;
}

.contact-btns {
    text-align: center;
    margin: 30px 0;
}

    .contact-btns a {
        display: inline-block;
        background: white;
        color: #007bff;
        padding: 12px 20px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        margin: 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
        font-size: 1rem;
    }

        .contact-btns a:hover {
            transform: scale(1.1);
        }

/* Enhanced About Section */
.about-section {
    background: url('../Images/SchoolEaseApp Logo.png') no-repeat center center/cover;
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .about-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
    }

.about-content {
    position: relative;
    max-width: 800px;
    margin: auto;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1.5s ease-in-out forwards;
}

    .about-content h2 {
        font-size: 2.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
    }

    .about-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-top: 10px;
    }

.section {
    padding: 40px 20px;
    text-align: center;
    background: white;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease-in-out;
}

.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    padding: 10px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar img {
        height: 40px;
    }

/* Style for the navigation bar */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nav-links li {
        position: relative;
        margin: 0 15px;
    }

/* Style for dropdown (Download) */
.dropdown {
    position: relative;
}

/* Submenu Styling */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    /* Aligns the submenu directly below the parent menu */
    left: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 100;
}

    /* Ensure submenu text is visible */
    .submenu li {
        padding: 0;
        text-align: left;
    }

    .submenu a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #333 !important;
        /* Ensures submenu text is always visible */
        font-weight: bold;
        background: white;
        transition: background 0.3s, color 0.3s;
    }

        /* Hover effect for submenu */
        .submenu a:hover {
            background: #007bff;
            color: white !important;
        }

/* Show submenu on hover */
.dropdown:hover .submenu {
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

    .nav-links a:hover {
        text-decoration: underline;
    }

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #007bff;
        padding: 10px 0;
        text-align: center;
    }

        .nav-links.active {
            display: flex;
        }

        .nav-links li {
            margin: 10px 0;
        }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    color: white;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

    .hero h1 {
        font-size: 2.5rem;
        white-space: nowrap;
        overflow: hidden;
        border-right: 2px solid white;
        animation: typing 3s steps(30) forwards, blink 0.8s infinite;
        max-width: 100%;
    }

    .hero p {
        font-size: 1.2rem;
        margin-top: 10px;
    }

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
footer {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    bottom: 0;
    flex: 1;
}

    footer a {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
