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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    background: #0f172a;
    color: #e2e8f0;
    transition: 0.3s;
}

/* ================= SECTIONS ================= */

.section {
    width: 100%;
    padding: 10vh 8vw;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #22c55e;
}

.section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #22c55e;
}

.section p {
    line-height: 1.8;
}

/* ================= SIDEBAR ================= */

.side-nav {
    position: fixed;
    right: 2vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
}

.side-nav a,
.side-nav button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.side-nav a:hover,
.side-nav button:hover {
    background: #22c55e;
    color: black;
}

.side-nav a.active {
    background: #38bdf8;
    color: white;
}

/* ================= HERO ================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;   /* important */
    gap: 6vw;
    position: relative;
    z-index: 1;
    padding-left: 6vw;   /* pushes image slightly right */
    padding-right: 8vw;
}
.hero-text {
    flex: 1;
    min-width: 0;
    text-align: left;   /* NOT center */
}

.hero-text h1 {
    font-size: 46px;
}

.hero-text h2 {
    margin-top: 15px;
    color: #22c55e;
}

.hero-text p {
    margin-top: 20px;
}

/* Green Shape (Desktop Only) */

.green-shape {
    position: absolute;
    left: 0;
    top: 0;
    width: 22%;
    height: 100%;
    background: #22c55e;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    z-index: 0;
}

/* Image */

.image-box {
    background: #111827;
    padding: 20px;
    border-radius: 20px;
    width: 350px;
    height: 420px;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Buttons */

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;   /* align with text */
}

.btn {
    padding: 12px 30px;
    background: #22c55e;
    color: black;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    padding: 12px 30px;
    border: 2px solid #22c55e;
    color: #22c55e;
    border-radius: 30px;
    text-decoration: none;
}

.highlight {
    color: #22c55e;
}

/* ================= CARDS ================= */

.project-card,
.publication,
.course-list li,
.achievement-list li {
    background: #1e293b;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

/* ================= SKILLS ================= */

.skill {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: #22c55e;
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* ================= RESEARCH TAGS ================= */

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.research-tags span {
    padding: 8px 18px;
    background: #1e293b;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

.research-tags span.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MODAL ================= */

.cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.cv-content {
    background: #0f172a;
    width: 85%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ================= CONTACT ================= */

.contact-minimal {
    font-size: 16px;
}

.contact-minimal a {
    text-decoration: none;
    color: #38bdf8;
    font-weight: 500;
}

/* ================= LIGHT MODE ================= */

.light-mode {
    background: #ffffff;
    color: #000000;
}

.light-mode .project-card,
.light-mode .publication,
.light-mode .course-list li,
.light-mode .achievement-list li,
.light-mode .progress-bar,
.light-mode .research-tags span {
    background: #f3f4f6;
    color: #000000;
}

.light-mode .cv-content {
    background: #ffffff;
}

.light-mode .contact-minimal a {
    color: #2563eb;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .image-box {
        width: 260px;
        height: 320px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .green-shape {
        display: none;
    }

    .side-nav {
        right: 10px;
    }
}
