* {
    margin: 0;
    padding: 0;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    box-sizing: border-box;
}

:root {
    --bg-color: rgb(34, 40, 49);
    --text-color: #fff;
    --nav-bg: #393636;
    --box-bg: #393636;
    --highlight: rgb(31, 165, 218);
    --highlight-underline: rgba(7, 129, 243, 0.868);
    --highlight-teal: #5DCAA5;
    --secondary-text: #dddada;
    --input-bg: rgba(113, 158, 220, 0.241);
    --link-color: #fff;
    --icons-color: #ababaa;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Light theme (toggled via .darkmode class name kept for compatibility with script.js) */
.darkmode {
    --bg-color: rgb(240, 245, 250);
    --text-color: #151414;
    --nav-bg: #d9e1ec;
    --box-bg: #ffffff;
    --highlight: #0f6ea8;
    --highlight-underline: #0f6ea8;
    --highlight-teal: #14795a;
    --secondary-text: #33373d;
    --input-bg: #e7edf3;
    --link-color: #0b3c7d;
    --icons-color: #5e5d5d;
}

/* ============ LAYOUT ============ */

#header {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.container {
    padding: 10px 10%;
}

/* ============ NAVBAR ============ */

nav {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(19, 181, 213, 0.5);
    background: var(--nav-bg);
    height: 80px;
    width: 100%;
    padding: 0 10%;
    z-index: 100;
    transition: background 0.3s ease;
}

.logo {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(top right, rgba(18, 55, 246, 1), rgba(9, 244, 244, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    display: flex;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--highlight-underline);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.lang-dropdown {
    position: relative;
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-btn {
    background: var(--nav-bg);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    margin-left: 40px;
}

.lang-btn svg {
    width: 26px;
    fill: var(--text-color);
}

.lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    border: 1px solid rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 5px 0;
    margin: 0;
    min-width: 130px;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(5, 197, 197, 0.35);
    border-radius: 6px;
    overflow: hidden;
}

.lang-menu li {
    padding: 8px 15px;
    color: var(--text-color);
    cursor: pointer;
}

.lang-menu li:hover {
    background-color: rgba(31, 165, 218, 0.15);
}

.lang-hidden {
    display: none;
}

#theme-toggle {
    height: 34px;
    width: 34px;
    padding: 0;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--nav-bg);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

#theme-toggle:hover {
    background: rgba(31, 165, 218, 0.15);
}

#theme-toggle svg {
    fill: var(--text-color);
}

#theme-toggle svg:last-child {
    display: none;
}

.darkmode #theme-toggle svg:first-child {
    display: none;
}

.darkmode #theme-toggle svg:last-child {
    display: block;
}

nav .fas {
    display: none;
}

/* ============ HERO ============ */

.header-text {
    margin-top: 20%;
    font-size: 30px;
    margin-bottom: 20%;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 1.25rem;
    margin-top: 20%;
}

.hero-badge {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 99px;
    font-weight: 500;
    border: 1px solid;
}

.hero-badge.badge-blue {
    background: rgba(55, 138, 221, 0.12);
    color: #85B7EB;
    border-color: rgba(55, 138, 221, 0.3);
}

.hero-badge.badge-teal {
    background: rgba(29, 158, 117, 0.12);
    color: #5DCAA5;
    border-color: rgba(29, 158, 117, 0.3);
}

.hero-badge.badge-purple {
    background: rgba(127, 119, 221, 0.12);
    color: #AFA9EC;
    border-color: rgba(127, 119, 221, 0.3);
}

