/* === CSS VARIABLES & BASE === */
:root {
    /* Colors - Cyberpunk Dark Theme */
    --bg-main: #0a0a0f;
    --bg-alt: #12121a;
    --bg-dark-section: #08080c;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: #2a2a35;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cousine", monospace;
    
    /* Spacing & Layout */
    --container-width: 1280px;
    --section-padding: 6rem;
    
    /* Border Radius */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --shadow-hover: 0 8px 40px rgba(0, 240, 255, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

img {
    max-width: 100%;
    display: block;
}

/* === UTILITY CLASSES === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bg-main {
    background-color: var(--bg-main);
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* === HEADER & NAVIGATION === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero-section {
    padding: 10rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.site-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.site-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00c8d6 100%);
    color: var(--bg-main);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5);
}

/* === ARTICLE CARDS === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-meta {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.card-title-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 1.5rem 0.5rem;
    display: block;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.article-card:hover .card-title-link {
    color: var(--accent-primary);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 1.5rem 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.5rem 1.5rem;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.card-read-more:hover {
    gap: 0.75rem;
}

/* === EXPERTS SECTION === */
.bg-dark-section {
    background-color: var(--bg-dark-section);
    position: relative;
}

.bg-dark-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.squad-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.squad-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.squad-img-container {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark-section), var(--bg-dark-section)) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) border-box;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.squad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.squad-card:hover .squad-img {
    transform: scale(1.1);
}

.squad-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.squad-role {
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* === DISCUSSION & FORM === */
.discussion-section {
    padding: 4rem 0 6rem;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #5a00cc 100%);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.4);
}

/* === FOOTER === */
.site-footer {
    background-color: var(--bg-dark-section);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* === ARTICLE PAGE SPECIFIC === */
.prose {
    color: var(--text-secondary);
}

.prose h2 {
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.prose blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 2rem 0;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 3rem;
    }
    
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-tagline {
        font-size: 1.1rem;
    }
    
    .squad-img-container {
        width: 100px;
        height: 100px;
    }
}

/* === SELECTION STYLING === */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-section);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}