/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.65; 
    color: #2d3748; 
    background: #fafafa; 
    font-weight: 400;
    letter-spacing: -0.01em;
    /* text-align: justify; */
}
a, button { text-decoration: none; font-family: inherit; }

/* Typography Enhancements */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a202c;
}
p {
    font-weight: 400;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Sticky Navbar */
nav { 
    position: sticky; 
    top: 0; 
    width: 100%; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid #eaeaea; 
    z-index: 1000; 
}
.nav-content { 
    display: flex; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem 2rem; 
    position: relative;
}
.nav-logo { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}
.nav-logo img { height: 32px; }
.nav-logo span { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #111; 
    letter-spacing: -0.02em;
}
.nav-right { 
    display: flex; 
    align-items: center; 
    margin-left: auto; 
    gap: 2rem; 
}
.nav-links { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
}
.nav-links a { 
    position: relative; 
    font-weight: 500; 
    color: #333; 
    padding: 0.5rem 0; 
    transition: color 0.2s;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.nav-links a::after { 
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: black; 
    transition: width 0.3s ease; 
}
.nav-links a:hover { color: black; }
.nav-links a:hover::after { width: 100%; }
.nav-button { 
    padding: 0.75rem 1.75rem; 
    font-size: 0.95rem; 
    font-weight: 500;
    height: 3rem; 
    border: none; 
    border-radius: 0.5rem; 
    background: black; 
    color: #fff; 
    cursor: pointer; 
    transition: all 0.3s; 
    letter-spacing: 0.01em;
}
.nav-button:hover { 
    background: rgb(40, 40, 40); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    margin-left: auto;
}
.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}
.hamburger.active .hamburger-bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #d0f0fa, #ffffff);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(120deg, #1a202c 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}
.blog-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.blog-content { margin-bottom: 3rem; }
.blog-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1.25rem;
    color: #1a202c;
}
.blog-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: #2d3748;
}
.blog-content ul, .blog-content ol { margin: 1.25rem 0 1.5rem 1.5rem; }
.blog-content li {
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 1rem;
}
.blog-content strong {
    color: #2d3748;
    font-weight: 600;
}
.blog-content a {
    color: #3182ce;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content a:hover { color: #2c5282; }

/* Table Styles */
.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    text-align: center;
}
.performance-table th {
    background-color: #f7fafc;
    color: #2d3748;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.85rem;
}
.performance-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.performance-table tr:nth-child(even) { background-color: #f9f9f9; }
.performance-table tr:hover { background-color: #f0f8ff; }
.performance-table td.emphasized {
    font-weight: 600;
    color: #1a202c;
}
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.table-note {
    font-size: 0.85rem;
    color: #718096;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
}

/* Footer */
footer { 
    background: #000;
    padding: 3rem 2rem 2rem; 
    text-align: center; 
    color: #fff; 
    font-size: 0.9rem;
    line-height: 1.6;
}
footer p {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    color: #fff;
}
.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 2rem; 
    list-style: none; 
    color: #fff;
    margin-bottom: 1.5rem;
}
.footer-links a { 
    color: #fff; 
    transition: color 0.2s;
    font-weight: 500; 
}
.footer-links a:hover { color: #ccc; }
.footer-links i {
    font-size: 1.25rem;
    transition: transform 0.3s;
}
.footer-links i:hover { transform: translateY(-3px); }

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    /* Navbar Responsive Styles */
    .nav-content { padding: 1rem; }
    .nav-right {
        display: none;
        position: fixed;             
        inset: 0;
        width: 100vw;                
        height: 100vh;               
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding-top: 2rem;
        z-index: 1000;
    }
    .nav-right.active { display: flex; }
    .hamburger {
        display: flex;
        margin-left: auto;
        z-index: 1100;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }
    
    /* Blog Responsive Styles */
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-header h1 { font-size: 1.875rem; }
    .blog-container { padding: 2rem 1.5rem; }
    .blog-content h2 { font-size: 1.5rem; }
    .blog-content h3 { font-size: 1.25rem; }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    .performance-table { font-size: 0.8rem; }
    .performance-table th, .performance-table td { padding: 0.75rem 0.5rem; }
    .performance-table th { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .blog-header h1 { font-size: 1.5rem; }
    .blog-container { padding: 2rem 1rem; }
    .performance-table { font-size: 0.75rem; }
    .performance-table th, .performance-table td { padding: 0.5rem 0.25rem; }
}