/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background-color: #0a0a0a;
    line-height: 1.6;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 2rem;
}

.header-solid {
    position: relative;
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: #ffffff;
    text-decoration: none;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hero Section (Homepage) */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.jpg') center center / cover no-repeat;
    background-color: #0a1628;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 10, 30, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Page Hero (Subpages) */
.page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #102040 50%, #0a1628 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: #fff;
}

/* Content Sections */
.content-section {
    background-color: #111;
    padding: 5rem 2rem;
}

.content-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    color: #999;
    font-size: 1.05rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.6rem;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
}

.content-block p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Dividers */
.divider {
    width: 50px;
    height: 2px;
    background-color: #4a9ead;
    margin: 0 auto 1.5rem;
}

.divider-left {
    margin: 0 0 1.5rem 0;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: #1a1a1a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.team-card:hover {
    border-color: #4a9ead;
}

.team-avatar {
    margin-bottom: 1.5rem;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2a3a, #2a3a4a);
    border: 2px solid #333;
    margin: 0 auto;
}

.team-avatar img {
    width: 120px;
    height: 120px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #333;
    margin: 0 auto;
    display: block;
}

.team-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0.3rem;
}

.team-role {
    font-size: 0.85rem;
    color: #4a9ead;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

.team-linkedin {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    transition: color 0.3s;
}

.team-linkedin:hover {
    color: #4a9ead;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background-color: #1a1a1a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.article-card:hover {
    border-color: #4a9ead;
    transform: translateY(-2px);
}

.article-date {
    font-size: 0.75rem;
    color: #4a9ead;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.article-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.article-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: #666;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.05em;
}

/* Contact Section */
.contact {
    background-color: #1a1a1a;
    padding: 5rem 2rem;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2rem;
    color: #d4d4d4;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: transparent;
    border: 1px solid #555;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4a9ead;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #4a9ead;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-send {
    align-self: center;
    padding: 0.7rem 2.5rem;
    background-color: #ffffff;
    color: #000;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 0.5rem;
}

.btn-send:hover {
    background-color: #4a9ead;
    color: #fff;
}

/* Article Page */
.article-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.article-meta .article-tag {
    font-size: 0.7rem;
    color: #4a9ead;
    border: 1px solid #4a9ead;
    border-radius: 3px;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-content {
    background-color: #111;
    padding: 4rem 2rem;
}

.article-inner {
    max-width: 780px;
    margin: 0 auto;
}

.article-lead {
    font-size: 1.15rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.8rem;
    color: #e0e0e0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: #d0d0d0;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-content ul,
.article-content ol {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: #e0e0e0;
}

.article-content em {
    color: #ccc;
}

.article-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
    background-color: #1a1a1a;
    color: #4a9ead;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.article-content pre {
    background-color: #0d0d0d;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Syntax highlighting */
.article-content pre .kw { color: #c586c0; }
.article-content pre .cls { color: #4ec9b0; }
.article-content pre .fn { color: #dcdcaa; }
.article-content pre .str { color: #ce9178; }
.article-content pre .num { color: #b5cea8; }
.article-content pre .cmt { color: #6a9955; }
.article-content pre .deco { color: #d7ba7d; }

.article-divider {
    border: none;
    height: 1px;
    background-color: #222;
    margin: 3rem 0;
}

.article-figure {
    margin: 2rem 0;
}

.article-figure img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #222;
}

.article-figure figcaption {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.6rem;
    line-height: 1.5;
    font-style: italic;
}

.article-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.article-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    color: #4a9ead;
    border-bottom: 2px solid #333;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.article-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    color: #bbb;
}

.article-table tr:hover td {
    background-color: #151515;
}

.article-tech-note {
    text-align: center;
    color: #666 !important;
    font-size: 0.85rem !important;
}

.article-attribution {
    background-color: #1a1a1a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 2rem;
    margin-top: 2rem;
}

.article-attribution p {
    color: #999 !important;
    font-size: 0.9rem !important;
}

.article-attribution a {
    color: #4a9ead;
    text-decoration: none;
    transition: color 0.3s;
}

.article-attribution a:hover {
    color: #fff;
}

.article-authors {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.article-authors h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.article-authors ul {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-authors li {
    margin-bottom: 0 !important;
}

.article-authors a {
    color: #4a9ead;
    text-decoration: none;
    font-size: 0.9rem;
}

.article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (max-width: 768px) {
    .article-content {
        padding: 2.5rem 1.5rem;
    }
    .article-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    .article-authors ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 2rem;
    border-top: 1px solid #222;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #0a0a0a;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid #222;
    }

    .nav-links.open {
        display: flex;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .page-hero {
        padding: 5rem 1.5rem 3rem;
    }

    .team-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
