* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Poppins", sans-serif;
}

body {
    background-color: #F4F9FF;
    color: #1C1C1C;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* DARK THEME OVERRIDES */
body.dark-theme {
    background-color: #0f1b33;
    color: #e8efff;
}

body.dark-theme h1,
body.dark-theme h3,
body.dark-theme h5,
body.dark-theme h6 {
    color: #e8efff;
}

body.dark-theme header::after {
    background: rgba(20, 35, 70, 0.45);
}

body.dark-theme section,
body.dark-theme .info-box {
    background: #182544;
    border: 1px solid #22355c;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

body.dark-theme #toggle-theme {
    background-color: #2f5fa4;
    border-color: #8fb4ff;
    color: white;
}

body.dark-theme footer {
    background: #1e2e4b;
    border-top: 2px solid #20345c;
    color: #dce6ff;
}

body.dark-theme #technical-skills {
    color: #ffffff;
}

/* HEADER / BANNER */
header {
    width: 100%;
    height: 350px;
    background: url('assets/images/header-background.jpg') center/cover no-repeat;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(180, 210, 245, 0.25);
    backdrop-filter: blur(1px);
}

/* PROFILE SECTION */
#profile-section {
    width: 85%;
    max-width: 850px;
    margin: -110px auto 0 auto;
    position: relative;
}

#profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    position: relative;
    z-index: 10;
    margin-left: 15px;
}

#profile-text {
    margin-top: 10px;
    padding-left: 15px;
}

#profile-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #163A5F;
}

#profile-text h5 {
    font-size: 1rem;
    font-weight: 500;
    color: #3C5F85;
    margin-top: 3px;
}

#profile-text h6 {
    font-size: 0.9rem;
    font-weight: 300;
    color: #5E7FA5;
    margin-top: 5px;
}

body.dark-theme #profile-text h1 { color: #dce6ff; }
body.dark-theme #profile-text h5 { color: #b8c8e8; }
body.dark-theme #profile-text h6 { color: #90a4c8; }

/* SWITCH THEME BUTTON */
#toggle-theme {
    position: absolute;
    top: 94px;
    right: 30px;
    padding: 10px 22px;
    background-color: #A7CFF7;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    z-index: 20;
}

#toggle-theme:hover {
    background-color: #8FBBE7;
}

/* MAIN CONTENT */
main {
    width: 85%;
    max-width: 850px;
    margin: 25px auto;
}

section {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 20px;
    box-shadow: 0 3px 15px rgba(150, 180, 210, 0.25);
    border: 1px solid #dfe7f3;
    transition: background 0.3s, box-shadow 0.3s, border 0.3s;
}

section h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1F4C73;
    margin-bottom: 12px;
}

section h4 {
    color: #1F4C73;
    margin-bottom: 12px;
}

body.dark-theme section h3 { color: #cfe0ff; }

ul, ol { margin-left: 20px; }
li { margin-bottom: 6px; }

/* NAVIGATION TABS */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-bottom: 0;
    border-bottom: 1px solid #d2e3f5;
}

.nav-tabs button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 0;
    color: #4d6a8a;
    position: relative;
    transition: color 0.25s ease;
}

.nav-tabs button:hover {
    color: #1b4d80;
    background-color: rgba(29, 161, 242, 0.1);
    border-radius: 6px;
    transition: background 0.25s, color 0.25s;
}

.nav-tabs .active {
    color: #163A5F;
}

.nav-tabs .active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #1DA1F2;
    border-radius: 3px 3px 0 0;
}

body.dark-theme .nav-tabs {
    border-bottom: 1px solid #2e3f62;
}

body.dark-theme .nav-tabs button {
    color: #b6c9ff;
}

body.dark-theme .nav-tabs button:hover {
    color: #e5eeff;
    background-color: rgba(74, 141, 255, 0.15);
}

body.dark-theme .nav-tabs .active {
    color: #ffffff;
}

body.dark-theme .nav-tabs .active::after {
    background: #4a8dff;
}

/* SKILLS LIST */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 8px 0 0 0;
    margin: 8px 0 0 0;
}

.skills-list li {
    background-color: #E3F0FF;
    border: 1px solid #B8D4F2;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #163A5F;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.skills-list li:hover {
    background-color: #B8D4F2;
    color: #1DA1F2;
}

body.dark-theme .skills-list li {
    background-color: #182544;
    color: #cfe0ff;
    border: 1px solid #22355c;
}

body.dark-theme .skills-list li:hover {
    background-color: #22355c;
    color: #1DA1F2;
    border-color: #4a8dff;
}

/* PROJECTS */
.project h4 {
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
}

.project h4:hover {
    background-color: #E3F0FF;
    color: #1DA1F2;
    transform: translateY(-2px);
}

body.dark-theme .project h4 {
    color: #ffffff;
}

body.dark-theme .project h4:hover {
    background-color: #22355c;
    color: #a3baff;
}

.project .details {
    max-height: 0;
    overflow: hidden;
    margin-left: 20px;
    list-style-type: disc;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.project .details.show {
    max-height: 1000px;
    padding-top: 6px;
    padding-bottom: 6px;
}

body.dark-theme .project .details li,
body.dark-theme .project .details b {
    color: #ffffff;
}

/* PROJECT BUTTONS */

#project-link {
    background-color: #E3F0FF;
    border: 1px solid #B8D4F2;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #163A5F;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

#project-link:hover {
    background-color: #B8D4F2;
    color: #1DA1F2;
}

body.dark-theme #project-link {
    background-color: #182544;
    color: #cfe0ff;
    border: 1px solid #22355c;
}

body.dark-theme #project-link:hover {
    background-color: #22355c;
    color: #1DA1F2;
    border-color: #4a8dff;
}

/* ACHIEVEMENTS */
.achievement h4 {
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    padding: 6px 10px;
    border-radius: 6px;
}

.achievement h4:hover {
    background-color: #E3F0FF;
    color: #1DA1F2;
    transform: translateY(-2px);
}

body.dark-theme .achievement h4 {
    color: #ffffff;
}

body.dark-theme .achievement h4:hover {
    background-color: #22355c;
    color: #a3baff;
}

.details {
    max-height: 0;
    overflow: hidden;
    margin-left: 20px;
    list-style-type: disc;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.details.show {
    max-height: 500px;
    padding-top: 6px;
    padding-bottom: 6px;
}

body.dark-theme .achievement .details li,
body.dark-theme .achievement .details b {
    color: #ffffff;
}

/* FOOTER */
footer {
    width: 100%;
    padding: 40px 0;
    margin-top: 40px;
    background: #E3F0FF;
    border-top: 2px solid #B8D4F2;
    text-align: center;
    transition: background 0.3s, color 0.3s, border 0.3s;
}
