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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    color: #F8FAFC;
    overflow-x: hidden;
    line-height: 1.6;
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    z-index: 9;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:0.75rem 1rem;
}
.logo {
    font-size: 1rem;
    font-weight: 700;
    color: #F8FAFC;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
}
.logo::before {
    content: "";
    width: 32px;
    height: 32px;
    background-image: url('./media/CFClogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    border-radius: 10px;
}
.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.nav-links a {
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    color: #F8FAFC;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: -0.025em;
    transition: all 0.3s ease;
    padding: 0.25rem 1rem;
}
.nav-links a:hover {
    color: #3B82F6;
}
.nav-signup {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border: none;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: -0.025em;
}
.nav-signup:hover {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    padding: 2.5rem 1rem 0;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3B82F6;
    margin-bottom: 3rem;
    margin-top: 2rem;
}
.hero-badge::before {
    content: "🚀";
    font-size: 1rem;
}
.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #F8FAFC;
}
.hero-title .highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #F59E0B 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    margin-bottom: 3rem;
    color: #CBD5E1;
    line-height: 1.7;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
    color: #1F2937;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.025em;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}
.cta-button:hover {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}
.hero-image img{
    width: 100px;
    margin-top: 3rem;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 20;
    animation: fadeIn 0.3s ease;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #0F172A;
    padding: 1rem;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    height: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}
.close {
    position: absolute;
    top: 0rem;
    right: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #64748B;
    transition: color 0.3s ease;
}
.close:hover {
    color: #F8FAFC;
}
.modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    /* color: #F8FAFC; */
    background: linear-gradient(135deg, #3B82F6, #F8FAFC);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
iframe {
    border-radius: 10px;
    /* font-display: swap; */
    background-color: #64748B;
}
/* Footer */
footer {
    background: rgba(15, 23, 42, 0.6);
    /* border-top: 1px solid gold; */
    font-size: smaller;
    margin-top: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

/* Blog page: concise, card-like posts */
main {
    max-width: 900px;
    margin: 6rem auto 4rem;
    padding: 1rem;
}

#blogContainer article {
    background: rgba(15,23,42,0.6);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(2,6,23,0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#blogContainer article:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2,6,23,0.7);
}

#blogContainer article h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #F8FAFC;
}
#blogContainer article h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #93C5FD;
}

#blogContainer article cite,
#blogContainer article time,
#blogContainer article span {
    display: inline-block;
    margin-right: 0.6rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

#blogContainer article p {
    margin-top: 0.6rem;
    color: #E6EEF8;
    line-height: 1.7;
}

/* Small screens: tighten spacing */
@media (max-width: 640px) {
    #blogContainer article { padding: 0.9rem; }
    main { margin: 5.5rem 0 2rem; padding: 0.8rem; }
}

/* Blog: sort select styling */
#sortBy {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    background-color: #0F172A; /* ensure dark behind native dropdown */
    border: 1px solid rgba(255,255,255,0.06);
    color: #F8FAFC;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-left: 0.5rem;
    min-width: 180px;
    cursor: pointer;
}
#sortBy:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.6);
}

/* Native option styling (best-effort across browsers) */
#sortBy option {
    background-color: #0F172A;
    color: #F8FAFC;
}

/* Windows/Edge: ensure dropdown text uses theme color */
#sortBy::-ms-expand { display: inline-block; }

/* ensure label/select layout */
main > div { margin-bottom: 1rem; color: #CBD5E1; }
main label { font-weight: 600; margin-right: 0.4rem; }