.darkmode .hero-badge.badge-blue { background: rgba(55, 138, 221, 0.14); color: #1f5da3; border-color: rgba(55, 138, 221, 0.4); }
.darkmode .hero-badge.badge-teal { background: rgba(29, 158, 117, 0.14); color: #0f6e50; border-color: rgba(29, 158, 117, 0.4); }
.darkmode .hero-badge.badge-purple { background: rgba(127, 119, 221, 0.14); color: #5a51b8; border-color: rgba(127, 119, 221, 0.4); }

.hero-job {
    font-size: 16px;
    color: var(--highlight);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 10px;
    margin-bottom: 0;
}

.header-text h1 span {
    background: -webkit-linear-gradient(top right, rgba(18, 55, 246, 1), rgba(9, 244, 244, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--secondary-text);
    line-height: 1.65;
    margin-top: 14px;
    margin-bottom: 0;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    margin-bottom: 36px;
}

.btn-hero-primary,
.btn-download-cv,
.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(24, 185, 207, 0.95) 0%, #0b40b3 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 64, 179, 0.28);
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover,
.btn-download-cv:hover,
.btn-contact-submit:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 64, 179, 0.35);
}

.btn-hero-primary svg,
.btn-download-cv svg,
.btn-contact-submit svg {
    fill: #ffffff;
}

.btn-hero-secondary,
.btn-outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--highlight);
    color: var(--highlight);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    transition: background 0.2s, transform 0.2s;
}

.btn-hero-secondary:hover,
.btn-outline-link:hover {
    background: rgba(31, 165, 218, 0.1);
    transform: translateY(-2px);
}

.btn-hero-secondary svg,
.btn-outline-link svg {
    fill: var(--highlight);
    flex-shrink: 0;
}

.btn-outline-link {
    margin: 40px auto 0;
    width: fit-content;
    padding: 12px 40px;
    font-size: 15px;
}

.hero-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20%;
}

.hero-social-icon,
.contact-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--icons-color);
    font-size: 18px;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-social-icon:hover,
.contact-social-icon:hover {
    color: var(--highlight);
    border-color: rgba(31, 165, 218, 0.4);
    transform: translateY(-3px);
}

.darkmode .hero-social-icon,
.darkmode .contact-social-icon {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ============ ABOUT ============ */

#About {
    padding: 80px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-photo-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10%;
}

.about-photo-container img {
    width: 100%;
    border-radius: 20px;
    display: block;
    padding: 0.3rem;
    background: linear-gradient(99.41deg, #002cc7 -39.51%, rgba(24, 185, 207, 0.9) 116.85%);
}

.about-status-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    background: rgba(21, 128, 92, 0.95);
    color: #fff;
    padding: 4px 14px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(29, 158, 117, 0.5);
}

.about-col-2 {
    flex-basis: 60%;
}

.about-role-label {
    font-size: 13px;
    color: var(--highlight);
    margin-top: 8px;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

.about-col-2-Me {
    margin-top: 12px !important;
    font-size: 16px;
    color: var(--secondary-text);
    line-height: 1.7;
}

.sub-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--text-color);
    margin-right: 50px;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: '';
    width: 6%;
    min-width: 40px;
    height: 3px;
    background: var(--highlight);
    position: absolute;
    left: 0;
    bottom: -8px;
}

.tab-titles {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: var(--highlight);
    padding-bottom: 6px;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--highlight-underline);
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active-tab {
    display: block;
    animation: fadeInUp 0.35s ease-out;
}

/* ============ SKILLS ============ */

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.skill-category {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: border-color 0.3s;
}

.skill-category:hover {
    border-color: rgba(31, 165, 218, 0.4);
}

.skill-category-label {
    font-size: 12px;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 12px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid;
    font-weight: 500;
    white-space: nowrap;
}

.skill-tag-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-tag.tag-blue,
.tag-blue {
    background: rgba(55, 138, 221, 0.1);
    color: #3d84cf;
    border-color: rgba(55, 138, 221, 0.3);
}

.skill-tag.tag-teal,
.tag-teal {
    background: rgba(29, 158, 117, 0.1);
    color: #2a9370;
    border-color: rgba(29, 158, 117, 0.3);
}

.skill-tag.tag-coral,
.tag-coral {
    background: rgba(216, 90, 48, 0.1);
    color: #c8613a;
    border-color: rgba(216, 90, 48, 0.3);
}

.skill-tag.tag-purple,
.tag-purple {
    background: rgba(127, 119, 221, 0.1);
    color: #8a80d9;
    border-color: rgba(127, 119, 221, 0.3);
}

