/* Navbar for About Section */
.about-nav {
    background-color: #4f46e5;
    color: white;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    background-color: #4f46e5;
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
    }

    .nav-links a {
        margin: 15px 0;
        padding: 10px 20px;
    }

    .nav-toggle {
        display: block;
    }
}

/* Dark mode */
body.dark .about-nav {
    background-color: #4f46e5;
}

/* About Section matching homepage theme */
.about {
    padding: 70px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}
.about-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 15px 0;
}

.about-more {
    display: none;
}

.about button {
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.about button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Dark mode support */
body.dark .about {
    background-color: #1e1e1e;
    color: #f1f1f1;
}

body.dark .about button {
    background-color: #4f46e5; /* same as primary color in dark mode */
}
/* Footer */
footer {
    background: #4f46e5;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

body.dark footer {
    background: #1e1e1e;
}
