/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;

}

body {
    background-color: rgba(10, 10, 10, 0.95);  /* Slightly transparent dark background */
    color: #e0e0e0;
    overflow-y: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(20, 20, 20, 0.8);  /* More transparent dark background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(74, 144, 226, 0.1);  /* Added blue glow */
    border: 1px solid rgba(74, 144, 226, 0.1);  /* Subtle blue border */
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Header Section */

svg {
    width: 28.6px;
    height: 28.6px;
    margin-bottom: 1.2px;
    color : #ffffff;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    padding: -2px;  
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}


.header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);  /* Glowing border */
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Header Section */
.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(74, 144, 226, 0.2);
    cursor: pointer;
    object-fit: cover;
    background-color: #1a1a1a;
    display: block;
    position: relative;
}

.profile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4);
    border-color: rgba(74, 144, 226, 0.4);
}

/* Header Info */
.profile-info h1 {
    font-size: 2em;
    color: #ffffff;  /* White text color */
}

.profile-info p {
    font-size: 1em;
    color: #b0b0b0;  /* Light grey text */
}

/* Section Styling */
section {
    margin-top: 20px;
    padding: 20px;
    background-color: transparent;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid rgba(74, 144, 226, 0.1);
    opacity: 1;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    overflow: hidden;
}

section.visible {
    opacity: 1;
}

/* Remove any existing transform or transition properties that might conflict */
section:hover {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Add visible class styles */
section.visible {
    opacity: 1;
}

/* Remove the fadeInUp animation from sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep animation only for container and header */
.container {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.header {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

h2 {
    font-size: 1.5em;
    color: #e0e0e0;  /* White text for headings */
    margin-bottom: 10px;
}

a {
    text-decoration: none;
}

/* Timeline for Education */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(74, 144, 226, 0.3);
    
}

.timeline-item {
    margin-bottom: 15px;
    padding-left: 10px;
}

.timeline-item .dot {
    position: absolute;
    left: -5.9px;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.description {
    font-size: 1em;
    color: #b0b0b0;  /* Light grey text */
}

/* Skills Pool */
.skills-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-pool span {
    background-color: #232323;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9em;
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: all 0.15s ease;
    position: static;  /* Remove relative positioning */
    transform: none !important;  /* Remove any transforms */
    backface-visibility: visible;  /* Remove 3D effects */
    transform-style: flat;  /* Remove 3D effects */
}

.skills-pool span:hover {
    background-color: #2a2a2a;
    color: #ffffff;
    margin-top: -3px;  /* Use margin instead of transform */
    margin-bottom: 3px;  /* Balance the margin-top */
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Light mode styles */
body.light-mode .skills-pool span {
    background-color: #e9ecef;
}

body.light-mode .skills-pool span:hover {
    background-color: #d8e0e7;
}

/* Sprachkenntnis-Container */
.language-bar p {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #b0b0b0;
    margin-bottom: 5px;
}

/* Einheitliche Breite für Sprachennamen */
.language-name {
    width: 100px; /* Die Breite anpassen, um genug Platz für die längsten Sprachennamen zu haben */
    margin-right: 10px;
    text-align: right;
}

/* Update language bar styles with reduced glow */
.language-bar .bar {
    flex-grow: 1;
    height: 10px;
    border-radius: 5px;
    background-color: #232323;
    border: 1px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.language-bar .fill {
    position: absolute;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-bar .fill:hover {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.6);  /* Enhanced glow on hover */
}

/* Animation class */
.language-bar .fill.animate {
    transform: scaleX(1);
}

/* Enhanced glow for different levels (reduced intensity) */
.language-bar .fill.full {
    width: 100%;
    filter: drop-shadow(0 0 6px rgba(74, 144, 226, 0.3));
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3),
                inset 0 0 8px rgba(74, 144, 226, 0.15);
}

.language-bar .fill.high {
    width: 80%;
    filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.25));
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.25),
                inset 0 0 6px rgba(74, 144, 226, 0.12);
}

.language-bar .fill.medium {
    width: 60%;
    filter: drop-shadow(0 0 4px rgba(74, 144, 226, 0.2));
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.2),
                inset 0 0 4px rgba(74, 144, 226, 0.1);
}

