/* === DESIGN SYSTEM: SEMANTIC TOKENS === */
:root {
    --color-primary: #075542; /* Deep, professional green */
    --color-primary-dark: #053b2e;
    --color-accent: #D4AF37; /* Sophisticated gold */
    --color-accent-dark: #b39125;
    --color-background-light: #F4F6F8;
    --color-background-white: #FFFFFF;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --color-success: #28a745;

    /* Typography */
    --font-family-heading: 'Teko', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --font-size-base: 17px;
    --font-weight-normal: 400;
    --font-weight-bold: 700;

    /* Spacing & Sizing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-width: 1140px;
    --header-height: 80px;
    
    /* Effects */
    --border-radius: 5px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce-arrow { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } 60% { transform: translateY(-4px); } }
@keyframes bounce-arrow-up { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(8px); } 60% { transform: translateY(4px); } }

/* === GLOBAL STYLES & RESETS === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background-white);
    padding-top: var(--header-height);
}
main { animation: fadeIn 0.8s ease-out; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.75rem; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--color-accent-dark); }
p { margin-bottom: var(--spacing-md); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--spacing-lg); }
section { padding: var(--spacing-xl) 0; }
.page-main { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-xl); }
.page-title, .section-title { text-align: center; margin-bottom: var(--spacing-xl); animation: fadeInUp 0.8s ease-out; }
.page-subtitle { text-align: center; font-size: 1.2rem; color: var(--color-text-muted); margin-top: -var(--spacing-lg); margin-bottom: var(--spacing-xl); }

/* === REUSABLE COMPONENTS === */
.btn { display: inline-block; padding: 12px 28px; font-family: var(--font-family-heading); font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; border: 2px solid transparent; border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition-speed); text-align: center; }
.btn-primary { background-color: var(--color-primary); color: var(--color-text-light); }
.btn-primary:hover { background-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-accent { background-color: var(--color-accent); color: var(--color-text-dark); }
.btn-accent:hover { background-color: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-secondary { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-primary); color: var(--color-text-light); }
.btn-icon { border-radius: 50%; width: 50px; height: 50px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.btn-link { font-weight: var(--font-weight-bold); color: var(--color-primary); margin-top: var(--spacing-md); display: inline-block; }
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); animation: fadeIn 0.3s; }
.modal-content { background-color: var(--color-background-white); margin: 10% auto; padding: 30px; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: fadeInUp 0.4s; max-width: 700px; width: 85%; position: relative; }
.close { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.scroll-btn { position: fixed; bottom: 30px; right: 30px; z-index: 999; background-color: var(--color-accent); color: var(--color-text-dark); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--box-shadow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; }
.scroll-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-btn:hover { background-color: var(--color-primary); color: var(--color-text-light); }
.scroll-btn .fa-arrow-down { animation: bounce-arrow 2s infinite; }
.scroll-btn .fa-arrow-up { animation: bounce-arrow-up 2s infinite; }

/* === LAYOUT: HEADER & FOOTER === */
header { background-color: var(--color-background-white); box-shadow: var(--box-shadow); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); }
header nav.container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo { font-family: var(--font-family-heading); font-size: 2rem; color: var(--color-primary); font-weight: 700; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: var(--spacing-lg); }
.nav-links a { color: var(--color-text-dark); font-weight: var(--font-weight-bold); text-transform: uppercase; font-size: 1rem; padding-bottom: var(--spacing-sm); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: width var(--transition-speed); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-primary); }
.hamburger { display: none; font-size: 1.5rem; background: none; border: none; color: var(--color-primary); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; align-items: center; background-color: var(--color-background-white); position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height)); padding: var(--spacing-lg) 0; border-top: 1px solid var(--color-border); transform: translateX(-100%); transition: transform 0.4s ease-in-out; }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a { color: var(--color-primary); font-size: 1.2rem; margin: var(--spacing-md) 0; text-transform: uppercase; font-weight: var(--font-weight-bold); }
footer { background-color: var(--color-primary); color: var(--color-text-light); padding: var(--spacing-lg) 0; text-align: center; }
.social-links { margin-bottom: var(--spacing-md); }
.social-links a { color: var(--color-text-light); font-size: 1.5rem; margin: 0 var(--spacing-md); }
footer p { margin-bottom: 0; font-size: 0.9rem; opacity: 0.8; }

