.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
}
.slider-images {
    position: relative;
    height: 500px; /* Increased to accommodate captions */
}
.slide {
    display: none;
    width: 100%;
    height: 400px; /* Adjust image height */
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}
.slide.active {
    display: block;
}
.caption {
    display: none;
    text-align: center;
    color: #fff;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}
.caption.active {
    display: block;
}
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

header {
    text-align: center;
    border-bottom: 2px dashed #ff00ff;
    padding-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

header h1 {
    color: #ff00ff;
    font-size: 2.5em;
    transition: all 0.3s ease;
}

header h1:hover {
    transform: scale(1.05);
}

header p {
    color: #888;
    font-style: italic;
    transition: color 0.3s ease;
}

.controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

#language-switch,
#theme-toggle {
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    background-color: #0a0a0a;
    border: 1px solid #00ff00;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
    text-decoration: none;
}

#language-switch:hover,
#theme-toggle:hover {
    color: #ff00ff;
    background-color: #1a1a1a;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}

nav a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff00ff;
    transform: translateX(2px);
}

nav a.active {
    color: #ff00ff;
    transform: scale(1.1);
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.hero-section, .project-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 15px;
    transition: all 0.3s ease;
}

.hero-image {
    max-width: 300px;
    width: 40%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.big-image {
    width: 90%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.project-image {
    max-width: 200px;
    width: 30%;
    height: auto;
    border: 2px solid #ff00ff;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-image:hover {
    transform: scale(1.05);
    border-color: #00ff00;
}

.hero-content, .project-content {
    flex: 1;
}

.project-link {
    display: inline-block;
    padding: 5px 10px;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 3px;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
}

.project-link:hover {
    color: #ff00ff;
    background-color: #1a1a1a;
}

.soundcloud-player {
    margin-top: 10px;
    border-radius: 5px;
    width: 100%;
    height: 300px;
}

.soundcloud-credit {
    font-size: 10px;
    color: #cccccc;
    line-break: anywhere;
    word-break: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Interstate, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Garuda, Verdana, Tahoma, sans-serif;
    font-weight: 100;
    margin-top: 5px;
}

.soundcloud-credit a {
    color: #cccccc;
    text-decoration: none;
}

.soundcloud-credit a:hover {
    color: #ff00ff;
}

h2, h3 {
    color: #ff00ff;
    border-left: 5px solid #00ff00;
    padding-left: 10px;
    transition: all 0.3s ease;
}

h2:hover, h3:hover {
    transform: translateX(5px);
}

p.ascii-art {
    text-align: center;
    color: #00ff00;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

p.ascii-art:hover {
    color: #ff00ff;
}

a {
    color: #00ff00;
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover {
    color: #ff00ff;
}

footer {
    text-align: center;
    border-top: 2px dashed #ff00ff;
    padding-top: 20px;
    margin-top: 40px;
    color: #888;
    transition: all 0.3s ease;
}

footer:hover {
    color: #e0e0e0;
}

/* Floating cubes */
body::before,
body::after,
main::before,
main::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ff00ff;
    transform: rotate(45deg);
    animation: floatingCubes 8s infinite;
    z-index: 1;
    opacity: 0.8;
}

body::before { top: 5%; left: 5%; animation-delay: 0s; }
body::after { top: 70%; right: 5%; animation-delay: 2s; }
main::before { top: -20px; left: -20px; animation-delay: 1s; }
main::after { bottom: -20px; right: -20px; animation-delay: 3s; }

@keyframes floatingCubes {
    0% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(45deg) translate(20px, 20px); }
    50% { transform: rotate(45deg) translate(0, 40px); }
    75% { transform: rotate(45deg) translate(-20px, 20px); }
    100% { transform: rotate(45deg) translate(0, 0); }
}

/* Light theme */
body[data-theme="light"] {
    background-color: #FFFFFF;
    color: #000000;
}

body[data-theme="light"] header {
    border-bottom: 2px solid #1a73e8;
}

body[data-theme="light"] header h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3 {
    color: #1a73e8;
}

body[data-theme="light"] a,
body[data-theme="light"] nav a,
body[data-theme="light"] .project-link,
body[data-theme="light"] #language-switch,
body[data-theme="light"] #theme-toggle {
    color: #1a73e8;
    border-color: #1a73e8;
}

body[data-theme="light"] nav a:hover,
body[data-theme="light"] nav a.active,
body[data-theme="light"] a:hover,
body[data-theme="light"] .project-link:hover,
body[data-theme="light"] #language-switch:hover,
body[data-theme="light"] #theme-toggle:hover {
    color: #ff00ff;
}

body[data-theme="light"] #language-switch:hover,
body[data-theme="light"] #theme-toggle:hover,
body[data-theme="light"] .project-link:hover {
    background-color: #f0f0f0;
}

body[data-theme="light"] h2,
body[data-theme="light"] h3 {
    border-left: 2px solid #1a73e8;
}

body[data-theme="light"] footer {
    border-top: 2px solid #1a73e8;
}

body[data-theme="light"] p.ascii-art {
    color: #1a73e8;
}

body[data-theme="light"] p.ascii-art:hover {
    color: #ff00ff;
}

body[data-theme="light"] #language-switch,
body[data-theme="light"] #theme-toggle {
    background-color: #FFFFFF;
}

body[data-theme="light"] .project-image {
    border: 2px solid #1a73e8;
}

body[data-theme="light"] .project-image:hover {
    border-color: #ff00ff;
}

body[data-theme="light"] .soundcloud-credit a {
    color: #666666;
}

body[data-theme="light"] .soundcloud-credit a:hover {
    color: #ff00ff;
}

body[data-theme="light"]::before,
body[data-theme="light"]::after,
body[data-theme="light"] main::before,
body[data-theme="light"] main::after {
    background: #1a73e8;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .controls {
        position: static;
        margin-top: 10px;
        justify-content: center;
    }
    .hero-section, .project-section {
        flex-direction: column;
        align-items: center;
    }
    .hero-image, .project-image {
        width: 100%;
        max-width: 250px;
    }
}