/* styles.css */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #BBBB44;
    --link-visited-color: #888888;
    --menu-bg: #f0f0f0;
    --menu-text: #333333;
    --accent-color: #007bff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --toggle-bg: #e0e0e0;
    --toggle-active-bg: #007bff;
    --toggle-slider-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --link-color: #FFFF88;
    --link-visited-color: #888888;
    --menu-bg: #2d2d2d;
    --menu-text: #f0f0f0;
    --accent-color: #4dabf7;
    --border-color: #444444;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
    --toggle-bg: #444444;
    --toggle-active-bg: #4dabf7;
}

[data-theme="rainbow"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --link-color: #FFFF88;
    --link-visited-color: #888888;
    --menu-bg: #ff0000;
    --menu-text: #ffffff;
    --accent-color: #ff0000;
    --border-color: #444444;
    --shadow: 0 2px 10px rgba(0,0,0,0.3);
    --toggle-bg: #ff0000;
    --toggle-active-bg: #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a[href]:not([class]):not([id]) {
    color: var(--link-color)
}

a[href]:not([class]):not([id]):visited{
    color: var(--link-visited-color)
}

#linkedin-icon {
    color: #0077B5
}

#linkedin-icon:visited {
    color: #0077B5
}

.monospace-content {
    font-family: monospace !important;
}

.menu-bar {
    background-color: var(--menu-bg);
    color: var(--menu-text);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DDDD44;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex-shrink: 0;
    color: var(--menu-text) !important;
}

.nav-item {
    color: var(--menu-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 50px;
    flex-shrink: 0;
    height: 50px;
    box-sizing: border-box;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.center-container {
    text-align: left !important;
}

.container {
    max-width: 800px;
    text-align: center;
}

.container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-content {
    text-align: right;
}

/* Theme toggle button */
.theme-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    width: 50px;
    height: 50px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-button {
    width: 100%;
    height: 100%;
    background-color: var(--toggle-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.toggle-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.theme-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Pressed state */
.theme-toggle:active .toggle-button {
    transform: scale(0.9);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Bounce animation */
.bounce {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Rainbow mode animation */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

[data-theme="rainbow"] .menu-bar {
    animation: rainbow 3s infinite linear;
}

[data-theme="rainbow"] .nav-item {
    animation: rainbow 3s infinite linear;
}

/* Responsive design */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .container h1 {
        font-size: 2rem;
    }
    
    .container p {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .menu-container {
        padding: 0.5rem;
    }
    
    .nav-item {
        padding: 0.3rem 0.3rem;
        gap: 0.25rem;
        min-width: 40px;
        height: 40px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item i {
        margin-right: 0;
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .menu-container {
        align-items: stretch;
        padding: 0.5rem;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        margin: 0.5rem 0;
    }
    
    .nav-item {
        padding: 0.2rem 0.2rem;
        gap: 0.1rem;
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
    }
}