/* ===================================
   AIMEN GABA PORTFOLIO - MAIN STYLES
   Clean, academic design
   =================================== */

/* === VARIABLES & BASICS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* System font stack - native, crisp fonts */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 16px;
    background: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0052a3;
}

/* Container - keeps content centered and within max width */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* === HEADER === */
/* Top section with name and keywords */
.site-header {
    padding: 3rem 0 1rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
    font-family: 'Crimson Pro', serif; /* Serif font for name only */
}

.keywords {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.5;
}


/* === NAVIGATION === */
/* Main navigation bar */
nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

nav ul {
    list-style: none;
    display: inline-flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: #0066cc;
}


/* === MAIN CONTENT AREA === */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2.5rem;
}

/* Section headings */
h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc; /* Blue underline for visual interest */
}


/* === HOMEPAGE STYLES === */
/* Grid layout: text on left, photo on right */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.profile-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Bio paragraphs */
.bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.75rem;
}

/* Achievement badges */
.badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.badge {
    background: #f0f7ff;
    color: #0066cc;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact links */
.contact-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
    margin-top: 1.5rem;
}

/* Recent Highlights list */
.highlights-list {
    list-style: none;
}

.highlights-list li {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.highlights-list li:last-child {
    border-bottom: none;
}

.hl-date {
    font-weight: 600;
    color: #0066cc;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.hl-text {
    color: #333;
    font-size: 0.95rem;
}

.view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}


/* === PUBLICATIONS PAGE === */
/* Individual publication item */
.pub-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.pub-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pub-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.pub-title:hover {
    color: #0066cc;
}

.pub-authors {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.pub-authors strong {
    color: #1a1a1a; /* Your name stands out */
}

.pub-venue {
    font-size: 0.95rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pub-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pub-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.pub-link:hover {
    text-decoration: underline;
}


/* === PORTFOLIO PAGE === */
/* Grid of project cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Individual project card */
.project-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.project-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.project-content {
    padding: 1.25rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.project-tag {
    background: #f0f7ff;
    color: #0066cc;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.project-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}


/* === WRITING/BLOG PAGE === */
.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f5f5f5;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.blog-post-title:hover {
    color: #0066cc;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-excerpt {
    color: #333;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.read-more {
    color: #0066cc;
    font-weight: 500;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}


/* === TEACHING PAGE === */
.teaching-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.teaching-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.teaching-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.teaching-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.teaching-role {
    font-size: 0.95rem;
    color: #666;
}

.teaching-semester {
    background: #f0f7ff;
    color: #0066cc;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.teaching-description {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}


/* === FOOTER === */
footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}


/* === RESPONSIVE DESIGN === */
/* Tablet and below */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    /* Stack photo and text on mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-photo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    /* Stack highlights date and text */
    .highlights-list li {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hl-date {
        min-width: auto;
    }
    
    /* Single column for portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack teaching header on mobile */
    .teaching-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}
