/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f4f9;
    color: #222;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: url('images/web_first_images_release.png') center/cover no-repeat;
    background-position: center -200px;
    position: relative;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 0;
}

header h1, header p {
    position: relative;
    z-index: 1;
}

/* Tab Bar Navigation */
.tab-bar {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #171994;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #171994;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-right: 1px solid #e0e0e0;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background-color: #e8eaf6;
}

.tab:active {
    background-color: #d1d5e8;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    width: 90vw;
    margin: 2rem auto;
    padding: 0;
    transition: all 0.3s ease;
}

main.modal-open {
    margin-left: 450px;
    width: calc(90vw - 450px);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 0 2rem;
}

.projects h2 {
    margin-bottom: 2rem;
    color: #171994;
    text-align: left;
}

h2 {
    margin-bottom: 1rem;
    color: #171994;
    text-align: left;
}

.left-align {
    text-align: left !important;
}

.center-align {
    text-align: center !important;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 0;
    transition: transform 0.2s;
    cursor: pointer;
    overflow: hidden;
    border: 10px solid white;
}

.project:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 4px 16px rgba(79,140,255,0.15);
}

.project h3 {
    margin: 1rem 1rem 0 1rem;
    color: #171994;
    font-size: 1.2rem;
}

.project-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 1rem;
    background: #eaeaea;
    color: #555;
    margin-top: 2rem;
    font-size: 0.95rem;
}

a:link, a:visited {
    color: #171994;
    transition: none;
}

/* ===== MODAL ===== */
.project-modal {
    position: fixed;
    top: 250px;
    left: -400px;
    width: 400px;
    height: calc(100vh - 250px);
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.project-modal.active {
    left: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #171994;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #79b3ff;
}

.modal-content {
    margin-top: 2rem;
}

.modal-content h2 {
    color: #171994;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #171994;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.modal-section p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.modal-button {
    display: inline-block;
    background: #ffffff;
    color: #171994;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #171994;
    transition: all 0.2s;
    cursor: pointer;
}

.modal-button:hover {
    background: #171994;
    color: #ffffff;
    border-color: #171994;
}

/* ===== UTILITIES ===== */
.icon-home {
    background-image: url('images/cssicon.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.leftnav {
    display: none;
}