/* ===== COGNILUME HERO SECTION STYLES ===== */
.cognilume-hero {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cognilume-hero h1 {
    font-size: 1.3rem;
    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: 10px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: 0;
    margin-right: 0;
}

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

.hero-text-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image-content img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

/* Button sizing adjustments */
.btn-signup,
.btn-outline {
    padding: 8px 18px;
    font-size: 0.7rem;
    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);
}

.hero-actions a[href=""] {
    display: none !important;
}

/* =========================================
   WHAT WE DO SECTION
   ========================================= */
.what-we-do-section {
    margin: 0 auto 15px;
    /* Centers the whole section */
    text-align: center;
}

/* --- Section Headers --- */
.what-we-do-section-label {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.what-we-do-section-header h2 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.what-we-do-section-header .highlight {
    color: #00d4ff;
    /* Highlights "Smarter Tomorrow" */
}

/* --- The Grid --- */
.services-grid {
    display: flex;
    /* Changed from grid to flex to force a single row */
    justify-content: center;
    align-items: stretch;
    /* Makes all cards the exact same height */
    gap: 20px;
    /* Tighter gap between cards */
    flex-wrap: nowrap;
    /* Prevents them from dropping to a second row on desktop */

    /* Optional: Adds a subtle gradient glow behind the whole row of cards */
    position: relative;
}

.services-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* --- Individual Cards --- */
.service-card {
    background: #030613;
    /* Deep, sleek dark background */
    border: 1px solid rgba(0, 212, 255, 0.1);
    /* Full, faint continuous border */
    border-radius: 14px;
    /* Fully rounded on ALL corners */
    padding: 10px;
    /* Balanced padding to give text room to breathe */
    flex: 1;
    min-width: 0;
    /* Allows cards to shrink evenly to fit all 6 in a row */

    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* The sleek glowing top edge from the reference */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* Creates a bright center that fades perfectly to the edges */
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Card Hover Glow Effect */
.service-card:hover {
    transform: translateY(-5px);
    background: #060a1c;
    /* Slightly lighter on hover */
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.05);
}

.service-card:hover::before {
    opacity: 1;
    /* Top line glows brighter on hover */
}

/* --- Icon & Typography Tweaks --- */
.service-card .icon {
    font-size: 2rem;
    /* Slightly smaller */
    margin-bottom: 5px;
}

.service-card h3 {
    font-size: 0.8rem;
    /* Smaller heading to match reference */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.service-card p {
    font-size: 0.7rem;
    /* Smaller, cleaner paragraph text */
    color: #8b95a5;
    /* Softer grey/blue text color */
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
    flex-grow: 1;
}

.learn-more {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.8rem;
    /* Smaller button text */
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #ffffff;
}

/* Styling for the empty database fallback message */
.empty-services-msg {
    color: #ffffff;
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
}

/* =========================================
   TECHNOLOGY STACK SECTION
   ========================================= */
.tech-stack-section {
    margin: 0 auto;
    text-align: center;
    max-width: 1200px;
    width: 80%;
}

.tech-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.tech-section-label {
    color: #00d4ff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.tech-stack-section h2 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

/* The dark bounded box from the design */
.tech-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: #030613;
    /* Deep dark background */
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 14px;
    padding: 15px 10px;
    gap: 20px;
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

/* Glowing top edge for the tech box */
.tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    min-width: 80px;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-name {
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 500;
}

/* ===== MOBILE VIEW STYLES ===== */
@media (max-width: 768px) {
    .cognilume-hero {
        padding: 15px 10px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* 1. Dissolve the text wrapper so we can mix its children with the image */
    .hero-text-content {
        display: contents;
    }

    /* 2. Set the exact vertical order for every piece */
    .cognilume-hero h1 {
        font-size: 1.25rem;
        margin-bottom: 5px;
        order: 1;
        /* First */
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
        order: 2;
        /* Second */
    }

    /* Puts the brain right after the subtitle */
    .hero-image-content {
        order: 3;
        /* Third */
        margin: 10px 0;
        /* Gives it a little breathing room */
    }

    /* Shrinks the image so everything fits on one screen */
    .hero-image-content img {
        max-width: 200px;
    }

    /* Pushes the buttons to the very bottom */
    .hero-actions {
        order: 4;
        /* Fourth */
        justify-content: center;
        flex-direction: row;
        /* Buttons side-by-side */
        gap: 10px;
        width: 100%;
    }

    /* Stops buttons from being massive */
    .btn-signup,
    .btn-outline {
        width: auto;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .what-we-do-section-header h2 {
        font-size: 1.2rem;
        /* Slightly larger so it reads as a heading */
        margin-bottom: 10px;
        padding: 0 10px;
        /* Stops text from hitting the very edge of the screen */
        line-height: 1.4;
        text-align: center
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        /* 🔥 Reduced from 15px to 10px to give cards more width */
    }

    .service-card {
        border-radius: 12px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        padding: 15px 8px;
        margin: 5px;
    }

    .service-card .icon {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 0.8rem;
        /* Scaled down slightly to prevent awkward word breaks */
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .service-card p {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .learn-more {
        font-size: 0.7rem;
    }

    .tech-stack-section {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 40px;
        box-sizing: border-box;
    }

    .tech-grid {
        width: 100%;
        padding: 20px 15px;
        gap: 20px 15px;
        justify-content: center;
        border-radius: 12px;
    }

    .tech-logo {
        width: 32px;
        height: 32px;
    }

    .tech-card {
        min-width: 65px;
        margin: 0;
    }

    .tech-stack-section h2 {
        font-size: 1.1rem;
    }
}