/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Segoe UI", "Fira Code", monospace;
}

/* ===== COLOR THEME ===== */
:root {
    --bg-main: #0d1117;
    --bg-secondary: #161b22;
    --accent: #02b786;
    --accent-glow: rgba(2, 183, 134, 0.4);
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --card-border: #30363d;
}

/* ===== BODY ===== */
body {
    background: linear-gradient(180deg, #0d1117, #0b0f14);
    color: var(--text-main);
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0;
}

/* ===== HEADER ===== */
header {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--accent);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* ===== SECTION TITLES ===== */
section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* ===== ABOUT / SKILLS TEXT ===== */
section p, li {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== SKILLS LIST ===== */
#skills ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

#skills li {
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: 0.3s;
}

#skills li:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* ===== PROJECT CARDS ===== */
.project {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin: 25px 0;
    padding: 20px;
    transition: 0.3s;
}

.project a {
    color: #02b786;
}

.project:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-5px);
}

.project-description {
    flex: 1 1 55%;
}

.project-description h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.project-image {
    flex: 1 1 35%;
    text-align: center;
}

.project-image img {
    max-width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--card-border);
}

.project-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ===== ENLARGED IMAGE OVERLAY ===== */
.enlarged-image-container {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.enlarged-image {
    max-width: 80%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 0 25px var(--accent-glow);
}

#image-filename {
    margin-top: 10px;
    color: var(--text-muted);
}

/* ===== CONTACT ===== */
#contact a {
    color: var(--accent);
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .project {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        gap: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }
}
