/* hero-3d.css */
.hero-3d-section {
    position: relative;
    width: 100%;
    background-color: #0d0e15; /* Dark modern theme */
    padding: 60px 0;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-3d-header {
    text-align: center;
    margin-bottom: 30px;
    z-index: 2;
    padding: 0 20px;
}

.hero-3d-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif;
}

.hero-3d-subtitle {
    font-size: 1.1rem;
    color: #a0a5b1;
    font-weight: 400;
}

.hero-3d-canvas-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #11131c;
    cursor: grab;
}

.hero-3d-canvas-container:active {
    cursor: grabbing;
}

.hero-3d-canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

/* Loader */
.hero-3d-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #ff6b6b;
    font-weight: 600;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.hero-3d-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 107, 0.2);
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-3d-canvas-container {
        height: 500px;
        width: 95%;
    }
    .hero-3d-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-3d-section {
        padding: 40px 0;
    }
    .hero-3d-canvas-container {
        height: 400px;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .hero-3d-title {
        font-size: 1.6rem;
    }
    .hero-3d-subtitle {
        font-size: 0.9rem;
    }
}
