:root {
    --primary: #222831;
    --secondary: #393e46;
    --accent: #00adb5; 
    --accent2: #007b83; 
    --bg: #181920;
    --card: #23272f;
    --text: #eeeeee;
    --white: #fff;
    --shadow: rgba(0, 173, 181, 0.08); /* reduced */
    --radius: 14px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* HEADER + NAV */
header {
    background: linear-gradient(90deg, var(--primary) 70%, var(--accent2) 100%);
    color: var(--white);
    padding: 28px 0;
    box-shadow: 0 2px 8px var(--shadow); /* softer */
    border-bottom: 1px solid var(--accent2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

nav h1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 1px 1px 4px var(--accent2); /* softer */
    letter-spacing: 2px;
    transition: var(--transition);
}

nav h1:hover {
    transform: scale(1.05);
    color: var(--accent2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent2);
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    bottom: -5px;
}

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

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

/* SECTION STYLES */
section {
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px 30px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px var(--shadow); /* softer */
    border: 1px solid var(--secondary);
    transition: var(--transition);
}

section:hover {
    transform: scale(1.01);
}

/* HEADINGS */
h2 {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    margin-top: 10px;
}

/* ABOUT */
#about p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* DOWNLOAD BUTTON */
.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px var(--shadow); /* softer */
    transition: var(--transition);
}

.download-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* PROJECTS */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 20px;
}

.project {
    flex: 1 1 calc(45% - 24px);
    background: var(--secondary);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--accent2);
    box-shadow: 0 2px 8px var(--shadow); /* softer */
    transition: var(--transition);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px var(--accent2); /* softer hover */
}

.project h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--accent);
}

.project p {
    font-size: 1rem;
    color: var(--text);
}

/* SKILLS (Accordion) */
.skill-category {
    border: 1px solid var(--accent2);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary);
    margin-bottom: 18px;
    transition: var(--transition);
}

.category-title {
    margin: 0;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--secondary), var(--accent2));
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.category-title::after {
    content: "▸";
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.skill-category.active .category-title::after {
    transform: rotate(90deg);
}

.skill-list {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0 20px;
    background: var(--card);
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.skill-category.active .skill-list {
    max-height: 500px;
    padding: 15px 20px;
}

.skill-list li {
    padding: 8px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li:hover {
    color: var(--accent);
}

/* CONTACT FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

form input, form textarea {
    padding: 14px;
    border: 1.5px solid var(--accent2);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--primary);
    color: var(--text);
    transition: var(--transition);
}

form input:focus, form textarea:focus {
    border: 2px solid var(--accent);
    box-shadow: 0 1px 6px var(--accent2); /* softer */
    outline: none;
}

form button {
    padding: 14px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

form button:hover {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scale(1.05);
}

#formMessage {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 24px 0;
    background: linear-gradient(90deg, var(--primary) 70%, var(--accent2) 100%);
    color: var(--white);
    margin-top: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* RESPONSIVE */
@media (max-width: 800px) {
    nav {
        flex-direction: column;
        gap: 16px;
    }
    .project-list {
        flex-direction: column;
    }
    .project {
        flex: 1 1 100%;
    }
    section {
        margin: 25px 10px;
        padding: 25px;
    }
    nav h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}
