:root {
    /* Base Colors - Dark (Default) */
    --bg-body: #0a0a0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-header: rgba(10, 10, 14, 0.7);
    --bg-mobile-nav: rgba(10, 10, 14, 0.95);

    --text-body: #ffffff;
    --text-muted: #a0a0a0;
    --text-heading: #ffffff;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.2);

    --primary: #9d4edd;
    --primary-glow: #9d4edd80;
    --secondary: #4ea8de;
    --secondary-glow: #4ea8de80;

    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Gradients/Effects */
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --overlay-grad: radial-gradient(circle at center, transparent 0%, var(--bg-body) 90%);

    --company-logo-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
    /* Base Colors - Light */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-header: rgba(248, 249, 250, 0.85);
    --bg-mobile-nav: rgba(248, 249, 250, 0.98);

    --text-body: #2d3436;
    --text-muted: #636e72;
    --text-heading: #2d3436;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-card-hover: rgba(0, 0, 0, 0.15);

    /* Adjust primary/secondary for light mode contrast if needed, 
       but keeping them same for brand consistency often works */
    --primary: #8a2be2;
    /* Slightly darker for better visibility on white */
    --primary-glow: rgba(138, 43, 226, 0.3);
    --secondary: #0077b6;
    /* Darker blue */
    --secondary-glow: rgba(0, 119, 182, 0.3);

    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);

    --overlay-grad: radial-gradient(circle at center, transparent 0%, rgba(248, 249, 250, 0.8) 90%);

    --company-logo-bg: rgba(0, 0, 0, 0.03);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Effects */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    /* Let clicks pass through */
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    /* In light mode, we might want to reduce canvas opacity or invert it, 
       but keeping it subtle is fine. */
}

.background-image {
    display: none;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-grad);
    z-index: -1;
    pointer-events: none;
}

/* Existing Glow - adjusted z-index */
.background-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.4;
    z-index: -1;
    filter: blur(100px);
    animation: pulse 10s infinite alternate;
}

@keyframes gentle-zoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.15);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Header */
.glass-header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.2rem 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-heading);
}

.accent {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
    color: var(--text-body);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--secondary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    width: 32px;
    height: 32px;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-body);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    flex: 1;
    padding: 4rem 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-heading);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--text-heading), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-card-hover);
    box-shadow: var(--card-shadow-hover);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

.social-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.social-icon:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header {
        padding: 1rem 0;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-mobile-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .lang-switcher-item {
        margin-left: 0;
        margin-top: 1rem;
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 100;
        position: relative;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Profile Photo */
.profile-image-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Company Logos */
.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: var(--company-logo-bg);
    border-radius: 12px;
    padding: 8px;
    margin-right: 20px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.job-header {
    align-items: center;
}

.job-title-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.job-info h2 {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--text-heading);
}

.job-info h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}