/* ==========================================
   1. GLOBAL & BASE STYLES (Priority)
   ========================================== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #2e4b3f; /* Deep green priority background */
    color: white;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container {
    max-width: 1024px;
    padding: 20px;
}

.container p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 200;
    text-align: justify;
}

p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 200;
}

b {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    color: #ffa200;
}

/* ==========================================
   2. NAVIGATION & FOOTER
   ========================================== */
.navbar {
    width: 100%;
    box-sizing: border-box;
    padding: 25px 80px; 
    display: flex;
    justify-content: flex-end; 
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
    border-bottom: 2px solid #ffa200; 
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.5;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ==========================================
   3. IMAGES & SOCIAL LINKS
   ========================================== */
.circle-image {
    width: 200px;          
    height: 200px;         
    border-radius: 50%;    
    object-fit: cover;     
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.social-links a:hover {
    color: white;
}

.social-links svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
}

/* ==========================================
   4. 2x6 PORTFOLIO GRID SYSTEM
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left; /* Resets global 'main' text-center for grid layout */
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    background: #22352d; 
    border-radius: 6px;
    overflow: hidden;

}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee; 
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.35rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #da9e00; /* Dark text for readability on light card bg */
}

.card-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: ##D9D9D9; /* Darker grey for light card bg */
    margin: 0 0 1rem 0;
}

.card-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #ffffff; /* Dark text for readability on light card bg */
}

/* ==========================================
   5. RESPONSIVE MEDIA QUERIES (Merged)
   ========================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
        justify-content: center; 
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}