:root {
    --navy: #010b1f;
    --navy-light: #0c2340;
    --navy-glow: rgba(6, 49, 112, 0.65);
    --accent: #5bc0ff;
    --accent-soft: rgba(91, 192, 255, 0.2);
    --text-primary: #f7fbff;
    --text-muted: #9db5d1;
    --card-bg: rgba(4, 20, 52, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #051638, var(--navy));
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#particle-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 96px 0 120px;
}

.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0.1em 0;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5em;
}

.hero-subtitle,
.availability {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0.5em auto;
    line-height: 1.6;
}

.availability {
    font-weight: 500;
    color: var(--text-primary);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 72px;
}

.link-card {
    background: linear-gradient(120deg, rgba(91, 192, 255, 0.1), rgba(4, 20, 52, 0.6));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center; /* Center all main elements horizontally */
    gap: 16px;
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.link-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: linear-gradient(120deg, rgba(91, 192, 255, 0.25), rgba(4, 20, 52, 0.9));
}

.link-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff; /* white */
    text-align: center;
    width: 100%;
    margin-left: 0;
}

.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem; /* blue text is more readable */
    color: var(--accent);
    background: transparent;
    padding: 0; /* no text overflow */
}

.link-icon::after {
    content: attr(data-icon);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    display: block;
    width: 100%;
}

.link-arrow {
    margin-left: auto;
    font-size: 1.4rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    margin-top: 56px; /* Add extra space before major headings */
}

.section-heading h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.cards,
.project-list,
.framework-grid {
    display: grid;
    gap: 64px; /* wide spacing between cards */
    margin-bottom: 56px; /* Add space below card sections before next heading */
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.project-card,
.framework-card {
    background: var(--card-bg);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}

.card:hover,
.project-card:hover,
.framework-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(4, 12, 32, 0.6);
}

.card h3,
.project-card h3,
.framework-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p,
.project-card p {
    text-align: left;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.project-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 260px;
}

.impact {
    color: var(--accent);
    font-weight: 600;
}

.framework-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.framework-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer {
    text-align: center;
    margin-top: 88px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .page {
        padding: 72px 0 96px;
        width: 92vw;
    }

    .card,
    .project-card,
    .framework-card {
        padding: 22px;
    }
}


