/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #fdfdfb;
    color: #2c3e50;
    line-height: 1.6;
}

header {
    background: linear-gradient(rgba(20, 30, 20, 0.8), rgba(20, 30, 20, 0.8)), url('bg.jfif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

header h1 { font-size: 3rem; letter-spacing: 2px; }
header h3 { color: #d4af37; font-weight: 300; margin: 10px 0; }
header p { max-width: 700px; margin: 20px auto 0; font-size: 1.1rem; opacity: 0.9; }

section { max-width: 1000px; margin: auto; padding: 50px 20px; }

h2 {
    color: #1b4d3e;
    border-left: 4px solid #1b4d3e;
    padding-left: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* CARD SYSTEM */
.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* BACKGROUND CARDS */
.about-card { background: linear-gradient(rgba(27, 77, 62, 0.9), rgba(27, 77, 62, 0.9)), url('me.jfif'); color: white; border: none; }
.education-card { background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('edu.jfif'); color: white; border: none; }
.experience-card { background: linear-gradient(rgba(20, 30, 20, 0.9), rgba(20, 30, 20, 0.9)), url('bgtuku.jfif'); color: white; border: none; }
.ap-card { background: linear-gradient(rgba(60, 50, 45, 0.9), rgba(60, 50, 45, 0.9)), url('apr.jfif'); color: white; border: none; }

.card h3 { color: #d4af37; margin-bottom: 10px; }
.coursework { margin-top: 20px; font-size: 0.85rem; opacity: 0.8; font-style: italic; }

/* GRID SYSTEMS */
.exp-grid, .projects, .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.exp-grid h4 { color: #d4af37; margin-top: 15px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); }
ul { list-style-position: inside; margin-top: 10px; }
li { margin-bottom: 5px; }

/* BUTTONS */
.btn-github, .btn-cert {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-github { background: #d4af37; color: #1b4d3e; }
.btn-cert { border: 1px solid #1b4d3e; color: #1b4d3e; }
.btn-cert:hover { background: #1b4d3e; color: white; }

/* TOOLS */
.tool-card { border-top: 4px solid #d4af37; }
.tool-card h3 { color: #1b4d3e; }

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.modal-overlay:target { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 10px; border-radius: 5px; position: relative; max-width: 90%; }
.modal-content img { max-width: 100%; max-height: 80vh; }
.modal-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2rem; text-decoration: none; }
.modal-close-area { position: absolute; width: 100%; height: 100%; cursor: default; }

/* FOOTER */
footer { background: #151a15; color: white; text-align: center; padding: 50px 20px; }
.footer-links { margin-top: 20px; }
.footer-links a { color: #d4af37; margin: 0 10px; text-decoration: none; }

@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    .card { padding: 20px; }
}
