:root {
    --primary-teal: #14b8a6;
    --primary-blue: #0ea5e9;
    --primary-green: #10b981;
    --primary-orange: #f97316;
    --primary-purple: #a855f7;
    --bg-light: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --accent-gradient: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-blue) 100%);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-light);
    color: var(--text-primary);
    transition: var(--transition);
    padding-top: 80px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-teal);
    transition: width 0.3s ease;
}

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

.hero-bg {
    background: linear-gradient(135deg, #05101a 0%, #0a1520 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.card {
    background: white;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-teal);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    /* Reverting bg to transparent/standard for the main header */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Specific override for footer social icons */
.footer-social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
}
.footer-social-icon:hover {
    transform: none;
    box-shadow: none;
}


.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.mobile-menu-open {
    overflow: hidden;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    color: var(--primary-teal);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--primary-teal);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-post-card {
    grid-column: 1 / -1;
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Canvas Animation Styles */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(20, 184, 166, 0.3); }
    100% { text-shadow: 0 0 15px rgba(20, 184, 166, 0.7); }
}

.hero-title {
    animation: textGlow 3s ease-in-out infinite alternate;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease; /* Reduced transition time */
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    border: 6px solid rgba(20, 184, 166, 0.2);
    border-left-color: var(--primary-teal);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1.2s linear infinite;
}

.loader-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Content Loader */
.content-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
}