/* Reset Default Margin & Padding */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Body Styling */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333;
}

/* Navbar Styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

/* Logo Styling */
.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}

/* Navbar Links */
nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    margin-left: auto;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2em;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Animation for Navbar Links */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #EE82EE;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #EE82EE;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Main Content Section */
.main-content {
    padding: 20px;
    max-width: 1000px;
    margin-top: 100px; /* Adjusted for fixed navbar */
    margin-left: auto;
    margin-right: auto;
    background: rgba(75, 0, 130, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(106, 13, 173, 0.1);
}

/* Module Header Styling */
.module-header {
    background: rgba(75, 0, 130, 0.15);
    color: #4B0082;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(106, 13, 173, 0.2);
}

.module-header h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4B0082;
}

.module-header p {
    font-size: 1.2em;
    color: #666;
}

/* Section Styling */
.section {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(106, 13, 173, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(106, 13, 173, 0.1);
    border: 1px solid rgba(106, 13, 173, 0.3);
}

.section-text {
    flex: 1;
    padding-left: 20px;
}

.section-text h2 {
    font-size: 2em;
    color: #4B0082;
    margin-bottom: 10px;
}

.section-text p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

/* Button Styling */
.more-button {
    background: linear-gradient(135deg, #6A0DAD, #EE82EE);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.more-button:hover {
    background: #4B0082;
    transform: scale(1.05);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Fade-in Animation */
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    .main-content {
        padding: 20px;
    }

    .module-header h1 {
        font-size: 2.2em;
    }

    .section h2 {
        font-size: 1.7em;
    }
}
