/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #f8faff;
    color: #fff;
    overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 98px;
    /* keeps content clear of navbar */
    box-sizing: border-box;
    overflow: hidden;
}

/* ===== Animated Gradient BG ===== */
.collage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, #1e2f5e 0%, #2856a6 80%);
    background-size: 300% 300%;
    animation: bgmove 17s ease-in-out infinite;
}

@keyframes bgmove {
    0% {
        background-position: 0% 40%;
    }

    50% {
        background-position: 100% 60%;
    }

    100% {
        background-position: 0% 40%;
    }
}

/* ===== Collage Grid ===== */
.hero-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    grid-auto-rows: 90px;
    gap: 4px;
    z-index: 1;
    pointer-events: auto;
}

.collage-item {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 1.5px 6px rgba(30, 47, 94, 0.10);
    transition: transform 0.17s cubic-bezier(.4, 2, .6, 1), box-shadow 0.13s;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    display: block;
    transition: transform 0.17s cubic-bezier(.4, 2, .6, 1);
}

.collage-item:hover,
.collage-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(40, 86, 166, 0.13);
    z-index: 2;
}

/* ===== Glassy Centered Box (Navbar-style) ===== */
.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    text-align: center;
    background: rgba(30, 47, 94, 0.23);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 6px 25px 0 rgba(30, 47, 94, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.9s ease-out;
    margin-top: 10px;
}

/* ===== Text ===== */
.hero-overlay h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.hero-overlay p {
    font-size: 1.25rem;
    color: #eaeaea;
    margin-bottom: 20px;
}

.hero-stat {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 22px;
    color: #fff;
}

/* ===== Search Bar ===== */
.hero-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.hero-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.hero-search button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.16);
    font-weight: 700;
    background: rgba(30, 47, 94, 0.62);
    color: #fff;
    cursor: pointer;
    transition:
        background 0.14s,
        box-shadow 0.15s,
        border-color 0.13s,
        transform 0.16s;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 12px rgba(30,47,94,0.09);
}

.hero-search button:hover,
.hero-search button:focus {
    background: rgba(40, 86, 166, 0.7);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 4px 20px rgba(40,86,166,0.13);
    color: #fff;
    transform: scale(1.04);
}

/* ===== Buttons ===== */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.hero-btn {
    font-size: 1.13rem;
    font-weight: 700;
    padding: 0.92rem 2.1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 2.5px 12px rgba(30,47,94,0.08);
    letter-spacing: 0.01em;
    display: inline-block;
    border: none;
}

.hero-btn-primary {
    background: rgba(30, 47, 94, 0.62);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.13);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: rgba(40, 86, 166, 0.7);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 6px 24px rgba(40, 86, 166, 0.16);
    color: #fff;
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(6px) saturate(112%);
    -webkit-backdrop-filter: blur(6px) saturate(112%);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus {
    background: rgba(255,255,255,0.31);
    color: #e6edfa;
    border-color: #b1c8fa;
    transform: scale(1.03);
}


/* ===== Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero {
        padding-top: 72px;
    }

    .hero-overlay {
        max-width: 98vw;
        padding: 18px 3vw;
        border-radius: 13px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-collage {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        grid-auto-rows: 58px;
        gap: 3px;
        padding: 10px 2vw 6px 2vw;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 0.7rem 1.3rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 40px;
    }

    .hero-overlay {
        padding: 8px 0.5vw;
        border-radius: 8px;
    }

    .hero-overlay h1 {
        font-size: 1.17rem;
    }

    .hero-collage {
        gap: 2px;
        padding: 5px 0;
    }
}