/* --- STYLES FOR PROJECTS.HTML --- */

/* --- Global Styles & Variables (Repeated for each CSS file) --- */
:root {
    --primary-color: #0A2342;
    --secondary-color: #f4f4f4;
    --accent-color: #FFC400;
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

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

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Shared Header & Navigation --- */
.main-header {
    background: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* --- Shared Buttons --- */
.cta-button {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #004385;
    color: var(--light-text-color);
}

.cta-button-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cta-button-accent:hover {
    background: #ffd54f;
    color: var(--primary-color);
}


/* --- Shared Page Header --- */
.page-header {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    color: var(--light-text-color);
    font-size: 3rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #a9b8cc;
    margin: 0;
}

/* --- Styles SPECIFIC to Projects Page Content --- */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.projects-portfolio-grid {
    display: grid;
    /* This creates 1 column on small screens, and 2 on larger screens */
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.project-image {
    width: 100%;
    overflow: hidden;
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.project-content p {
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes details to the bottom */
}

.project-details {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.project-details li {
    font-size: 0.9rem;
    color: #555;
}

.project-details li strong {
    color: var(--primary-color);
}


/* --- Shared CTA Section --- */
.cta-section {
    background-image: linear-gradient(rgba(10, 35, 66, 0.9), rgba(10, 35, 66, 0.9)), url('https://placehold.co/1920x400/A9A9A9/333333?text=Blueprint');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--light-text-color);
    font-size: 2.5rem;
}

.cta-section p {
    color: #a9b8cc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- Shared Footer --- */
.main-footer {
    background: var(--primary-color);
    color: #e0e0e0;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--light-text-color);
    font-family: var(--heading-font);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #e0e0e0;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a4a75;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #a9b8cc;
}