/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e2935;
    /* Elevated body text color for better contrast vs headings */
    background-color: #EBEBEB;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #1e40af);
    color: #fff;
    border: none;
    padding: 0.9rem 1.9rem;
    border-radius: 48px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 16px -2px rgba(29, 78, 216, 0.45), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter .28s ease;
}

.btn-secondary {
    background: #ffffff;
    color: #1d4ed8;
    border: 2px solid rgba(29, 78, 216, 0.25);
    padding: 0.85rem 1.55rem;
    font-weight: 600;
    border-radius: 48px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background .28s ease, color .28s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -8px rgba(29, 78, 216, 0.45), 0 8px 14px -6px rgba(29, 78, 216, 0.35);
}

.btn-secondary:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -6px rgba(29, 78, 216, 0.35);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(235, 235, 235, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo .logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    position: relative;
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--accent-700);
}

.nav-link.active,
.nav-link[aria-current="page"],
.nav-link[aria-current="true"] {
    color: var(--accent-700);
    font-weight: 600;
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after,
.nav-link[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-800));
    box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    color: #0f1724;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.hero-graphic i {
    font-size: 6rem;
    /* darker icon color to increase contrast when hero sits on off-white layers */
    color: rgba(15, 23, 42, 0.9);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Mission Section */
.mission {
    padding: 80px 0;
    background-color: #f9fafb;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.mission-icon i {
    font-size: 2rem;
    /* icons sit on a dark gradient circle - keep white for contrast */
    color: white;
}

.mission-card h3 {
    color: var(--text-strong);
    /* tokenized */
    margin-bottom: 1rem;
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-offwhite);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.project-header h3 {
    color: #0f1724;
    margin: 0;
}

/* Project external link inside heading */
.project-header h3 .project-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}
.project-header h3 .project-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,var(--accent),var(--accent-700));
    transition: width .25s ease;
    border-radius: 2px;
}
.project-header h3 .project-link:hover::after,
.project-header h3 .project-link:focus-visible::after {
    width: 100%;
}
.project-header h3 .project-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.4);
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.project-status {
    background-color: #047857;
    /* Deeper green for stronger contrast */
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .25px;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.tag {
    background: #ffffff;
    color: #1e3a8a;
    padding: 4px 12px;
    border: 1px solid rgba(30, 58, 138, 0.18);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: #f9fafb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-offwhite);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.team-avatar i {
    font-size: 2.5rem;
    color: white;
}

.team-role {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 16px;
}

.mission-card p,
.project-card p,
.team-card p,
.contact-form p,
.contact-item p {
    color: var(--text-body);
}

.nav-menu a {
    color: var(--text-body);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background-color: #0f1724;
    /* keep footer dark for contrast */
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-section p {
    line-height: 1.7;
}

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

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

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

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

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #EBEBEB;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .mission-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .mission-card,
    .project-card,
    .team-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling offset for fixed nav */
section {
    scroll-margin-top: 70px;
}

/* ------------------
   Modern Theme Overrides
   - Uses subtle gradients, refined spacing, stronger accent colors
   - Improves button styles, card elevation, hero visual, and footer
   ------------------ */

:root {
    --accent: #2563eb;
    /* primary brand blue */
    --accent-700: #1d4ed8;
    --muted: #6b7280;
    --bg-offwhite: #EBEBEB;
    --card-bg: #ffffff00;
    /* transparent base so cards pick up subtle backdrop */
    --glass: rgba(255, 255, 255, 0.6);
    --radius: 14px;
    /* Extended token set */
    --accent-800: #1e40af;
    --accent-rgb: 37, 99, 235;
    --success: #047857;
    --warn: #f59e0b;
    --info: #2563eb;
    --neutral: #6b7280;
    --text-strong: #0f1724;
    --text-body: #1e2935;
    --text-muted: #6b7280;
    --text-invert: #ffffff;
    --card-border: #e5e7eb;
    --footer-bg: #0f1724;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 20px;
    --space-xl: 32px;
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    /* give the hero more presence */
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
}

/* Accessibility: Skip Link & Focus Styles */
/* Skip link: hide visually until keyboard focus without leaving a color artifact */
.skip-link {
    position: absolute;
    left: 8px;
    /* slight inset so focus ring isn't clipped */
    top: 8px;
    transform: translateY(-140%);
    /* ensure fully off canvas */
    background: #1d4ed8;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .5px;
    text-decoration: none;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
}

.skip-link:focus-visible,
.skip-link:active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.45);
}

:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

.hero-graphic {
    width: 420px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.06);
    font-size: 64px;
    color: var(--accent);
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-700));
    color: #fff;
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(37, 99, 235, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

/* Cards */
.mission-card,
.project-card,
.team-card {
    border-radius: var(--radius);
    transition: transform 0.28s cubic-bezier(.2, .9, .3, 1), box-shadow 0.28s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.mission-card:hover,
.project-card:hover,
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.09);
}

/* Projects tag */
.tag {
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-700);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Footer */
.footer {
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(16, 24, 40, 0.02), transparent);
    padding: 48px 0 32px;
}

.footer .footer-bottom p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Utilities */
.container.padding-large {
    padding-top: 60px;
    padding-bottom: 60px
}

/* Make sure mobile hero adapts when columns collapse */
@media (max-width: 920px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-graphic {
        width: 100%;
        height: 200px
    }
}