﻿/* ===== Base reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #000000;
    color: #e0e8ff;
    line-height: 1.5;
}

/* ===== Layout wrapper ===== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #06101f 0, #000000 60%);
}

/* ===== Header ===== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5vw;
    border-bottom: 1px solid #101726;
    background: linear-gradient(to right, #02040a, #050a15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.logo-mark {
    color: #00c8ff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.logo-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #a9b8ff;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00aaff, #00f0ff);
    box-shadow: 0 0 6px #00c8ff;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== Main content ===== */
.site-main {
    flex: 1;
    padding: 2rem 5vw 3rem;
}

/* Hero section */
.hero-section {
    padding: 2.5rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    max-width: 720px;
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1rem;
    color: #c3d0ff;
    margin-bottom: 1.5rem;
}

.primary-button {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0077ff, #00e5ff);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.65);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
    box-shadow: 0 0 18px rgba(0, 230, 255, 0.8);
}

/* ===== Content grid (MSN-style cards) ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.content-card {
    background: radial-gradient(circle at top left, #081425 0, #02040a 55%);
    border-radius: 0.75rem;
    border: 1px solid #101726;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: #00aaff;
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.35);
}

.card-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* ===== NEW: Responsive images ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video placeholder styling */
.video-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7ea9ff;
    font-size: 0.9rem;
    border-bottom: 1px solid #101726;
    background: repeating-linear-gradient(
        135deg,
        #050912,
        #050912 6px,
        #070e1a 6px,
        #070e1a 12px
    );
}

.card-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-body h2 {
    font-size: 1.05rem;
    color: #ffffff;
}

.card-body p {
    font-size: 0.9rem;
    color: #c3d0ff;
}

.card-link {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #00c8ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    position: relative;
}

.card-link::after {
    content: "→";
    margin-left: 0.4rem;
    transition: transform 0.18s ease;
}

.card-link:hover::after {
    transform: translateX(2px);
}

/* ===== Links general ===== */
a {
    color: #00c8ff;
}

a:hover {
    color: #5ae3ff;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid #101726;
    background: linear-gradient(to right, #02040a, #050a15);
    padding: 1.8rem 5vw 1rem;
    color: #9cacff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-column h3 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a {
    text-decoration: none;
    color: #9cacff;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #101726;
    padding-top: 0.7rem;
    font-size: 0.8rem;
    text-align: center;
    color: #6f7ab7;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-section {
        padding-top: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }
}
