/* Modern AI Enterprise Design System */
:root {
    --primary: #eb1616;
    --primary-dark: #c8000b;
    --primary-light: rgba(235, 22, 22, 0.1);
    --dark: #0a0a0a;
    --dark-soft: #141414;
    --dark-muted: #1f1f1f;
    --text: #0a0a0a;
    --text-muted: #52525b;
    --white: #ffffff;
    --light: #fafafa;
    --light-alt: #f4f4f5;
    --border: #e4e4e7;
    --border-light: rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.7;
    background: var(--light);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Modern AI Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* Gradient text effect for emphasis */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 50%, #ffa726 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Centered Layout */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 56px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Navigation - Glass Effect */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--dark);
    background: var(--light);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-social {
    display: flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}

.nav-social a {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Page Header - Modern Gradient */
.page-header {
    padding: 100px 1.5rem 40px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 50%, var(--dark-muted) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-header h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Section */
.section {
    padding: 60px 1.5rem;
    background: var(--white);
}

.section-alt {
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff4444);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card .date {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.card p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.25rem 0.6rem;
    background: var(--light);
    color: var(--text-muted);
    font-size: 0.65rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(235, 22, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 22, 22, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* Outline button on dark backgrounds */
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--dark);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 2.5rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-weight: 600;
    font-size: 1rem;
}

footer p {
    opacity: 0.5;
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.footer-social a {
    color: var(--white);
    opacity: 0.7;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary);
    background: rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--light);
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
    }
    .nav-links a:hover {
        background: var(--light);
    }
    .nav-social {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        justify-content: center;
    }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    .nav-container {
        position: relative;
    }
    .page-header { padding: 80px 1rem 30px; }
    .page-header h1 { font-size: 1.5rem; }
    .section { padding: 40px 1rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
