/* CSS v4.0 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2 {
    margin: 0;
    padding: 10px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #fff;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1rem;
    color: #ddd;
}

.header {
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}

.text {
    position: relative; 
    z-index: 10;
    margin-top: 180px;
}

.buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.button {
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Contenedor del botón Projects y dropdown */
.projects-container {
    position: relative;
    display: inline-block;
}

/* Menú desplegable */
.projects-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 43%;
    /*transform: translateX(100%);*/
    background-color: #000;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 15px;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: top center;
}

/* Ajustes para móviles */
@media screen and (max-width: 600px) {
    .projects-dropdown {
        width: 245px;
        left: 42.5%;
        transform: translateX(-51.9%);
    }
}

/* Banner de proyecto */
.project-banner {
    margin: 10px 0;
    transition: transform 0.3s ease;
    overflow: visible; /* Permite que la imagen salga del contenedor si es necesario */
    margin-right: 15px; /* Compensa el espacio extra a la derecha */
}

.project-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #555;
    display: block; /* Elimina espacio inferior en imágenes */
    position: relative;
    left: 7px; /* Mueve la imagen 8px a la izquierda */
}

.project-banner:hover img {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

/* Estado activo del dropdown */
.projects-dropdown.active {
    display: block;
    opacity: 1;
    animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.button:hover {
    background-color: #555;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle-canvas::before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 40%);
    pointer-events: none;
}

.links, .store {
    padding: 20px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.links a, .store a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-size: 80% 80%; 
    background-position: center;
}

.links a:hover, .store a:hover {
    background-color: #fff;
    color: #000;
}

.links::after {
    content: "";
    display: block;
    clear: both;
}

.floating-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.minimal-button {
    width: 50px;
    height: 50px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glow 1.5s infinite alternate;
}

.minimal-button.paused::after, .minimal-button.paused::before {
    content: '';
    position: absolute;
    background-color: white;
    border-radius: 0;
    width: 1px;
    height: 15px;
    top: 50%;  
    transform: translateY(-50%); 
}

.minimal-button.paused::after {
    left: calc(50% - 5px); 
}

.minimal-button.paused::before {
    left: calc(50% + 5px); 
}

.minimal-button::after {
    content: '';
    position: absolute;
    left: 20px; 
    top: 20px; 
    width: 10px; 
    height: 10px; 
    background-color: white;
    border-radius: 50%; 
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

#contact {
  width: 100%;
  display: flex;
  flex-direction: column;  /* ← Acomoda los hijos en columna */
  align-items: center;     /* ← Centra el formulario y el título */
}

.contact-form {
    margin: 30px auto;
    width: 100%;
    max-width: 600px; /* antes 350px */
    padding: 0 5%; /* espacio lateral para móviles */
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    color: #000;
    box-sizing: border-box;
}

.contact-form input, .contact-form textarea, .contact-form button {
    width: 100%;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    transition: all 0.3s;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #777;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form button:hover {
    border-color: #000;
}

.contact-form button {
    cursor: pointer;
    background-color: #000;
    color: #fff;
}

.contact-form button:hover {
    background-color: #333;
}

.image-container {
    position: absolute; 
    width: 70%; /* Adjusted width to prevent stretch */
    height: auto;
    max-width: 350px; /* Increased max width for better proportion */
    overflow: hidden;
    border-radius: 50%;
    top: 40%; /* Adjusted top position */
    left: 52%; 
    transform: translate(-50%, -50%); 
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 3s ease-in-out infinite;
}

.image-container img {
    width: 100%; /* Ensure the image fits the container */
    height: auto; /* Maintain aspect ratio */
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 0.9rem;
    }

    .button {
        font-size: 0.6rem;
        padding: 8px 16px;
    }

    .image-container {
        width: 100%;
        max-width: 250px;
    }

    .links a, .store a {
        width: 40px;
        height: 40px;
        margin: 3px;
    }

    .contact-form input, .contact-form textarea, .contact-form button {
        width: 100%;
    }

}

/* Updated spectrum visualization styles with animation */
.spectrum {
    display: flex; 
    flex-direction: row;
    gap: 2px; 
    transform: translateY(5px); 
}

.bar {
    display: inline-block; 
    width: 5px; 
    height: 50px; 
    background-color: #fff; 
    opacity: 0.5; 
    transform: scaleY(1); 
    transform-origin: bottom; 
    transition: transform 0.1s ease-out; 
}

#spectrum-left {
    transform: translateY(5px) scaleX(-1); 
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10%; 
    border: 2px solid #fff; /* White halo effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 18px; /* Adjust size of the icons */
    color: #fff; /* White logo color */
    background-color: transparent;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

 /* Icons inside social-icon class */
.social-icon .icon {
    position: relative;
    z-index: 2; /* Ensuring the icon is above particles */
}

.icon-particule {
    position: absolute;
    background-color: #000;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow: 0 0 2px #fff;
}

/* Apply specific icon classes for each platform */
.youtube::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Youtube.png');
}

