/* --- Basic Reset Elements --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

/* --- Navigation Bar Layout --- */
.navbar {
    background-color: #2c3e50;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 0;
}

.logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #3498db;
}

/* Mobile Toggle Hamburger button hidden by default */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* --- Hero Showcase Section --- */
.hero-section {
    background-color: #34495e;
    color: #ffffff;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-content .credentials {
    font-size: 1rem;
    color: #bdc3c7;
    margin-bottom: 25px;
}

.btn-cta {
    display: inline-block;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn-cta:hover {
    background-color: #c0392b;
}

/* --- Mission & Work Content --- */
.mission-section {
    background-color: #ffffff;
}

.mission-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.mission-content p {
    margin-bottom: 15px;
}

.text-quote {
    font-style: italic;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
    margin: 20px 0;
    color: #555555;
}

.alert-box {
    background-color: #f9ebea;
    border: 1px solid #f5b7b1;
    padding: 15px;
    margin-top: 25px;
    border-radius: 4px;
}

/* --- Biography Area --- */
.bio-section {
    background-color: #f8f9fa;
}

.bio-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #2c3e50;
}

.bio-content p {
    margin-bottom: 15px;
}

.highlight-quote {
    background-color: #eaf2f8;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin: 25px 0;
}

.quote-author {
    display: block;
    text-align: right;
    font-weight: bold;
    margin-top: 5px;
    color: #7f8c8d;
}

.tagline {
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    font-style: italic;
}

/* --- Simple Cards Grid Setup --- */
.projects-section {
    background-color: #ffffff;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-card {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    border-radius: 4px;
}

.project-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666666;
}

.project-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* --- Footer Elements --- */
.footer-section {
    background-color: #2c3e50;
    color: #ffffff;
    padding-bottom: 20px;
}

.footer-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-box {
    flex: 1 1 45%;
    min-width: 280px;
}

.contact-box p {
    margin-bottom: 10px;
}

.contact-box ul {
    list-style: none;
}

.contact-box ul li {
    margin-bottom: 5px;
}

.contact-box a {
    color: #3498db;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.85rem;
}

/* --- Simple Utility Button --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 53px;
        left: 0;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .grid-container {
        flex-direction: column;
    }

    .footer-grid {
        flex-direction: column;
    }
}