/* =====================
   BASE
===================== */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0b0f17;
    color: #e6e8eb;
}

/* =====================
   LINKS
===================== */

a {
    color: #4da3ff;
    text-decoration: none;
}

/* =====================
   HEADER
===================== */

.site-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(90deg, #0b1b33, #020814);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 600;
}

.logo span {
    font-size: 12px;
    color: #b8c2d8;
}

.site-nav a {
    margin-left: 18px;
    color: #cfd7ff;
    font-size: 14px;
}

.site-nav a:hover {
    color: #ffffff;
}

/* =====================
   MAIN
===================== */

main {
    position: relative;
    z-index: 1;
}

/* =====================
   HERO
===================== */

.hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 24s infinite;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.hero-slide:nth-child(1) { background-image: url('/assets/images/hero1.jpg'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url('/assets/images/hero2.jpg'); animation-delay: 6s; }
.hero-slide:nth-child(3) { background-image: url('/assets/images/hero3.jpg'); animation-delay: 12s; }
.hero-slide:nth-child(4) { background-image: url('/assets/images/hero4.jpg'); animation-delay: 18s; }

@keyframes heroFade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 { font-size: 42px; margin-bottom: 14px; }
.hero-content p { font-size: 18px; color: #cfd7ff; }

.hero-buttons {
    margin-top: 26px;
}

.hero-buttons a {
    display: inline-block;
    margin: 8px;
    padding: 14px 26px;
    background: #2563eb;
    color: #fff;
    border-radius: 4px;
}

/* =====================
   SECTIONS
===================== */

.section {
    padding: 60px 24px;
}

/* =====================
   CARDS
===================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.card {
    background: #121723;
    padding: 20px;
    border-radius: 8px;
}

/* =====================
   GALLERY — FINAL FIX
===================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.gallery-card {
    background: #121723;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* LOCK IMAGE SIZE */
.gallery-card img {
    width: 100%;
    height: 180px;          /* ← key fix */
    object-fit: cover;     /* crops cleanly */
    display: block;
}

/* label */

.gallery-card .label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
}

/* =====================
   FOOTER
===================== */

.site-footer {
    background: #020814;
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: #b8c2d8;
}
