/* --- GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #121212; color: #e0e0e0; line-height: 1.6; }

/* --- NAVIGATION --- */
.top-nav {
    background-color: #1e1e1e;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: #aaa; text-decoration: none; font-weight: 500; font-size: 1.1rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #0078d7; }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: white; }

/* --- HEADER / HERO --- */
header {
    background: #1e1e1e;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 3px solid #0078d7;
}
.mini-header { padding: 40px 20px; border-bottom: 1px solid #333; }
h1 { font-size: 2.5rem; margin-bottom: 10px; }
.content p { font-size: 1.2rem; color: #aaa; }

/* --- CONTAINERS & SECTIONS --- */
.about-container { max-width: 800px; margin: 40px auto; padding: 20px; }
#projects { max-width: 1000px; margin: 40px auto; padding: 20px; }

/* --- PROFILE & BIO --- */
.profile-section { text-align: center; margin-bottom: 40px; }
.profile-pic { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #0078d7; margin-bottom: 15px; }
.subtitle { color: #aaa; font-size: 1.1rem; }

.bio-section { background: #1e1e1e; padding: 30px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #333; }
.bio-section h2 { margin-bottom: 20px; color: #fff; border-bottom: 2px solid #0078d7; display: inline-block; }
.bio-section p { margin-bottom: 15px; }

/* --- SKILLS --- */
.skill-category { margin-bottom: 20px; }
.skill-category h3 { font-size: 1.1rem; color: #0078d7; margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { background: #252525; padding: 5px 12px; border-radius: 15px; font-size: 0.9rem; border: 1px solid #444; }

/* --- PROJECT CARDS --- */
.project-card { background: #1e1e1e; border: 1px solid #333; margin-bottom: 40px; display: flex; border-radius: 8px; overflow: hidden; }
.text-side { flex: 1; padding: 25px; }
.image-side { flex: 1; min-height: 250px; background: #000; }
.image-side img { width: 100%; height: 100%; object-fit: cover; }
.badge { background: #0078d7; color: white; display: inline-block; padding: 4px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 4px; margin-bottom: 10px; }
.tags { margin: 10px 0; }
.tag { background: #333; color: #0078d7; padding: 3px 8px; font-size: 0.8rem; border-radius: 4px; margin-right: 5px; font-weight: bold; }
.tech-list { margin: 15px 0 15px 20px; font-size: 0.95rem; color: #ccc; }
.small-link { color: #0078d7; text-decoration: none; display: block; margin-top: 10px; font-weight: bold; }
.small-link:hover { text-decoration: underline; }

/* --- CONTACT PAGE --- */
.resume-section-centered { text-align: center; margin-bottom: 40px; padding: 30px; background: #1e1e1e; border-radius: 8px; border: 1px solid #333; }
.button { background: #0078d7; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; display: inline-block; }
.button:hover { background: #006bbd; }
.big-btn { padding: 15px 30px; font-size: 1.1rem; }

.contact-grid { display: grid; gap: 15px; }
.contact-card { background: #1e1e1e; padding: 20px; border-radius: 8px; text-decoration: none; color: white; display: flex; align-items: center; gap: 15px; border: 1px solid #333; transition: 0.3s; }
.contact-card:hover { border-color: #0078d7; transform: translateX(5px); }
.contact-card i { font-size: 1.5rem; color: #0078d7; width: 30px; text-align: center; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    /* Animation: Turn Hamburger to X */
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px; /* Below the nav bar */
        gap: 0;
        flex-direction: column;
        background-color: #1e1e1e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid #333;
    }

    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    
    .project-card { flex-direction: column; }
    .image-side { min-height: 200px; }
}