.darkmode .skill-tag.tag-blue,   .darkmode .tag-blue   { background: rgba(55, 138, 221, 0.14);  color: #1f5da3; border-color: rgba(55, 138, 221, 0.4); }
.darkmode .skill-tag.tag-teal,   .darkmode .tag-teal   { background: rgba(29, 158, 117, 0.14);  color: #0f6e50; border-color: rgba(29, 158, 117, 0.4); }
.darkmode .skill-tag.tag-coral,  .darkmode .tag-coral  { background: rgba(216, 90, 48, 0.14);   color: #a5441f; border-color: rgba(216, 90, 48, 0.4); }
.darkmode .skill-tag.tag-purple, .darkmode .tag-purple { background: rgba(127, 119, 221, 0.14); color: #5a51b8; border-color: rgba(127, 119, 221, 0.4); }

/* ============ EXPERIENCE TIMELINE ============ */

#experience {
    padding: 50px 0;
}

.timeline {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    border-left: 2px solid rgba(31, 165, 218, 0.25);
    padding-left: 28px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--highlight);
    border: 3px solid var(--bg-color);
    box-sizing: border-box;
}

.timeline-card {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.15);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
}

.timeline-card:hover {
    border-color: rgba(31, 165, 218, 0.4);
    transform: translateY(-3px);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.timeline-logo {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(31, 165, 218, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-initials {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(31, 165, 218, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--highlight);
}

.timeline-meta {
    flex: 1;
}

.timeline-role {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 4px;
}

.timeline-org {
    font-size: 12px;
    color: var(--highlight);
    margin: 0;
    font-weight: 500;
}

.timeline-desc {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.65;
    margin-bottom: 14px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============ EDUCATION ============ */

.edu-timeline {
    border-left: 2px solid rgba(31, 165, 218, 0.25);
    padding-left: 28px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.edu-item {
    position: relative;
    margin-bottom: 24px;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-dot {
    position: absolute;
    left: -37px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(31, 165, 218, 0.4);
    border: 2px solid var(--bg-color);
    box-sizing: border-box;
}

.edu-dot--current {
    background: var(--highlight);
    width: 14px;
    height: 14px;
    left: -38px;
}

.edu-card {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.12);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: border-color 0.3s;
}

.edu-card:hover {
    border-color: rgba(31, 165, 218, 0.35);
}

.edu-card--current {
    border-color: rgba(31, 165, 218, 0.3);
}

.edu-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.edu-period {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--highlight);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.edu-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(29, 158, 117, 0.15);
    color: #2a9370;
    border: 1px solid rgba(29, 158, 117, 0.3);
    font-weight: 600;
}

.darkmode .edu-badge {
    background: rgba(29, 158, 117, 0.16);
    color: #0f6e50;
    border-color: rgba(29, 158, 117, 0.4);
}

.edu-school {
    font-size: 13px;
    color: var(--secondary-text);
    margin: 0 0 4px;
    line-height: 1.4;
}

.edu-degree {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.35;
}

/* ============ LANGUAGES ============ */

.lang-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.lang-card {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.12);
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    display: grid;
    grid-template-columns: 32px 1fr 1fr;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s;
}

.lang-card:hover {
    border-color: rgba(31, 165, 218, 0.35);
}

.lang-flag {
    font-size: 22px;
    line-height: 1;
}

.lang-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.lang-level {
    font-size: 12px;
    color: var(--secondary-text);
    margin: 0;
}

.lang-bar-wrap {
    height: 5px;
    background: rgba(31, 165, 218, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.lang-bar {
    height: 100%;
    background: var(--highlight);
    border-radius: 99px;
}

/* ============ PROJECTS ============ */

#projects {
    padding: 50px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.project-card {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
}

.project-card:hover {
    border-color: rgba(31, 165, 218, 0.5);
    transform: translateY(-4px);
}

.project-thumb {
    width: 100%;
    height: 160px;
    background: rgba(31, 165, 218, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(31, 165, 218, 0.1);
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb .thumb-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    stroke: rgba(31, 165, 218, 0.4);
    display: none;
}

.project-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-desc {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.6;
    flex: 1;
    margin: 0;
}

.project-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(31, 165, 218, 0.1);
    display: flex;
    align-items: center;
}

.gh-link {
    font-size: 13px;
    color: var(--highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.gh-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.gh-link svg {
    fill: var(--highlight);
    flex-shrink: 0;
}

/* ============ CERTIFICATIONS ============ */

#certifications {
    padding: 50px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 50px;
}

.cert-card {
    background: var(--box-bg);
    border: 1px solid rgba(31, 165, 218, 0.15);
    border-radius: 12px;
    padding: 1.1rem 1.35rem;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.3s;
}

.cert-card:hover {
    border-color: rgba(31, 165, 218, 0.4);
    transform: translateY(-3px);
}

.cert-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-logo--blue { background: rgba(55, 138, 221, 0.12); }
.cert-logo--teal { background: rgba(29, 158, 117, 0.12); }
.cert-logo--purple { background: rgba(127, 119, 221, 0.12); }

.cert-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-logo-fallback svg {
    width: 30px;
    height: 30px;
}

.cert-logo--blue .cert-logo-fallback svg { fill: #85B7EB; }
.cert-logo--teal .cert-logo-fallback svg { fill: #5DCAA5; }
.cert-logo--purple .cert-logo-fallback svg { fill: #AFA9EC; }

.cert-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.cert-issuer {
    font-size: 11px;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.cert-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.35;
    margin: 0;
}

.cert-topics {
    font-size: 12px;
    color: var(--secondary-text);
    line-height: 1.55;
    margin: 0;
}

.cert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.cert-badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 600;
    border: 1px solid;
}

.cert-badge--blue { background: rgba(55, 138, 221, 0.1); color: #3d84cf; border-color: rgba(55, 138, 221, 0.3); }
.cert-badge--teal { background: rgba(29, 158, 117, 0.1); color: #2a9370; border-color: rgba(29, 158, 117, 0.3); }
.cert-badge--purple { background: rgba(127, 119, 221, 0.1); color: #8a80d9; border-color: rgba(127, 119, 221, 0.3); }

.darkmode .cert-badge--blue { background: rgba(55, 138, 221, 0.14); color: #1f5da3; border-color: rgba(55, 138, 221, 0.4); }
.darkmode .cert-badge--teal { background: rgba(29, 158, 117, 0.14); color: #0f6e50; border-color: rgba(29, 158, 117, 0.4); }
.darkmode .cert-badge--purple { background: rgba(127, 119, 221, 0.14); color: #5a51b8; border-color: rgba(127, 119, 221, 0.4); }

.cert-verify-link {
    font-size: 12px;
    color: var(--highlight);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cert-verify-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.cert-verify-link svg {
    fill: var(--highlight);
    flex-shrink: 0;
}

/* ============ CONTACT ============ */

#contact {
    padding: 50px 0 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.contact-info-item svg {
    fill: var(--highlight);
    flex-shrink: 0;
}

.contact-social {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.contact-right form input,
.contact-right form textarea {
    width: 100%;
    border: 1px solid rgba(31, 165, 218, 0.25);
    outline: none;
    background: var(--input-bg);
    color: var(--text-color);
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.contact-right form input:focus,
.contact-right form textarea:focus {
    border-color: var(--highlight);
}

.contact-right form textarea {
    resize: none;
}

.btn-contact-submit {
    width: fit-content;
    font-size: 16px;
}

#msg {
    color: #1a9c58;
    margin-top: 10px;
    display: block;
    font-weight: 500;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgba(62, 132, 230, 0.15);
    font-size: 13px;
    font-weight: 300;
    margin-top: 50px;
    color: var(--secondary-text);
}

/* ============ RESPONSIVE — NAV / HAMBURGER MENU ============ */
/* Same slide-in menu behaviour for both tablet and phone, so it never
   overflows or wraps between 768–1032px. Desktop (>1024px) keeps the
   full horizontal nav. Menu open/closed state is driven by the
   .menu-open class (toggled in script.js) instead of inline styles,
   so JS and CSS can never fall out of sync. */

@media only screen and (max-width: 1024px) {
    .logo {
        font-size: 1.7rem;
    }

    nav {
        height: 64px;
        padding: 0 6%;
    }

    nav .fas {
        display: block;
        font-size: 25px;
        color: #fff;
    }

    #menu-icon {
        display: flex;
        color: var(--text-color);
    }

    #menu-icon.icon-hidden {
        display: none;
    }

    nav ul {
        background: linear-gradient(180deg, rgba(24, 186, 207, 0.95) 0%, #0b40b3 100%);
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        max-width: 80vw;
        height: 100vh;
        padding-top: 60px;
        z-index: 1000;
        transition: right 0.35s ease;
        box-shadow: none;
        overflow-y: auto;
    }

    /* Shadow only exists while the panel is actually on screen — a
       shadow on the closed (off-screen) element still renders and
       bleeds a few px into the viewport since box-shadow isn't
       clipped by its own box being off-canvas. */
    nav ul.menu-open {
        right: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
    }

    nav ul li {
        display: block;
        margin: 18px 25px;
    }

    nav ul li a {
        color: #fff;
        font-size: 20px;
    }

    nav ul .fas {
        position: absolute;
        top: 22px;
        left: 25px;
        cursor: pointer;
        color: #fff;
    }

    /* Language + theme toggle sit side by side, in their own row */
    .nav-utils {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 18px 25px;
    }

    .lang-dropdown,
    #theme-toggle-wrap {
        margin: 0 !important;
    }

    .lang-btn {
        background: transparent;
        color: #fff;
        margin: 0;
    }

    .lang-btn svg {
        fill: #fff;
    }

    .lang-menu {
        background: #ffffff;
        border: none;
        width: 140px;
        height: auto;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
    }

    .lang-menu li {
        color: #222;
        padding: 8px 15px;
    }

    #theme-toggle {
        margin: 0;
    }
}

@media only screen and (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr 1.3fr;
        gap: 2rem;
    }
}

/* ============ RESPONSIVE — MOBILE CONTENT ============ */

@media only screen and (max-width: 860px) {
    .container {
        padding: 10px 6%;
    }

    .header-text {
        margin-top: 45%;
        font-size: 16px;
        margin-bottom: 20%;
    }

    .hero-badges {
        margin-top: 40%;
    }

    .header-text h1 {
        font-size: 34px;
        margin-top: 10px;
    }

    .hero-job {
        font-size: 14px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 14px;
        padding: 11px 22px;
    }

    .hero-actions {
        margin-bottom: 24px;
    }

    .hero-social {
        margin-bottom: 12%;
    }

    .about-status-badge {
        font-size: 11px;
        padding: 3px 10px;
        bottom: 8px;
    }

    .sub-title {
        font-size: 28px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-photo-container {
        max-width: 260px;
        margin: 0 auto;
    }

    .about-col-2-Me {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .tab-links {
        font-size: 14px;
        margin-right: 22px;
    }

    .timeline,
    .edu-timeline {
        margin-left: 4px;
        padding-left: 20px;
    }

    .timeline-dot {
        left: -29px;
        width: 12px;
        height: 12px;
    }

    .timeline-role {
        font-size: 14px;
    }

    .edu-dot {
        left: -29px;
    }

    .edu-dot--current {
        left: -30px;
    }

    .lang-card {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
    }

    .lang-bar-wrap {
        grid-column: 2 / 3;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .project-thumb {
        height: 180px;
    }

    .certs-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
        gap: 12px;
    }

    .cert-card {
        padding: 1rem;
    }

    .cert-logo {
        width: 56px;
        height: 56px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-outline-link {
        padding: 10px 28px;
        font-size: 14px;
    }

    .contact-info-item {
        font-size: 13px;
    }

    .copyright {
        font-size: 13px;
    }
}

@media only screen and (max-width: 420px) {
    .header-text h1 {
        font-size: 28px;
    }

    .hero-badges {
        gap: 5px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 3px 10px;
    }

    .cert-card {
        flex-direction: column;
        align-items: flex-start;
    }
}