/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: black;
    background: linear-gradient;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: #003B95;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.desktop-nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    display: none;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 19px;
    left: 10px;
    z-index: 1002;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #003B95;
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    padding: 60px 20px 20px; /* Add top padding to account for header */
    box-sizing: border-box;
}

.side-menu a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
}

/* Main content styles */
main {
    padding-top: 60px; /* To account for the fixed header */
    flex: 1 0 auto;
}

.about-hero {
    background-color: #003B95;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
}

.about-content {
    padding: 4rem 0;
}

.about-description, .about-features {
    margin-bottom: 2rem;
}

.about-description h2, .about-features h2 {
    color: #003B95;
    margin-bottom: 1rem;
}

.about-features ul {
    list-style-type: none;
}

.about-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-features li::before {
    content: '•';
    color: #003B95;
    position: absolute;
    left: 0;
}

.about-creator {
    background-color: #f0f0f0;
    padding: 4rem 0;
}

.about-creator .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.creator-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.creator-bio h2 {
    color: #003B95;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        font-size: 1.2rem;
    }

    header .container {
        justify-content: center;
        padding: 0 15px;
    }

    .about-hero {
        padding: 2rem 0;
    }

    .about-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .about-hero p {
        font-size: 0.9rem;
    }

    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #003B95;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px;
        color: white;
        text-decoration: none;
        font-size: 0.8rem;
    }

    .mobile-nav .nav-link i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .about-creator .container {
        flex-direction: column;
        text-align: center;
    }

    .creator-image img {
        width: 200px;
        height: 200px;
    }

    /* Hide footer on mobile devices */
    footer {
        display: none;
    }

    /* Add padding to the bottom of the main content to prevent overlap with mobile navbar */
    main {
        padding-bottom: 70px;
    }

    /* Ensure the last section has enough padding at the bottom */
    .about-creator {
        padding-bottom: 80px;
    }
}

/* iPhone X and newer specific styles */
@supports (padding: max(0px)) {
    .mobile-nav {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }

    /* Adjust main content padding for devices with safe areas */
    main {
        padding-bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
    }

    /* Adjust last section padding for devices with safe areas */
    .about-creator {
        padding-bottom: max(80px, calc(80px + env(safe-area-inset-bottom)));
    }
}