/* --- Home: Hero Carousel --- */
#hero-carousel { padding: 0; position: relative; height: calc(100vh - var(--header-height)); min-height: 500px; width: 100%; overflow: hidden; margin-top: -var(--spacing-xl); }
.carousel-inner { display: flex; height: 100%; transition: transform 0.8s ease-in-out; }
.carousel-item { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-text-light); flex-shrink: 0; background-color: var(--color-primary-dark); }
.carousel-background-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(7, 85, 66, 0.7), rgba(5, 59, 46, 0.9)); z-index: 1; }
.hero-overlay.dark { background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); }
.hero-content { position: relative; z-index: 2; padding: var(--spacing-lg); max-width: 800px; }
.hero-content h1, .hero-content p { animation: fadeInUp 1s ease-out; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); color: white; border: none; padding: var(--spacing-md); cursor: pointer; font-size: 2rem; z-index: 5; transition: background var(--transition-speed); border-radius: var(--border-radius); }
.carousel-control:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-control.prev { left: var(--spacing-md); }
.carousel-control.next { right: var(--spacing-md); }
.carousel-dots { position: absolute; bottom: var(--spacing-lg); left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: var(--spacing-sm); }
.dot { height: 12px; width: 12px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: all var(--transition-speed); }
.dot.active { background-color: var(--color-accent); transform: scale(1.2); }

/* --- Home: About & Issues --- */
#about { display: flex; align-items: center; gap: var(--spacing-xl); }
.about-image { flex: 1; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.about-content { flex: 1.2; }
#issues { background-color: var(--color-background-light); }
.issues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); }
.issue-card { background-color: var(--color-background-white); padding: var(--spacing-lg); border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; transition: all var(--transition-speed); }
.issue-card:hover { transform: translateY(-10px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.issue-card i { font-size: 2.5rem; color: var(--color-accent-gold); margin-bottom: var(--spacing-md); }
.issue-card h3 { margin-bottom: var(--spacing-sm); }
#cta { text-align: center; }
.cta-buttons { margin-top: var(--spacing-lg); }
.cta-buttons .btn { margin: 0 var(--spacing-sm); }

/* --- About Page --- */
.about-page-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--spacing-xl); align-items: center; margin-bottom: var(--spacing-xl); }
.elevator-pitch-section { background-color: var(--color-background-light); padding: var(--spacing-xl) 0; text-align: center; }
.elevator-pitch-section blockquote { border: none; max-width: 800px; margin: 0 auto; }
.elevator-pitch-section p { font-size: 1.5rem; font-style: italic; color: var(--color-text-dark); }
.elevator-pitch-section cite { display: block; margin-top: var(--spacing-md); color: var(--color-primary); font-style: normal; font-family: var(--font-family-heading); }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-lg); }
.expertise-card { text-align: center; padding: var(--spacing-lg); border: 1px solid var(--color-border); border-radius: var(--border-radius); transition: all var(--transition-speed); }
.expertise-card:hover { border-color: var(--color-accent); transform: translateY(-5px); box-shadow: var(--box-shadow); }
.expertise-card i { font-size: 2.5rem; color: var(--color-accent); margin-bottom: var(--spacing-md); }

