/* ===== V2 HACK SECTION ===== */
.hack-v2-section {
    padding: 80px 2%;
    background: linear-gradient(to right, #000, #1a0000);
    color: white;
    position: relative;
    overflow: hidden;
    /* Ensures laser doesn't overflow section */
}

/* ===== INDEPENDENT LASER LAYER ===== */
#laser-container {
    position: absolute;
    /* Independent Control Variables */
    top: 50%;
    left: 77%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1);

    /* Layering */
    z-index: 0;
    pointer-events: none;
    /* Let clicks pass through */

    /* Ensure it behaves like a background */
    display: block;
}

/* Ensure content stays above laser */
.hack-v2-wrapper,
.hack-v2-bottom {
    position: relative;
    z-index: 2;
}

.hack-v2-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* LEFT */
.hack-v2-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D TILT EFFECT CSS */
.tilt-container {
    perspective: 1000px;
    width: 100%;
    max-width: 600px;
    position: relative;
    cursor: pointer;
}

.tilt-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0) rotateY(0);
    transition: transform 0.1s ease-out;
    /* Smooth follow */
}

/* Image Styling */
.tilt-inner img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 0, 0, 0.2);
    display: block;
}

/* Shine Effect */
.tilt-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.3s;
    z-index: 10;
}

/* RIGHT */
.hack-v2-right {
    flex: 1;
}

.hack-v2-title {
    font-size: 42px;
    color: #ff0000;
    margin-bottom: 20px;
}

.hack-v2-subtitle {
    color: #ff4d4d;
    font-size: 14px;
    margin-bottom: 10px;
}

.hack-v2-desc {
    line-height: 1.6;
    margin-bottom: 30px;
}

.hack-v2-highlight {
    color: #ff3333;
}

/* PRIZES */
.hack-v2-prizes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.hack-v2-card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.hack-v2-first {
    grid-column: span 2;
}

/* BUTTONS - Glassy Design */
.hack-v2-buttons {
    display: flex;
    gap: 20px;
}

.hack-v2-primary {
    padding: 12px 30px;
    background: rgba(255, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 0, 0.4);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.hack-v2-primary:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hack-v2-outline {
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 0, 0.4);
    color: #ff0000;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.15),
        inset 0 0 15px rgba(255, 0, 0, 0.05);
}

.hack-v2-outline:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.6);
    color: white;
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.3),
        inset 0 0 25px rgba(255, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* BOTTOM CTA - Glassy Design */
.hack-v2-bottom {
    margin-top: 70px;
    text-align: center;
}

.hack-v2-explore {
    padding: 16px 70px;
    background: rgba(255, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: white;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.25),
        inset 0 0 25px rgba(255, 0, 0, 0.1);
}

.hack-v2-explore:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.7);
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hack-v2-wrapper {
        flex-direction: column;
    }

    .hack-v2-prizes {
        grid-template-columns: 1fr;
    }

    .hack-v2-first {
        grid-column: span 1;
    }

    .hack-v2-buttons {
        flex-direction: column;
    }
}

/* Glassy Override for Cyber Buttons in Hack-v2 Section */
.hack-v2-section .cyber-btn,
.hack-v2-section .cyber-btn-outline {
    background: rgba(255, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 0, 0.4) !important;
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.hack-v2-section .cyber-btn {
    color: white !important;
}

.hack-v2-section .cyber-btn-outline {
    color: #ff0000 !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.hack-v2-section .cyber-btn:hover,
.hack-v2-section .cyber-btn-outline:hover {
    background: rgba(255, 0, 0, 0.25) !important;
    border-color: rgba(255, 0, 0, 0.6) !important;
    box-shadow:
        0 0 30px rgba(255, 0, 0, 0.4),
        inset 0 0 30px rgba(255, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}