:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --dim: #888888;
    --accent: #10b981;
    --container-width: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 4%; }

/* Proper Text Alignment (No messy gaps) */
p, li { text-align: left; line-height: 1.6; }

/* Navigation */
nav { 
    padding: 30px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100; 
    background: rgba(10, 10, 10, 0.9); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-top: 80px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -3px; font-weight: 700; margin-bottom: 40px; }
.sub-heading { color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 3px; margin-bottom: 20px; display: block; font-weight: 700; }
.sub-heading.centered { text-align: center; width: 100%; }
.hero-image-fixed img { width: 420px; height: 520px; object-fit: cover; border-radius: 24px; filter: none; }

/* Grid Layouts */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 120px 0; border-top: 1px solid #222; }
.skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.category-label { font-size: 0.7rem; color: var(--accent); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: block; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.work-item { background: #111; border: 1px solid #222; overflow: hidden; display: flex; flex-direction: column; }
.work-image img { width: 100%; height: 350px; object-fit: cover; }
.work-info { padding: 35px; }

/* Certifications Section */
#certifications { margin-top: 100px; padding-top: 80px; border-top: 1px solid #222; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cert-card { background: #111; border: 1px solid #222; padding: 40px; text-align: center; border-radius: 12px; }
.cert-card-image img { height: 100px; object-fit: contain; }

/* CENTERED CONTACT SECTION - "JUST RIGHT" SIZE */
#contact { padding: 120px 0; border-top: 1px solid #222; text-align: center; }
.contact-flex { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
    margin-top: 40px; 
    align-items: center; 
}
.contact-item a { 
    font-size: clamp(1.2rem, 3vw, 2.2rem); 
    color: var(--text); 
    text-decoration: none; 
    font-weight: 700; 
    letter-spacing: -1px; 
    transition: 0.3s; 
}
.contact-item a:hover { color: var(--accent); }

/* Footer */
.footer-center { text-align: center; border-top: 1px solid #222; padding: 60px 0; }
.footer-center h3 { font-size: 0.9rem; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
    .hero, .about-grid, .work-grid, .cert-grid { grid-template-columns: 1fr; }
    .hero { flex-direction: column-reverse; height: auto; padding-top: 120px; }
    .contact-item a { font-size: 1.4rem; }
}