:root {
    --primary: #2C3E50;
    --secondary: #3498DB;
    --light: #F4F6F7;
    --dark: #2C3E50;
    --text: #2C3E50;
    --bg: #fff;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.dark-mode {
    --primary: #111;
    --secondary: #1ABC9C;
    --light: #1e1e1e;
    --dark: #f5f5f5;
    --text: #eaeaea;
    --bg: #121212;
}

.container {
    max-width: 1000px;
    margin: auto;
    background: var(--bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: var(--primary);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
}

header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    flex-shrink: 0;
}

.header-text {
    flex: 1;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0.3rem 0;
}

.header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background: var(--secondary);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #217AB7;
}

.content {
    display: flex;
    flex-wrap: wrap;
}

aside {
    flex: 1;
    background: var(--light);
    padding: 1.5rem;
    transition: background 0.3s ease;
}

aside h2 {
    color: var(--secondary);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    margin-bottom: 0.6rem;
}

main {
    flex: 3;
    padding: 2rem;
}

main h2 {
    color: var(--secondary);
    margin-top: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.3rem;
}

.job, .education, .project {
    margin-bottom: 1rem;
}

.job h3, .education h3, .project h3 {
    margin: 0.3rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.job span, .education span, .project span {
    font-size: 0.9rem;
    color: #888;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        text-align: center;
        justify-content: center;
    }

    header img {
        margin-bottom: 1rem;
    }

    .header-buttons {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }

    .content {
        flex-direction: column;
    }

    main, aside {
        padding: 1rem;
    }
}

/* Print styling for PDF */
@media print {
    .header-buttons {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
    }
}

/*toggle button*/
.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 40px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 0px 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fa-moon {color: #f1c40f;}

.fa-sun {color: #f39c12;}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

.job-desc {
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

.mode-toggle{
    display: flex;
    align-items: center;
}
