/* General Styling */
body {
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #f4f4f9;
}

/* Navbar */
.navbar {
    background-color: #6a1b9a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-right: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #f3e5f5; /* Lighter purple hover */
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, #6a1b9a, #9c27b0);
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    top: -50px;
    left: -50px;
    border-radius: 50%;
    animation: floating 5s infinite;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 0;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

/* Content Section */
.content-section {
    padding: 50px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Styling */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 20px rgba(106, 27, 154, 0.2);
    text-align: left;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 27, 154, 0.3);
}

.card .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensures the icon container spans the full width of the card */
}

.card .icon img {
    width: 60px;
    height: auto; /* Maintains aspect ratio */
}

.card h2 {
    color: #6a1b9a;
    font-size: 22px;
    font-weight: 700;
}

.card p {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.read-more-btn {
    background-color: #6a1b9a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto; /* Pushes the button to the bottom */
    align-self: center; /* Centers the button horizontally */
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #9c27b0;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #6a1b9a;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000000;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #6a1b9a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        display: none; /* Hidden by default */
        background-color: #6a1b9a;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 10px;
    }

    .hamburger.active + ul {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .content-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    footer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar ul li {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    footer {
        font-size: 10px;
    }
}
