.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 25px;
    background-color: rgba(15, 15, 15, 0.6);
    border-radius: 25px;
    cursor: pointer;
    z-index: 300;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-toggle .toggle-icon {
    position: absolute;
    left: 3px;
    width: 19px;
    height: 19px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle .toggle-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: #ffcc33;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.theme-toggle .toggle-icon::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #ffcc33;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.theme-toggle.light .toggle-icon {
    left: calc(100% - 22px);
    background-color: #ffcc33;
}

.theme-toggle.light .toggle-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

.theme-toggle.light .toggle-icon::after {
    opacity: 1;
    transform: scale(1);
}

body.light-mode {
    background-color: #f8f9fa;
    color: #333333;
}

body.light-mode .profile-section,
body.light-mode .project-card {
    background-color: rgba(250, 250, 252, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .profile-info h1,
body.light-mode .profile-info h2,
body.light-mode .projects-section h2,
body.light-mode .project-card h3 {
    color: #333333;
}

body.light-mode .profile-info p,
body.light-mode .project-card p {
    color: #555555;
}

body.light-mode .social-link {
    color: #333333;
    border-color: rgba(0, 0, 0, 0.2);
    border-width: 1px;
    border-radius: 6px;
}

body.light-mode .social-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333333;
    border-color: rgba(0, 0, 0, 0.3);
}

body.light-mode .particle {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.4 !important;
}

body.light-mode .geometric-bg .geo-line {
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .arrow-right,
body.light-mode .arrow-right::before,
body.light-mode .arrow-right::after {
    background-color: #333333;
}

body.light-mode .splash-text,
body.light-mode .splash-subtitle {
    color: #333333;
}

body.light-mode .progress-circle circle {
    stroke: #333333;
}

body.light-mode .main-circle {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .splash-overlay {
    background-color: #f8f9fa;
}


body.light-mode .profile-section {
    box-shadow: 5px 15px 25px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 22px;
    }
    
    .theme-toggle .toggle-icon {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle.light .toggle-icon {
        left: calc(100% - 19px);
    }
    
    .sun {
        width: 50px;
        height: 50px;
    }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .theme-toggle {
        width: 48px;
        height: 24px;
    }
    
    .theme-toggle .toggle-icon {
        width: 18px;
        height: 18px;
    }
    
    .theme-toggle.light .toggle-icon {
        left: calc(100% - 21px);
    }
    
    .sun {
        width: 60px;
        height: 60px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 25px;
    }
    
    .theme-toggle .toggle-icon {
        width: 19px;
        height: 19px;
    }
    
    .theme-toggle.light .toggle-icon {
        left: calc(100% - 22px);
    }
    
    .sun {
        width: 70px;
        height: 70px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
    }
}