/* ---------- Global Styles ---------- */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* Ensure padding/borders don't push layout out of viewport */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ---------- Navbar ---------- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    background-color: #000;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

/* Hide left logo and center links */
.logo { display: none; }

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1e90ff; /* subtle accent */
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ---------- Sections ---------- */
section {
    padding: 6rem 2rem 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

/* ---------- Home ---------- */
#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #fff;
}

#home h1 {
    font-size: 3rem;
    margin: 0.5rem 0;
}

#home h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #ccc;
}

#home p {
    max-width: 720px;
    margin: 0 auto;
    color: #ccc;
    font-size: 1.05rem;
}

/* Larger hero sizes on wide screens */
@media (min-width: 1024px) {
    .profile-img { width: 260px; height: 260px; }
    #home h1 { font-size: 3.5rem; }
    #home h2 { font-size: 2rem; }
}

/* ---------- About Me ---------- */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

/* ---------- Experience & Projects ---------- */
.experience-item, .project-item {
    margin-bottom: 2rem;
}

.experience-item h3, .project-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.experience-item span {
    font-size: 0.9rem;
    color: #ccc;
}

.experience-item ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.experience-item ul li, .project-item p {
    margin-bottom: 0.3rem;
    color: #ccc;
}

.project-item h3 a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.project-item h3 a:hover {
    border-bottom: 1px solid #fff;
}

/* ---------- Contact ---------- */
#contact ul {
    list-style: none;
    padding-left: 0;
}

#contact ul li {
    margin-bottom: 0.5rem;
}

#contact ul li a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

#contact ul li a:hover {
    border-bottom: 1px solid #fff;
}

/* ---------- Mobile Slide-out Menu ---------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -280px; /* Slide out from right */
        width: 280px;
        height: 100vh;
        background-color: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 2rem 2rem 2rem;
        border-left: 1px solid #222;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0 0 1.5rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 0.75rem 0;
        border-bottom: 1px solid #222;
        transition: all 0.3s ease;
        width: 100%;
        display: block;
        text-align: left;
    }

    .nav-links a:hover {
        color: #1e90ff;
        border-bottom: 1px solid #1e90ff;
        transform: translateX(5px);
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 2.7rem;
        cursor: pointer;
        transition: transform 0.3s ease;
        line-height: 1;
        height: 3.2rem;
        width: 3.2rem;
        padding: 0;
    }

    .hamburger:hover {
        transform: scale(1.1);
    }

    .hamburger.active {
        transform: rotate(90deg);
    }
}
