/* Card Hover Effect - Switch from card.png to card2.png */

.card-hover-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.card-image {
    transition: opacity 0.3s ease;
}

.card-hover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero/card2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-hover-container:hover .card-image {
    opacity: 0;
}

.card-hover-container:hover::before {
    opacity: 1;
}

/* Ensure smooth transition */
.card-hover-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.card-hover-container:not(:hover) {
    transform: scale(1);
    transition: transform 0.3s ease;
}

/* Sketch Hover Effect - Switch from sket1.png to sket2.png */

.sket-hover-container {
    position: relative;
    display: inline-block;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sket-image {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) drop-shadow(0 0 0px rgba(139, 92, 246, 0));
}

.sket-hover-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/tv/sket2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: scale(0.95) rotate(-2deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Button hover triggers sketch change - using JavaScript classes */
.sket-hover-container.button-triggered .sket-image {
    opacity: 0;
    transform: scale(0.98) rotate(1deg);
    filter: brightness(0.8) drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.sket-hover-container.button-triggered::before {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.sket-hover-container.button-triggered {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(139, 92, 246, 0.4));
}

/* TV Screen Content Container */
.tv-screen-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25vw;
    height: 25vw;
    border-radius: 12px;
    z-index: 1;
    /* Enhanced Convex TV Screen Effect */
    transform: translate(-50%, -50%) perspective(500px) rotateX(15deg) rotateY(0deg) scale(1.02);
    box-shadow:
        inset -20px -20px 40px rgba(0, 0, 0, 0.4),
        inset 20px 20px 40px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.3);
    overflow: hidden;
}

/* All TV Screen Content Elements */
#tv-screen-video,
#snake-game,
#meme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    filter: brightness(0.95) contrast(1.05);
}

/* Snake Game Canvas Specific */
#snake-game {
    background: #000;
}

/* TV Screen Video Effects */
.tv-screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(transparent 50%, rgba(139, 92, 246, 0.03) 50%),
        radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.1) 70%);
    background-size: 100% 4px, 100% 100%;
    pointer-events: none;
    z-index: 1;
    animation: tvScanlines 0.1s linear infinite;
    border-radius: 12px;
}

@keyframes tvScanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Responsive TV Screen Content */
@media (max-width: 768px) {
    .tv-screen-content {
        width: 28vw;
        height: 28vw;
        transform: translate(-50%, -50%) perspective(400px) rotateX(12deg) rotateY(0deg) scale(1.01);
    }
}

@media (max-width: 480px) {
    .tv-screen-content {
        width: 32vw;
        height: 32vw;
        transform: translate(-50%, -50%) perspective(350px) rotateX(10deg) rotateY(0deg) scale(1.01);
    }
}

@media (max-width: 360px) {
    .tv-screen-content {
        width: 36vw;
        height: 36vw;
        transform: translate(-50%, -50%) perspective(300px) rotateX(8deg) rotateY(0deg) scale(1.01);
    }
}

/* Social Media Icons - Retro Style */
.social-icons-container {
    z-index: 20;
}

.social-icon-link {
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.social-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) drop-shadow(0 0 0px rgba(139, 92, 246, 0));
}

/* Retro Hover Effects for Social Icons */
.social-icon-link:hover .social-icon {
    transform: scale(1.1) translateY(-2px);
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.social-icon-link:hover {
    transform: translateY(-1px);
}

/* Retro Glow Animation */
.social-icon-link {
    position: relative;
}

.social-icon-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.social-icon-link:hover::before {
    opacity: 1;
}

/* Scanline Effect for Social Icons */
.social-icons-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(transparent 50%, rgba(139, 92, 246, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    animation: socialScanlines 0.15s linear infinite;
}

@keyframes socialScanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Responsive Design for Social Icons */
@media (max-width: 768px) {
    .social-icons-container {
        left: 4px;
        gap: 3px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon-link::before {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .social-icons-container {
        left: 2px;
        gap: 2px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon-link::before {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 360px) {
    .social-icons-container {
        left: 1px;
        gap: 1px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon-link::before {
        width: 42px;
        height: 42px;
    }
}

/* Retro Action Buttons */
.retro-action-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #53d8d7;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.retro-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(83, 216, 215, 0.2), transparent);
    transition: left 0.5s ease;
}

.retro-action-btn:hover::before {
    left: 100%;
}

.retro-action-btn .btn-text {
    color: #53d8d7;
    text-shadow:
        0 0 5px #53d8d7,
        0 0 10px #53d8d7,
        0 0 15px #53d8d7;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.retro-action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(83, 216, 215, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: #8b5cf6;
}

.retro-action-btn:hover .btn-text {
    color: #8b5cf6;
    text-shadow:
        0 0 8px #8b5cf6,
        0 0 15px #8b5cf6,
        0 0 25px #8b5cf6;
}

.retro-action-btn:active {
    transform: translateY(0) scale(1.02);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Copy Button Specific */
.copy-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-color: #53d8d7;
}

.copy-btn:hover {
    border-color: #22c55e;
}

.copy-btn:hover .btn-text {
    color: #22c55e;
    text-shadow:
        0 0 8px #22c55e,
        0 0 15px #22c55e,
        0 0 25px #22c55e;
}

/* Buy Button Specific */
.buy-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-color: #53d8d7;
}

.buy-btn:hover {
    border-color: #f59e0b;
}

.buy-btn:hover .btn-text {
    color: #f59e0b;
    text-shadow:
        0 0 8px #f59e0b,
        0 0 15px #f59e0b,
        0 0 25px #f59e0b;
}

/* Action Buttons Container */
.action-buttons-container {
    align-items: flex-start;
}

/* Responsive Updates for Social Actions Container */
@media (max-width: 768px) {
    .social-actions-container {
        left: 1rem;
        gap: 1rem;
    }

    .retro-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-actions-container {
        left: 0.5rem;
        gap: 0.8rem;
    }

    .retro-action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .social-actions-container {
        left: 0.25rem;
        gap: 0.6rem;
    }

    .retro-action-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.6rem;
    }
}