/* ============================================= */
/* styles.css – FIXED & IMPROVED VERSION         */
/* 100% centered website + guaranteed blue banner*/
/* ============================================= */

:root {
    --primary: #13294B;      /* Solid academic blue banner */
    --accent: #10b981;       /* Muted emerald green */
    --text: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --footer-bg: #475569;    /* Medium grey footer */
    --shadow: 0 10px 15px -3px rgb(19 41 75);
}

/* Reset & Global Centering Fix */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* NAVBAR – FULL-WIDTH SOLID BLUE BANNER (guaranteed visible) */
.navbar {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 12px -2px rgb(19 41 75 / 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.6rem;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a6b 100%);
    color: white;
    padding: 130px 0 90px;
    width: 100%;
}

.hero-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 520px;
}

.hero-name {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #0f9c6e;
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.15);
    box-shadow: var(--shadow);
}

/* MAIN CONTENT – STRICTLY CENTERED & REASONABLE WIDTH */
.section {
    padding: 100px 0;
    width: 100%;
}

.section-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.bg-light {
    background-color: var(--bg-light);
}

/* All other sections (skills, education, etc.) remain unchanged from previous version */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card, .education-item, .experience-item, .portfolio-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* (rest of the section styles are identical to the previous version for brevity) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.contact-grid {
    max-width: 700px;
    margin: 0 auto;
}

/* FOOTER – MEDIUM GREY */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    width: 100%;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 0 60px; }
}

/* Accessibility */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}