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

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 40px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
    background-color: #121212;
    color: #c8c8c8;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:active i {
    transform: rotate(20deg);
}

.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #c8c8c8;
    border-color: rgba(255, 255, 255, 0.12);
}

.banner {
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.container > section {
    padding: 40px 0;
}

.name-section {
    text-align: right;
}

.name-section h1 {
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.dark-mode .name-section h1 {
    color: #e8e8e8;
}

.tagline {
    display: inline-block;
    font-size: 18px;
    color: #c0583e;
    margin-top: 8px;
    padding: 5px 14px;
    border: 1px solid #c0583e;
    border-radius: 2px;
}

.summary {
    text-align: left;
    max-width: 700px;
}

.summary p {
    font-size: 16px;
    color: #444;
}

.dark-mode .summary p {
    color: #999;
}

.find-me {
    text-align: right;
}

.find-me-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-mode .find-me-label {
    color: #555;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.social-link {
    font-size: 22px;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.social-linkedin {
    color: #0A66C2;
}

.social-github {
    color: #333;
}

.dark-mode .social-github {
    color: #e8e8e8;
}

.social-kaggle {
    color: #20BEFF;
}

.social-hf {
    display: flex;
    align-items: center;
}

.hf-logo {
    height: 22px;
    width: 22px;
}

.social-link:hover {
    color: #c0583e;
}

.social-hf:hover .hf-logo {
    opacity: 0.7;
}

.dark-mode .social-link:hover {
    color: #c0583e;
}

.email-row {
    text-align: right;
    margin-top: 12px;
}

.email-link {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: #c0583e;
}

.dark-mode .email-link {
    color: #888;
}

.dark-mode .email-link:hover {
    color: #c0583e;
}

h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.dark-mode h2 {
    color: #e8e8e8;
}

.projects ul,
.certifications ul {
    list-style: none;
    padding: 0;
}

.projects ul li,
.certifications ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

.projects ul li a,
.certifications ul li a {
    color: #c0583e;
    text-decoration: none;
}

.projects ul li a:hover,
.certifications ul li a:hover {
    text-decoration: underline;
}

.certifications ul li span {
    color: #555;
    font-size: 13px;
    margin-right: 10px;
}

.dark-mode .certifications ul li span {
    color: #555;
}

.current-role {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 700px;
    color: #444;
}

.dark-mode .current-role {
    color: #999;
}

.current-role strong {
    color: #c0583e;
}

.work-list {
    list-style: none;
    padding: 0;
}

.work-list li {
    padding: 12px 0;
    font-size: 15px;
}

.work-desc {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    max-width: 700px;
}

.dark-mode .work-desc {
    color: #555;
}

.work-date {
    color: #555;
    font-size: 13px;
    display: inline-block;
    margin-right: 12px;
    min-width: 160px;
}

.dark-mode .work-date {
    color: #555;
}

.work-list li strong {
    color: #c0583e;
}

.company-logo {
    height: 16px;
    width: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 3px;
    border-radius: 2px;
}

.company-logo-lg {
    height: 20px;
    width: 20px;
}

.company-link {
    color: inherit;
    text-decoration: none;
}

.company-link:hover {
    color: #c0583e;
}

.dark-mode .company-logo {
    filter: brightness(0.85);
}

footer {
    text-align: center;
    padding: 48px 0 24px;
    font-size: 13px;
    color: #555;
}

.dark-mode footer {
    color: #555;
}

.download-cv {
    text-align: right;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.cv-link:hover {
    color: #c0583e;
}

.cv-link .fa-arrow-right {
    color: #c0583e;
    font-size: 14px;
}

.dark-mode .cv-link {
    color: #c8c8c8;
}

.dark-mode .cv-link:hover {
    color: #c0583e;
}

@media (max-width: 640px) {
    .banner {
        height: 240px;
    }

    .name-section h1 {
        font-size: 30px;
    }

    .work-date {
        display: block;
        margin-bottom: 4px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