.audius::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Audius.png');
}

.twitter::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/X.png');
}

.fiverr::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Fiverr.png');
}

.soundcloud::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Soundcloud.png');
}

.links a {
    background-image: url('https://twistedtronic.com/images/Youtube.png');
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ensure icons cover the whole button space */
}

.spotify::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Spotify.png');
}

.apple::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Apple.png');
}

.reddit::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Reddit.png');
}

.amazon-music::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Amazon.png');
}

.pandora::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Pandora.png');
}

.tidal::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Tidal.png');
}

.deezer::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Deezer.png');
}

.social-icon.reddit, .social-icon.amazon-music, .social-icon.pandora, .social-icon.tidal, .social-icon.deezer {
    background-color: #000;
    border: 2px solid #fff;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.social-icon.reddit:hover, .social-icon.amazon-music:hover, .social-icon.pandora:hover, .social-icon.tidal:hover, .social-icon.deezer:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Add styles for the floating navigation links */
.floating-nav {
    position: fixed;
    top: 70px; /* Positioned below the floating player */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.floating-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.floating-nav li {
    cursor: pointer;
    transition: color 0.3s ease;
}

.floating-nav li:hover {
    color: #777;
}

.floating-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .floating-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }

    .floating-nav a {
        font-size: 0.8rem;
    }

    .floating-nav {
        padding: 8px 0;
    }
}

#home, #about, #follow, #explore, #contact, #web3, #hire {
    padding-top: 150px; /* Adjusted padding to ensure titles appear below the floating navigation */
}

/* Ensuring the video is responsive and centered inside the Explore section */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 200px); /* Reduced height factoring in surrounding content */
    overflow: hidden;
    position: relative;
    background-color: #000;
}

video {
    width: 100%;
    height: auto;
    max-height: 100%;
}

@media (max-width: 600px) {
    .video-container {
        height: calc(100vh - 150px); /* Adjust height for mobile view */
    }
}

.links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 81px;
    transition: all 0.2s ease;
}

#follow h1 {
    margin-bottom: 30px;
}

#about { text-align: center; }

#about p {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Styles for mini audio players */
.mini-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.mini-player {
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: glow 1.5s infinite alternate; /* Keeping the glowing animation */
}

.mini-player::before {
    border-style: none; /* Remove triangle style from play button */
}

.mini-player.paused::before {
    content: ''; /* Add style for pause button */
    position: absolute;
    left: calc(50% - 5px);
    top: 50%;
    width: 1px;
    height: 15px;
    background-color: white;
    border-radius: 0;
    transform: translateY(-50%);
    display: block;
}

.mini-player.paused::after {
    content: '';
    position: absolute;
    left: calc(50% + 5px);
    top: 50%;
    width: 1px;
    height: 15px;
    background-color: white;
    border-radius: 0;
    transform: translateY(-50%);
}

.mini-player.playing::before {
    content: ''; /* Ensure play state does not show pause bars */
}

.mini-player:hover {
    transform: scale(1.1);
}

.mini-player.playing::after {
    display: none;
}

.mini-player.paused::before, .mini-player.paused::after {
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.web3-links {
    padding: 20px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.web3-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-size: 80% 80%; 
    background-position: center;
}

.web3-links a:hover {
    background-color: #fff;
    color: #000;
}

.farcaster::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Farcaster.png');
}

.firefly::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Firefly.png');
}

.soundxyz::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/SoundXYZ.png');
}

.objkt::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Objkt.png');
}

.manifold::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Manifold.png');
}

.driphaus::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/DRiP.png');
}

.bondex::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Bondex.png');
}

.linkedin::before {
    content: "";
    background-image: url('https://twistedtronic.com/images/Linkedin.png');
}

.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #777;
    background-color: #000;
}
