/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri', serif;
    background-color: #f8f9fa;
    color: #2E125F;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #2E125F;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}
.logoimg {
    border-radius: 50%;
    width: 10vh;
}

.navbar .nav-links {
    list-style-type: none;
    display: flex;
    align-items: center;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a:focus {
    color: #a18cd1;
    outline: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle:focus {
    outline: 2px solid #a18cd1;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: #fff;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    width: 30px;
}

.hamburger {
    width: 30px;
    position: relative;
}

.hamburger::before {
    position: absolute;
    top: -8px;
    left: 0;
}

.hamburger::after {
    position: absolute;
    top: 8px;
    left: 0;
}

/* Active Hamburger Animation */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Home Section */
.home-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #c9e6e6;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.home-section.visible {
    opacity: 1;
}

.home-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    animation: slideInDown 1s ease forwards;
    opacity: 0;
}

.home-section.visible h1 {
    opacity: 1;
}

.home-section p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: slideInUp 1s ease forwards;
    opacity: 0;
}

.home-section.visible p {
    opacity: 1;
}

.home-section .btn {
    padding: 15px 30px;
    background-color: #2E125F;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

.home-section .btn:hover,
.home-section .btn:focus {
    background-color: #a18cd1;
    outline: none;
}

/* Cards Section */
.cards-section {
    display: flex;
    justify-content: space-around;
    padding: 50px 20px;
    background-color: #c9e6e6;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: #fff;
    width: 250px;
    padding: 20px;
    box-shadow: 0 2px 9px #2e125f6c;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.card:hover,
.card:focus {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px #a18cd1cc;
    outline: none;
}

.card img {
    width: 100%;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #2E125F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* Footer */
.footer {
    background-color: #2E125F;
    color: white;
    padding: 20px 0;
}

.footer ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer ul li a:hover,
.footer ul li a:focus {
    color: #a18cd1;
    outline: none;
}

.footer-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: 0;
        background-color: #2E125F;
        height: calc(100% - 60px);
        width: 200px;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .cards-section {
        flex-direction: column;
        align-items: center;
        padding: 30px 10px;
    }

    .card {
        width: 90%;
        margin-bottom: 20px;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
