@font-face {
    font-family: font1;
    src: url(../fonts/Dracutaz.ttf);
}

html{
    scroll-behavior: smooth;
    scrollbar-color: var(--ColorText) var(--Boxshadow);
    scrollbar-width: thin;
}

:root {
    --ColorText: #ffffff; /* Blanco */
    --backgroundColorCards: #2c2c2ca9; /* Gris oscuro */
    --borderColor: #44444400; /* Gris medio */
    --Boxshadow: rgba(0, 0, 0, 0.6);
    --lightshadow: rgba(255, 255, 255, 0.1);
    --blur: blur(15px);
}

body {
    color: var(--ColorText);
    font-family: font1;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, black, transparent);
    mask-image: linear-gradient(to bottom, black 80%, transparent);
}

.logo a img {
    height: 4rem;
    padding: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 1rem;
    margin: 0;
}

nav ul li a {
    color: var(--ColorText);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.4rem;
}

nav ul li a:hover {
    color: #bbbbbb;
}

#home {
    mask-image: linear-gradient(to bottom, black 77%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 77%, transparent 100%);
}

.mainCardContainer, .librarycontainer, .contactContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 2rem;
    
}

.mainCardContainer {
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 8rem;
    flex-wrap: wrap;
    height: 80vh;
    margin-top: 4rem;
}

.gradientOverlay {
    position: absolute;
    bottom: -2rem;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(180deg, rgba(2, 2, 2, 0), rgba(2, 2, 2, 1) 50%, rgba(2, 2, 2, 0));
    z-index: 50;
    backdrop-filter: blur(10px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
}

.mainCardContainerImage img {
    height: 100%;

}

.mainCardContainerText {
    height: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.mainCardContainerText h1 {
    font-size: 3rem;
    margin: 0;
}

.mainCardContainerText img{
    height: 8rem;
}


.serviceContainerCards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.serviceCard {
    background-color: var(--backgroundColorCards);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--Boxshadow);
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
  
}


.serviceCardImage img {
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.serviceCardContent {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.serviceCardContent h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.serviceCardContent p {
    font-size: 1rem;
    color: #bbbbbb;
}

.libraryCard img, .serviceCard img {
    width: 100%;
    border-radius: 10px;
}

h2 {
    text-align: center;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    border-top: 2px solid var(--borderColor);
}

/*dvd*/

.Libreria h2 {
    text-align: left;
}


.librarycontainer {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 20px;
}

.libraryCard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.tbl-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja DVD 3D */
.box-container {
    position: relative;
    width: 13rem;
    height: 23rem;
    perspective: 690px;
    filter: drop-shadow(10px 10px 7px rgba(0, 0, 0, 0.3));
    
}

.box {
    position: ab;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: translateZ(-14px) rotateY(10deg) rotateX(5deg);
    transition: transform 1s ease-in-out;
}



.tbl-cell:hover .box {
    transform: rotateY(200deg) rotateX(-15deg) scale(1.2);
    position: absolute;

}

.box div {
    position: absolute;
    background-color: rgb(0, 0, 0);
    backface-visibility: visible;
}

.front {
    width: 194px;
    height: 345px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: solid 5px #333;
    transform: rotateY(0deg) translateZ(14px);
    
}


.back {
    width: 194px;
    height: 345px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border: solid 5px #333;
    transform: rotateY(180deg) translateZ(14px);
}

.left {
    width: 28px;
    height: 345px;
    background-position: 265px 0px;
    border: solid 5px #333;
    transform: rotateY(-90deg) translateZ(14px);
}

.right {
    width: 28px;
    height: 345px;
    transform: rotateY(90deg) translateZ(180px);
    background-color: rgba(0, 0, 0, 0.7);
}

.top, .bottom {
    width: 200px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.7);
}

.top {
    transform: rotateX(90deg) translateZ(14px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(331px);
}

.buy-tag {
    position: absolute;
    font-family: font1;
    font-size: 1.5rem;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(79, 186, 79, 0.468), rgba(34, 139, 34, 0.37));
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

/*music section*/

.music {
    padding: 2rem;
    color: var(--ColorText);
}

.musicCardContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.musicCard {
    background-color: var(--backgroundColorCards);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--Boxshadow);
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.musicCard:hover {
    transform: scale(1.05);
}

.musicCard img {
    width: auto;
    height: auto;
    border-radius: 10px;
}

.musicCard h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.musicCard p {
    font-size: 1rem;
    color: #bbbbbb;
}

/* Overlay for buttons with entrance animation */
.btnOverlayContainerLinks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}

/* When the card is hovered, show the overlay and trigger animations */
.musicCard:hover .btnOverlayContainerLinks {
    opacity: 1;
}

/* Vertical separator line that appears in the middle */
.btnOverlayContainerLinks::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 0;
    background-color: var(--ColorText);
    opacity: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: lineAppear 0.5s forwards;
    animation-delay: 0.3s;
}

/* Icon styles with initial hidden state */
.btnOverlayContainerLinks a {
    color: var(--ColorText);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 100%;
    font-size: 2rem;
    transition: background 0.3s;
    opacity: 0;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    display: flex;
    text-decoration: none;
    height: 3rem;
    width: 3rem;
}

/* Entrance animations for icons: first slides from left, second from right */
.musicCard:hover .btnOverlayContainerLinks a:nth-child(1) {
    animation: slideInLeft 0.5s forwards;
}

.musicCard:hover .btnOverlayContainerLinks a:nth-child(2) {
    animation: slideInRight 0.5s forwards;
}

/* Hover state for buttons */
.btnOverlayContainerLinks a:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Keyframes for sliding in from left */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyframes for sliding in from right */
@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyframes for the vertical line appearance */
@keyframes lineAppear {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 60%;
        opacity: 1;
    }
}

/*overlay*/

.overlayImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    pointer-events: none;
    transform: translateY(0%) translateX(0%);
    object-fit: fill;
}

.overlayImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
}

.mainCardContainer {
    position: relative;
    z-index: -1;
    overflow: hidden;
}


/*contact section*/

#contact {
    padding: 2rem;
    color: var(--ColorText);
}

#contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contactContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    flex-direction: row;
}

.contactContainer::before,
.contactContainer::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 1px;
    background-color: var(--ColorText);
}

.contactContainer::before {
    left: 0;
}

.contactContainer::after {
    right: 0;
}

.socialMediaContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.socialMedia {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socialMedia a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.socialMedia a img:hover {
    transform: scale(1.1);
}

.logo img {
    height: 80px;
}

.socialMedia i {
    font-size: 2rem;
    color: var(--ColorText);
}