/* Theme Toggle Button Styles */

/* Contact footer with theme toggle */
.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Theme toggle button */
.theme-toggle {
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(0, 153, 255, 0.3);
    border-color: #00ffcc;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.3);
}

.theme-toggle:active {
    transform: translateY(0);
}

/* Theme icons */
.theme-icon {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

/* Default dark mode - show moon */
body:not([data-theme="light"]) .theme-icon[data-theme="dark"] {
    opacity: 1;
    transform: scale(1);
}

body:not([data-theme="light"]) .theme-icon[data-theme="light"] {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

/* Light mode - show sun */
body[data-theme="light"] .theme-icon[data-theme="light"] {
    opacity: 1;
    transform: scale(1);
}

body[data-theme="light"] .theme-icon[data-theme="dark"] {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.theme-toggle.pulse {
    animation: pulse 0.3s ease-in-out;
}

/* Light theme colors */
body[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #0066cc;
    --accent-secondary: #0099ff;
}

body[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 102, 204, 0.3);
    color: #1a1a1a;
}

body[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #0066cc;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

/* Adjust sections for light mode */
body[data-theme="light"] .section {
    background: var(--bg-primary);
    color: var(--text-primary);
}

body[data-theme="light"] .hero-title,
body[data-theme="light"] .section-title {
    color: var(--text-primary);
}

body[data-theme="light"] .hero-info,
body[data-theme="light"] .info-paragraph,
body[data-theme="light"] .project-description {
    color: var(--text-secondary);
}

body[data-theme="light"] .project-item {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .contact-link {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body[data-theme="light"] .contact-link:hover {
    border-color: var(--accent);
    background: rgba(0, 102, 204, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .theme-toggle {
        margin: 0 auto;
    }
}

/* Fixed position alternative (if you want it always visible) */
.theme-toggle-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(0, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .theme-toggle-fixed {
        bottom: 20px;
        right: 20px;
    }
}