/* --- Portfolio Page --- */
.portfolio-header, .experience-summary { text-align: center; }
.portfolio-section { border-bottom: 1px solid var(--color-border); }
.portfolio-section:last-of-type { border-bottom: none; }
.key-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-lg); text-align: center; padding-bottom: var(--spacing-xl); border-bottom: 1px solid var(--color-border); }
.highlight-card i { font-size: 2.5rem; color: var(--color-accent); margin-bottom: var(--spacing-md); }
.experience-summary { max-width: 800px; margin: -2rem auto var(--spacing-xl) auto; font-size: 1.1rem; }
.projects-grid-portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-lg); }
.project-card { background: var(--color-background-white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition-speed); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-content { padding: var(--spacing-lg); flex-grow: 1; display: flex; flex-direction: column; }
.project-status { display: inline-block; width: fit-content; padding: var(--spacing-xs) var(--spacing-md); font-size: 0.8rem; font-weight: var(--font-weight-bold); color: var(--color-text-light); border-radius: 50px; text-transform: uppercase; margin-bottom: var(--spacing-md); }
.project-status.completed { background-color: var(--color-success); }
.project-status.ongoing { background-color: var(--color-accent); color: var(--color-text-dark); }
.academic-journey { background-color: var(--color-background-light); padding: var(--spacing-xl); border-radius: var(--border-radius); margin-top: var(--spacing-xl); }
.timeline { list-style: none; position: relative; max-width: 800px; margin: 0 auto; }
.timeline:before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background-color: var(--color-border); }
.timeline li { margin-bottom: 50px; position: relative; padding-left: 70px; }
.timeline-badge { position: absolute; top: 0; left: 15px; width: 50px; height: 50px; background-color: var(--color-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.timeline-panel { background: var(--color-background-white); padding: var(--spacing-lg); border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.constituency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
.constituency-work { background: var(--color-background-light); padding: var(--spacing-lg); border-radius: var(--border-radius); }
.constituency-work h4 { display: flex; align-items: center; gap: var(--spacing-sm); margin-bottom: var(--spacing-md); }

/* --- Blog Page --- */
.filter-controls { text-align: center; margin-bottom: var(--spacing-xl); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--spacing-sm); }
.filter-btn { background-color: transparent; border: 1px solid var(--color-border); border-radius: 50px; padding: 10px 22px; cursor: pointer; font-weight: var(--font-weight-bold); transition: all var(--transition-speed); }
.filter-btn:hover { background-color: var(--color-background-light); border-color: var(--color-primary); }
.filter-btn.active { background-color: var(--color-primary); color: var(--color-text-light); border-color: var(--color-primary); }
.blog-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spacing-lg); }
.blog-post { background: var(--color-background-white); border-radius: var(--border-radius); box-shadow: var(--box-shadow); overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.blog-post:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.blog-post.featured { grid-column: span 12; flex-direction: row; align-items: center; }
.blog-post.featured .post-image-container { flex: 1 1 55%; }
.blog-post.featured .post-content { flex: 1 1 45%; padding: var(--spacing-xl); }
.blog-post.featured h2 { font-size: 2.5rem; }
.blog-grid .blog-post:not(.featured) { grid-column: span 6; }
.post-image-container { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.post-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-post:hover .post-image-container img { transform: scale(1.05); }
.post-content { padding: var(--spacing-lg); flex-grow: 1; display: flex; flex-direction: column; }
.post-category { background-color: var(--color-accent); color: var(--color-text-dark); padding: var(--spacing-xs) var(--spacing-sm); font-size: 0.8rem; border-radius: var(--border-radius); text-transform: uppercase; margin-bottom: var(--spacing-md); align-self: flex-start; }
.post-meta { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: var(--spacing-md); }
.post-content p:not(.post-meta) { flex-grow: 1; }
.read-more-btn { font-weight: var(--font-weight-bold); color: var(--color-primary); align-self: flex-start; }
#modal-body-content img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--border-radius); margin-bottom: var(--spacing-md); }
#modal-body-content h2, #modal-body-content .post-meta { margin-bottom: var(--spacing-md); }

/* --- Contact Page --- */
.contact-layout { display: grid; gap: var(--spacing-xl); grid-template-columns: 1.5fr 1fr; background-color: var(--color-background-light); padding: var(--spacing-xl); border-radius: var(--border-radius); }
.form-group { margin-bottom: var(--spacing-md); }
.form-group label { display: block; margin-bottom: var(--spacing-sm); font-weight: var(--font-weight-bold); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--border-radius); font-family: var(--font-family-body); font-size: 1rem; }
.social-links-contact { display: flex; flex-direction: column; gap: var(--spacing-md); }
.social-links-contact a { color: var(--color-text-dark); font-size: 1.1rem; }
.social-links-contact i { color: var(--color-primary); margin-right: var(--spacing-sm); width: 20px; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; }
    .issues-grid, .contact-layout, .constituency-grid { grid-template-columns: 1fr; }
    .blog-post.featured { flex-direction: column; }
    .blog-grid .blog-post:not(.featured) { grid-column: span 12; }
}

@media (max-width: 768px) {
    .nav-links, header .btn-icon { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: flex; }
    h1 { font-size: 2.8rem; } h2 { font-size: 2rem; }
    #home-about, .about-page-layout { flex-direction: column; text-align: center; }
    .hero-content p { display: none; }
    /* --- Hide Carousel on Mobile --- */
    #hero-carousel {
        display: none;
    }
    .cta-buttons { flex-direction: column; }
    .modal-content { width: 90%; margin-top: 20%; }
}

