    :root {
    /* Light Theme (Default) */
    --primary: #1e3a8a;
    --secondary: #2563eb;
    --accent: #3b82f6;
    --light: #f3f4f6;
    --dark: #1f2937;
    --text: #374151;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --sidebar-bg: #1e3a8a;
    --sidebar-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --border: #e2e8f0;
    --sidebar-width: 300px;
    }

    .dark-theme {
    /* Dark Theme */
    --primary: #3b82f6;
    --secondary: #60a5fa;
    --accent: #93c5fd;
    --light: #1f2937;
    --dark: #f3f4f6;
    --text: #e5e7eb;
    --background: #111827;
    --card-bg: #1f2937;
    --sidebar-bg: #0f172a;
    --sidebar-text: #f3f4f6;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --border: #374151;
    }

    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    }

    body {
    display: flex;
    background-color: var(--background);
    color: var(--text);
    }

    .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 2rem;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 0 10px var(--shadow);
    overflow-y: auto;
    overflow-x: hidden;
    }

    .sidebar::-webkit-scrollbar {
    width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    }

    .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    }

    .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1.5rem;
    }

    .sidebar h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    }

    .sidebar p.title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #bfdbfe;
    }

    .contact-info {
    width: 100%;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    }

    .contact-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    }

    .contact-item i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 5px;
    font-size: 1rem;
    color: var(--accent);
    }

    .contact-item span {
    font-size: 0.8rem;
    color: var(--sidebar-text);
    word-break: break-word;
    }

    .main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    }

    .header {
    padding: 2rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow);
    }

    .header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    }

    .header p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    }

    .tabs {
    display: flex;
    background-color: var(--card-bg);
    padding: 0 2rem;
    box-shadow: 0 2px 5px var(--shadow);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    }

    .tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    }

    .tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
    flex-shrink: 0;
    }

    .tab.active {
    color: var(--secondary);
    }

    .tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    }

    .tab:hover:not(.active) {
    color: var(--accent);
    }

    .content {
    padding: 2rem;
    }

    .tab-content {
    display: none;
    }

    .tab-content.active {
    display: block;
    }

    .education-item,
    .experience-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 1.5rem;
    }

    .education-item h3,
    .experience-item h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    }

    .education-item p,
    .experience-item p {
    color: var(--text);
    margin-bottom: 0.5rem;
    }

    .date {
    color: var(--accent);
    font-weight: 600;
    }

    .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    }

    .skill-category {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    }

    .skill-category h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    }

    .skill-category h3 i {
    margin-right: 10px;
    color: var(--secondary);
    }

    .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    }

    .skill-item {
    background-color: var(--light);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    }

    /* Theme Toggle Switch */
    .theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    }

    .theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
    }

    .theme-switch input {
    display: none;
    }

    .slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 34px;
    }

    .slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
    border-radius: 50%;
    }

    input:checked + .slider {
    background-color: var(--secondary);
    }

    input:checked + .slider:before {
    transform: translateX(26px);
    }

    .skill-item i {
    margin-right: 6px;
    color: var(--secondary);
    }

    .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    }

    .project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    }

    .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-hover);
    }

    .project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    }

    .project-info {
    padding: 1.5rem;
    }

    .project-info h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    }

    .project-info p {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    }

    .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    }

    .project-tag {
    background-color: var(--light);
    color: var(--accent);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    }

    .project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    }

    .project-link:hover {
    background-color: var(--primary);
    }

    .contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    }

    .form-group {
    margin-bottom: 1.5rem;
    }

    .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    }

    .form-group input,
    .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--background);
    color: var(--text);
    transition: border-color 0.3s;
    }

    .form-group input:focus,
    .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    }

    .form-group textarea {
    min-height: 150px;
    resize: vertical;
    }

    .submit-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    }

    .submit-btn:hover {
    background-color: var(--primary);
    }

    .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.social-icons a {
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    }

    .social-icons a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    }

    @media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .contact-item {
        flex: 1;
        min-width: 200px;
        max-width: 250px;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .header {
        padding: 1.5rem;
    }

    .header h2 {
        font-size: 2rem;
    }

    .content {
        padding: 1rem;
    }

    .skills-container {
        flex-direction: column;
    }

    .skill-category {
        min-width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-icons {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    }

    @media (max-width: 768px) {
    .header h2 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .tab {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-item {
        min-width: 180px;
    }

    .contact-item i {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .contact-item span {
        font-size: 0.85rem;
    }
    }

    @media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .sidebar h1 {
        font-size: 1.5rem;
    }

    .header {
        padding: 1rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .tab {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .content {
        padding: 0.8rem;
    }

    .contact-info {
        flex-direction: column;
        padding: 0;
    }

    .contact-item {
        min-width: 100%;
        max-width: 100%;
    }
    }