.language-bar .fill.low {
    width: 40%;
    filter: drop-shadow(0 0 3px rgba(74, 144, 226, 0.15));
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.15),
                inset 0 0 3px rgba(74, 144, 226, 0.08);
}

/* Interests with Icons */
.interests ul {
    list-style: none;
    padding-left: 0;
}

.interests li {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #b0b0b0;  /* Light grey text */
    margin-bottom: 8px;
}

.interests li i {
    margin-right: 10px;
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Traits Section */
.traits {
    font-size: 1em;
    color: #b0b0b0;
}

.email {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email:hover {
    color: #4a90e2;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}


/* Menu styles */
.hamburger-icon {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.1);
}
  
  .hamburger-icon span {
    width: 20px;
    height: 2px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
  }
  
  .hamburger-icon span:last-child {
    margin-bottom: 0;
  }
  
 .menu {
    position: fixed;
    top: 30px;
    left: 85px;
    width: 220px;  /* Reduced width */
    background-color: #1a1a1a;
    padding: 15px;  /* Reduced padding */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    z-index: 999;
}
  
  .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    
  }
  
  .menu li {
    margin-bottom: 20px;
    line-height: 4;
  }
  
  .menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .menu a:hover {
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
  }

.show-menu {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.ani a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Update the scroll-to-top button styles */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.3);
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Timeline dot hover effect */
.timeline-item .dot:hover {
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Language bar hover effect */
.language-bar .fill:hover {
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Update hamburger icon hover effect */
.hamburger-icon:hover {
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Add these mobile-specific styles */
@media (max-width: 768px) {
    /* Ripple effect */
    section {
        position: relative;
        overflow: hidden;
    }
    
    .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(74, 144, 226, 0.3);
        transform: scale(0);
        animation: ripple 0.6s linear;
        pointer-events: none;
        width: 100px;
        height: 100px;
        margin: -50px;
    }
    
    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }
    
    /* Adjust section hover states for mobile */
    section:hover {
        transform: none;
    }
    
    /* Make skills more touch-friendly */
    .skills-pool span {
        padding: 12px 18px;
        margin: 5px;
    }

    /* Header optimization for mobile */
    .header {
        flex-direction: column;
        text-align: center;
        padding: 20px 10px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px auto;
    }

    .profile-info {
        width: 100%;
    }

    .profile-info h1 {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .profile-info p {
        font-size: 0.95em;
        line-height: 1.5;
        margin: 0 auto;
        max-width: 90%;
    }

    /* Adjust icon spacing in header */
    .profile-info h1 a {
        margin-left: 8px;
        display: inline-block;
    }

    /* Container padding adjustment */
    .container {
        margin: 10px;
        padding: 15px;
    }
}

/* Add these styles for the header icons */
.profile-info h1 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LinkedIn icon styles */
.profile-info h1 a .fa-linkedin {
    font-size: 22px;  /* Increased size for better visibility */
    color: #141414ec;
    background-color: #4a90e2;
    border-radius: 3px;
    width: 28.4px;
    height: 28.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
    position: relative;
    top: -2px; /* Fine-tune vertical alignment */
}

.profile-info h1 a:hover .fa-linkedin {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* Update the container for both icons */
.profile-info h1 a {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}

/* Swisscom logo styles */
.profile-info h1 a svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
}

.profile-info h1 a:hover svg {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
}

/* Update hamburger icon styles */
.hamburger-icon i {
    color: #4a90e2;  /* Blue color for the bars icon */
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-icon.active i {
    transform: rotate(180deg);
}

/* Add the theme toggle button styles */
.theme-toggle {
    position: fixed;
    top: 80px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle i {
    color: #4a90e2;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Light theme styles */
body.light-mode {
    background-color: rgba(245, 245, 245, 0.95);  /* Slightly transparent light background */
    color: #333;
}

body.light-mode .container {
    background-color: rgba(255, 255, 255, 0.8);  /* More transparent light background */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode section {
    background-color: transparent;
}

body.light-mode section:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 25px rgba(74, 144, 226, 0.1);
}

body.light-mode .top-menu {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

body.light-mode .menu-item a {
    color: #333;
}

body.light-mode .dropdown-content {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .theme-toggle i,
body.light-mode .language-toggle i {
    color: #333;
}

body.light-mode .profile-info h1 {
    color: #333;
}

body.light-mode .profile-info p {
    color: #666;
}

body.light-mode .timeline-item .description {
    color: #666;
}

body.light-mode .skills-pool span {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

body.light-mode .language-bar .bar {
    background: rgba(74, 144, 226, 0.1);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #ffffff;
    border: 1px solid rgba(74, 144, 226, 0.2);
    color: #333;
}

body.light-mode .form-group label {
    color: #666;
}

body.light-mode .submit-btn {
    background: #4a90e2;
    color: #ffffff;
}

/* Add the language toggle button styles */
.language-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-toggle i {
    color: #4a90e2;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.language-toggle:hover {
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

/* Light mode styles for language toggle */
body.light-mode .language-toggle {
    background-color: #f8f9fa;
}

/* Update menu styles */
.menu {
    position: fixed;
    top: 30px;
    left: 85px;
    width: 220px;  /* Reduced width */
    background-color: #1a1a1a;
    padding: 15px;  /* Reduced padding */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    z-index: 999;
}

.menu.show-menu {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* Ensure menu items are visible */
.menu-item {
    padding: 6px 0;    /* Reduced padding */
    margin: 2px 0;     /* Reduced margin */
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.menu-item a {
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    padding: 6px 12px;  /* Reduced padding */
    transition: all 0.3s ease;
    border-radius: 5px;
}

.menu-item a:hover {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    transform: translateX(5px);
}

/* Add these animation styles to your existing CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.header {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* Add gradient background that follows cursor */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(74, 144, 226, 0.07),
        transparent 40%
    );
    pointer-events: none;
    z-index: -1;
}

/* Glass morphism for buttons and menu */
.hamburger-icon,
.theme-toggle,
.language-toggle {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.menu {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Improved shadows and glows */
.container {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(74, 144, 226, 0.1),
                inset 0 0 32px rgba(74, 144, 226, 0.05);
}

section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 25px rgba(74, 144, 226, 0.2),
                inset 0 0 32px rgba(74, 144, 226, 0.05);
}

/* Update scroll animation threshold */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Update scroll progress indicator with enhanced glow */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    z-index: 1000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5),
                0 0 20px rgba(74, 144, 226, 0.3),
                0 0 30px rgba(74, 144, 226, 0.2),
                inset 0 0 15px rgba(74, 144, 226, 0.3);
    border-radius: 0 3px 3px 0;
}

/* Add glow effect for light mode */
body.light-mode .scroll-progress {
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6),
                0 0 20px rgba(74, 144, 226, 0.4),
                0 0 30px rgba(74, 144, 226, 0.3),
                inset 0 0 15px rgba(74, 144, 226, 0.4);
}

/* Add hover card effect to skills */
.skills-pool span {
    transform: translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skills-pool span:hover {
    transform: translateY(-5px) scale(1.05);
}

.skills-pool span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 144, 226, 0.2),
        transparent
    );
    transition: 0.5s;
}

.skills-pool span:hover::before {
    left: 100%;
}

/* Add subtle parallax effect to sections */
section {
    transform-style: preserve-3d;
    perspective: 1500px;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add depth to different elements */
.skills-pool span {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.profile-image {
    transform: translateZ(30px);
    transform-style: preserve-3d;
}

.timeline {
    transform: translateZ(15px);
    transform-style: preserve-3d;
}

.language-bar {
    transform: translateZ(25px);
    transform-style: preserve-3d;
}

section:hover {
    transform: translateY(-5px) translateZ(20px);
}

/* Add to your light mode styles */
body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

body.light-mode .project-info h3 {
    color: #333;
}

body.light-mode .project-info p {
    color: #666;
}

body.light-mode .project-tags span {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

/* Project Section Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.project-card:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    position: relative;
}

.project-info h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 10px;
    position: relative;
}

.project-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, transparent);
}

.project-info p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    transition: all 0.3s;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.project-tags span:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

/* Light mode styles for projects */
body.light-mode .project-card {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .project-info h3 {
    color: #333;
}

body.light-mode .project-info p {
    color: #666;
}

body.light-mode .project-tags span {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

/* Add hover effect for project links */
.project-link {
    position: absolute;
    right: 25px;
    bottom: 25px;
    color: #4a90e2;
    font-size: 1.2em;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateX(0);
}

/* Add project count */
.projects h2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.projects h2::after {
    content: attr(data-count);
    font-size: 0.6em;
    background: rgba(74, 144, 226, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    color: #4a90e2;
}

/* Top Menu Bar */
.top-menu {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 500px;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(74, 144, 226, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-menu.hidden {
  transform: translate(-50%, -100px);
  opacity: 0;
}

/* Menu container styles */
.menu-container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.menu-item {
  position: relative;
  padding: 5px 0;
}

.menu-item a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.menu-item a:hover {
  color: #4a90e2;
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
}

/* Active state for current page/section */
.menu-item.active a {
  color: #4a90e2;
  background: rgba(74, 144, 226, 0.15);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
}

/* Improved dropdown styles */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 220px;
    padding: 15px 0;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 10px);
}

/* Dropdown items styling with more padding */
.dropdown-content a {
    color: #e0e0e0 !important; /* Force white color */
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: none !important;
    margin: 2px 0;
}

.dropdown-content a:hover {
    color: #4a90e2 !important; /* Force blue color on hover */
    transform: translateX(5px);
    background: none !important;
}

/* Remove any active states */
.dropdown-content a.active {
    color: #e0e0e0 !important; /* Force white color even when active */
    background: none !important;
}

/* Light mode adjustments */
body.light-mode .dropdown-content a {
    color: #333 !important; /* Dark color for light mode */
}

body.light-mode .dropdown-content a:hover {
    color: #4a90e2 !important; /* Blue on hover in light mode */
}

/* Control buttons styling */
.menu-controls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.theme-toggle,
.language-toggle {
  background: none;
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  color: #e0e0e0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover,
.language-toggle:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
}

.theme-toggle i,
.language-toggle i {
  font-size: 16px;
  color: #e0e0e0;
}

/* Active section indicator */
.dropdown-content a.active {
  color: #4a90e2;
  background: rgba(74, 144, 226, 0.1);
  position: relative;
}

.dropdown-content a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #4a90e2;
  border-radius: 0 2px 2px 0;
}

/* Fix section visibility */
section {
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 30px;
}

/* Adjust container margin for fixed menu */
.container {
  margin-top: 100px;
  margin-bottom: 50px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Page styles */
.page {
  display: none;
  padding-top: 80px; /* Space for the menu */
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* Contact form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  color: #e0e0e0;
}

.form-group label {
  position: absolute;
  left: 10px;
  top: 10px;
  color: #888;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  transform: translateY(-25px);
  font-size: 0.8em;
  color: #4a90e2;
}

/* Update section title styles */
section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #e0e0e0;
    position: relative;
    display: inline-block;
}

/* Light mode section title styles */
body.light-mode section h2 {
    color: #333;
}

/* Make sure section titles are visible */
body.light-mode section {
    background-color: #ffffff;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

body.light-mode section h2::after {
    background: linear-gradient(90deg, #4a90e2, transparent);
}

/* Fix page visibility */
.page {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
    opacity: 1 !important;
    visibility: visible !important;
}

.page[style*="display: block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Menu item base styles */
.menu-item a,
.menu-item span#themeToggle,
.menu-item span#languageToggle {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: none;  /* No background by default */
}

/* Hover effects in dark mode */
.menu-item a:hover,
.menu-item span#themeToggle:hover,
.menu-item span#languageToggle:hover {
    color: #4a90e2;  /* Blue on hover */
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

/* Dropdown items in dark mode */
.dropdown-content a {
    color: #e0e0e0 !important; /* Force white color */
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: none !important;
    margin: 2px 0;
}

.dropdown-content a:hover {
    color: #4a90e2 !important; /* Force blue color on hover */
    transform: translateX(5px);
    background: none !important;
}

/* Active state for menu items */
.menu-item.active a {
    color: #4a90e2;  /* Blue text color */
    background: rgba(74, 144, 226, 0.15);  /* Light blue background */
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);  /* Subtle glow */
}

/* Active state for dropdown items */
.dropdown-content a.active {
    color: #e0e0e0 !important; /* Force white color even when active */
    background: none !important;
}

/* Light mode adjustments remain the same */
body.light-mode .menu-item a,
body.light-mode .menu-item span#themeToggle,
body.light-mode .menu-item span#languageToggle {
    color: #333;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-item a,
    .menu-item span#themeToggle,
    .menu-item span#languageToggle {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Menu item hover effects */
.menu-item a:hover,
.menu-item span#themeToggle:hover,
.menu-item span#languageToggle:hover {  /* Add languageToggle here */
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

/* Remove the special hover for language toggle */
/* Delete or comment out these styles:
.menu-item span#languageToggle:hover {
    color: #4a90e2;
    transform: translateY(-2px);
}
*/

/* Personal interests styling */
#personal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#personal li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b0b0b0;
    font-size: 1em;
}

#personal li i {
    color: #4a90e2;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

/* Light mode adjustments */
body.light-mode #personal li {
    color: #666;
}

body.light-mode #personal li i {
    color: #4a90e2;
}

/* Contact form submit button */
.contact-form button[type="submit"] {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.2);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 30px auto 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form button[type="submit"]:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

/* Light mode adjustments */
body.light-mode #scrollToTopBtn {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .contact-form button[type="submit"] {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
}

body.light-mode .contact-form button[type="submit"]:hover {
    background: rgba(74, 144, 226, 0.2);
}

/* Keep active state for main menu items */
.menu-item.active > a {  /* Using > to only target direct child links */
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.15);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.1);
}

/* Remove active states from dropdown items */
.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 25px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: none !important;
    margin: 2px 0;
}

.dropdown-content a:hover {
    color: #4a90e2;
    transform: translateX(5px);
    background: none !important;
}

/* Remove all active states from dropdown items */
.dropdown-content a.active {
    color: #e0e0e0 !important; /* Force white color even when active */
    background: none !important;
}

/* Light mode adjustments */
body.light-mode .dropdown-content a {
    color: #333 !important; /* Dark color for light mode */
}

body.light-mode .dropdown-content a:hover {
    color: #4a90e2 !important; /* Blue on hover in light mode */
}

/* Mobile menu styles */
@media (max-width: 768px) {
    /* Adjust top menu for mobile */
    .top-menu {
        min-width: 90%;
        padding: 10px 15px;
        top: 15px;
    }

    /* Adjust menu container for mobile */
    .menu-container {
        gap: 10px;
    }

    /* Adjust menu items for mobile */
    .menu-item a,
    .menu-item span#themeToggle,
    .menu-item span#languageToggle {
        font-size: 14px;
        padding: 6px 10px;
    }

    /* Adjust dropdown positioning for mobile */
    .dropdown-content {
        position: fixed;
        left: 5%;
        width: 90%;
        transform: translateY(15px);
        top: 60px; /* Adjust based on your menu height */
    }

    .dropdown:hover .dropdown-content {
        transform: translateY(10px);
        left: 5%;
    }

    /* Make dropdown items more touch-friendly */
    .dropdown-content a {
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Ensure menu stays visible on mobile */
    .top-menu.hidden {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    /* Adjust container padding for mobile */
    .container {
        margin-top: 80px;
        padding: 15px;
    }

    /* Make sections more compact on mobile */
    section {
        padding: 15px;
        margin-top: 15px;
    }

    /* Adjust text sizes for mobile */
    h2 {
        font-size: 1.3em;
    }

    .profile-info h1 {
        font-size: 1.5em;
    }

    .profile-info p {
        font-size: 0.9em;
    }

    /* Add touch-friendly hover states */
    @media (hover: none) {
        .menu-item a:active,
        .menu-item span:active {
            color: #4a90e2;
            background: rgba(74, 144, 226, 0.1);
        }

        .dropdown-content a:active {
            color: #4a90e2;
            transform: translateX(5px);
        }
    }
}

/* Landing page styles */
.landing-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.landing-content {
    text-align: center;
    z-index: 2;
}

.landing-title {
    font-size: 4em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.gradient-text {
    background: linear-gradient(
        45deg,
        #4a90e2,
        #357abd,
        #4a90e2,
        #357abd
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 3s ease infinite;
}

.scroll-prompt {
    margin-bottom: 5rem;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1s;
}

.scroll-prompt span {
    font-size: 1.2em;
    color: #e0e0e0;
}

.scroll-prompt i {
    font-size: 1.5em;
    color: #4a90e2;
    animation: bounce 2s infinite;
}

/* Mouse following gradient */
.cursor-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(74, 144, 226, 0.15),
        transparent 40%
    );
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Light mode adjustments */
body.light-mode .landing-title {
    color: #333;
}

body.light-mode .scroll-prompt span {
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5em;
    }
    
    .cursor-gradient {
        display: none;
    }
}

/* Add to your existing styles */
canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Game Mode Styles */
.game-ui {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    user-select: none;
    display: none; /* Hide by default */
    opacity: 0;
}

/* Show game UI only in game mode */
body.game-mode .game-ui {
    display: block;
    opacity: 1;
}

.game-controls {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
    min-width: 800px;
}

.left-controls {
    display: flex;
    gap: 10px;
}

.game-button {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    color: #4a90e2;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.game-button:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.game-button i {
    font-size: 16px;
}

.inventory-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.inventory {
    display: flex;
    gap: 15px;
    padding: 5px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.inventory-slot {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inventory-slot:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.inventory-slot.selected {
    background: rgba(74, 144, 226, 0.3);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    border-color: rgba(74, 144, 226, 0.6);
}

.inventory-slot i {
    font-size: 24px;
    color: #4a90e2;
}

.game-hints {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
    text-align: center;
}

.strength-controls {
    min-width: 250px;
    background: rgba(74, 144, 226, 0.05);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #4a90e2;
    font-size: 14px;
    white-space: nowrap;
}

.slider-container input[type="range"] {
    flex-grow: 1;
    height: 4px;
    background: rgba(74, 144, 226, 0.2);
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    color: #4a90e2;
    font-weight: 500;
}

/* Hide all content in game mode */
body.game-mode .page,
body.game-mode .scroll-progress,
body.game-mode .top-menu,
body.game-mode #scrollToTopBtn {
    display: none !important;
}

/* Hide game UI in normal mode */
body:not(.game-mode) .game-ui {
    display: none !important;
}

/* Update custom cursor styles */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9999;
    display: none;
    color: #4a90e2;
    font-size: 20px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.game-mode {
    cursor: none;
}

body.game-mode .custom-cursor {
    display: flex;
}

/* Ensure cursor is hidden over UI elements */
.game-ui:hover ~ .custom-cursor {
    display: none !important;
}

/* Add to your existing styles */
.toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 5px;
    background: rgba(74, 144, 226, 0.1);
}

.toggle-button:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

/* Light mode adjustments for game UI */
body.light-mode .game-ui {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(74, 144, 226, 0.2);
}

body.light-mode .game-button {
    color: #4a90e2;
    border-color: rgba(74, 144, 226, 0.3);
}

body.light-mode .inventory-slot {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.3);
}

body.light-mode .game-hints {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .slider-container {
    color: #4a90e2;
}

body.light-mode .slider-container input[type="range"] {
    background: rgba(74, 144, 226, 0.1);
}

body.light-mode .custom-cursor {
    color: #4a90e2;
}