/* Hide the background containers initially with a smooth fade-in transition */
#home .section,
#home .project-card,
#home .tech {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

/* Hide text elements initially so they don't flash on screen */
#home h2,
#home h3,
#home p,
#home li,
#home .tech span {
    visibility: hidden;
}

/* Blinking cursor styled to match your Cognilume theme */
.cursor {
    animation: blink 0.75s infinite;
    color: #00d4ff;
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Defines the subtle breathing animation for the glowing box */
@keyframes pulseGlow {
    0% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.8),
            0 0 15px rgba(184, 41, 227, 0.35),
            0 0 40px rgba(0, 212, 255, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }

    100% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(184, 41, 227, 0.55),
            /* Slightly richer purple at peak */
            0 0 65px rgba(0, 212, 255, 0.3),
            /* Slightly wider cyan at peak */
            inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }
}

/* ===== COGNILUME HERO SECTION STYLES ===== */
.cognilume-hero {
    /* Combined the deep dark gradient with a subtle white shine in the top left */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(135deg, #090b14 0%, #15193b 100%);

    color: white;
    text-align: center;
    padding: 35px 20px 40px 20px;
    margin-bottom: 50px;

    /* ===== NEW SHINY BOX EFFECTS ===== */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    /* Applies the breathing glow animation */
    animation: pulseGlow 4s infinite alternate ease-in-out;
    /* ================================= */

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;

    /* Keeps the box centered with a little breathing room on the sides */
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.cognilume-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(184, 41, 227, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cognilume-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #00d4ff, #b829e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #b0b8c1;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Button sizing adjustments */
.btn-signup,
.btn-outline {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-signup {
    background-color: #00d4ff;
    color: #090b14;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.btn-signup:hover {
    background-color: #33deff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* ===== MOBILE VIEW STYLES ===== */
@media (max-width: 768px) {
    .cognilume-hero {
        padding: 25px 15px 30px 15px;
        margin-bottom: 40px;
    }

    .cognilume-hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-signup,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        text-align: center;
    }
}