/**
 * Visual Polish - Professional Refinements
 * Academic Legal Website
 * 
 * Final layer of visual refinements for a sharper, punchier look
 */

/* ============================================================================
   TYPOGRAPHY REFINEMENTS
   ========================================================================= */

/* Sharper, more impactful headings */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero title - bolder, more commanding */
.hero-title {
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Tagline refinement */
.hero-tagline {
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0.95;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: var(--space-md);
    display: inline-block;
}

/* Section headers - cleaner underline */
.section-header h2::after {
    height: 3px;
    width: 50px;
    border-radius: 3px;
    background: var(--accent);
}

/* ============================================================================
   HERO SECTION REFINEMENTS
   ========================================================================= */

.hero {
    background: 
        linear-gradient(145deg, 
            #0c1929 0%, 
            #152238 25%,
            #1e3a5f 50%, 
            #2a4a73 75%,
            #355d8a 100%);
}

/* Geometric accent pattern */
.hero::before {
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%),
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px, 100% 100%;
}

/* Sharper bottom accent */
.hero::after {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 10%,
        #f59e0b 30%,
        var(--accent) 50%,
        #f59e0b 70%,
        var(--accent) 90%,
        transparent 100%);
}

/* Credential badge - glassmorphism effect */
.hero-credential {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 
        0 4px 30px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border-radius: 50px;
}

/* Hero buttons - more punch */
.btn-hero-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        0 1px 3px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,1);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.25),
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
}

.btn-hero-secondary {
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(255,255,255,1);
    transform: translateY(-2px);
}


/* ============================================================================
   FEATURED ARTICLE REFINEMENTS
   ========================================================================= */

.featured-article {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: none;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.06),
        0 12px 32px rgba(0,0,0,0.08);
}

.featured-article::before {
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent) 0%, 
        #8b5cf6 33%, 
        #f59e0b 66%, 
        var(--accent) 100%);
}

.featured-article-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 
        0 2px 4px rgba(234,88,12,0.3),
        0 4px 12px rgba(234,88,12,0.2);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-article-title a {
    background: none;
    position: relative;
}

.featured-article-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transition: width 0.3s ease;
}

.featured-article-title a:hover::after {
    width: 100%;
}

.featured-article-title a:hover {
    color: var(--accent);
}

/* ============================================================================
   PILLAR CARDS REFINEMENTS
   ========================================================================= */

.pillar-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.02),
        0 2px 4px rgba(0,0,0,0.02);
}

.pillar-card::before {
    background: linear-gradient(90deg, var(--accent), #8b5cf6, #f59e0b);
}

.pillar-card:hover {
    border-color: transparent;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.08),
        0 12px 32px rgba(0,0,0,0.1),
        0 24px 48px rgba(0,0,0,0.06);
}

.pillar-card-icon {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.02),
        inset 0 1px 0 rgba(255,255,255,1);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-card-icon {
    transform: scale(1.05);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,1);
}

.pillar-card-arrow {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pillar-card:hover .pillar-card-arrow {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(49,130,206,0.4);
}

/* ============================================================================
   ARTICLE CARDS REFINEMENTS
   ========================================================================= */

.article-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.article-card::before {
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.article-card:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 12px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}

.article-category-badge {
    background: linear-gradient(135deg, 
        rgba(49,130,206,0.08) 0%, 
        rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(49,130,206,0.12);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.article-category-badge:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(49,130,206,0.3);
}

.article-card-title {
    letter-spacing: -0.02em;
}

.article-card-link {
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
}

.article-card-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.article-card-link:hover::before {
    width: calc(100% - 20px);
}


/* ============================================================================
   BUTTON REFINEMENTS
   ========================================================================= */

.btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect on buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%
    );
    transition: left 0.4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce 0%, #2563eb 50%, #1d4ed8 100%);
    border: none;
    box-shadow: 
        0 2px 4px rgba(37,99,235,0.2),
        0 4px 12px rgba(37,99,235,0.15),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 
        0 4px 8px rgba(37,99,235,0.25),
        0 8px 24px rgba(37,99,235,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(37,99,235,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-outline {
    border: 2px solid rgba(0,0,0,0.1);
    background: transparent;
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn-outline:hover {
    border-color: transparent;
    color: white;
    background: transparent;
}

.btn-outline:hover::after {
    opacity: 1;
}

/* ============================================================================
   HEADER REFINEMENTS
   ========================================================================= */

.site-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 1px 0 rgba(0,0,0,0.04),
        0 2px 8px rgba(0,0,0,0.02);
}

.site-logo .logo-text {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    background: linear-gradient(90deg, var(--accent), #7c3aed);
    height: 2px;
    border-radius: 2px;
}

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

.nav-link.active {
    font-weight: 600;
}

/* ============================================================================
   FOOTER REFINEMENTS
   ========================================================================= */

.site-footer {
    background: linear-gradient(180deg, #111827 0%, #0a0f1a 100%);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--accent), #8b5cf6, #f59e0b) 1;
}

.footer-brand .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-heading::after {
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    height: 2px;
    border-radius: 2px;
}

.footer-links a {
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: var(--accent);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    padding-left: 4px;
}

/* ============================================================================
   FORM REFINEMENTS
   ========================================================================= */

input[type="email"],
input[type="text"],
input[type="search"],
textarea {
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 
        0 0 0 4px rgba(49,130,206,0.1),
        0 2px 8px rgba(49,130,206,0.08);
    background: #ffffff;
    outline: none;
}

/* Newsletter form in footer */
.footer-newsletter input[type="email"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
}

.footer-newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter input[type="email"]:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.2);
}

.footer-newsletter button {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(49,130,206,0.3);
}

.footer-newsletter button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49,130,206,0.4);
}


/* ============================================================================
   ABOUT PAGE REFINEMENTS
   ========================================================================= */

.about-hero {
    background: 
        linear-gradient(145deg, 
            #0c1929 0%, 
            #152238 25%,
            #1e3a5f 50%, 
            #2a4a73 75%,
            #355d8a 100%);
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(99,102,241,0.1) 0%, transparent 40%);
}

.about-hero h1 {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.about-hero::after {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 15%,
        #8b5cf6 35%,
        #f59e0b 50%,
        #8b5cf6 65%,
        var(--accent) 85%,
        transparent 100%);
}

.about-section h2::after {
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
}

.expertise-item {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0,0,0,0.05);
}

.expertise-item::before {
    background: linear-gradient(180deg, var(--accent), #8b5cf6, #f59e0b);
}

.expertise-item:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 12px 32px rgba(0,0,0,0.08);
}

.research-statement {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: none;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--accent), #8b5cf6, #f59e0b) 1;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.06);
}

.research-statement p {
    position: relative;
}

.research-statement p::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

/* ============================================================================
   SEARCH PAGE REFINEMENTS
   ========================================================================= */

.search-form-main {
    position: relative;
}

.search-input-main {
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    padding-left: 50px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.02),
        inset 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.search-input-main:focus {
    border-color: var(--accent);
    box-shadow: 
        0 0 0 4px rgba(49,130,206,0.1),
        0 4px 12px rgba(0,0,0,0.06);
    background: #ffffff;
}

.search-button-main {
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(49,130,206,0.3);
}

.search-button-main:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(49,130,206,0.4);
}

/* Search results */
.search-result-item {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all 0.2s ease;
}

.search-result-item:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.04);
    border-color: rgba(49,130,206,0.2);
}

.search-result-title a {
    position: relative;
}

.search-result-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transition: width 0.3s ease;
}

.search-result-title a:hover::after {
    width: 100%;
}

/* ============================================================================
   BREADCRUMBS REFINEMENT
   ========================================================================= */

.breadcrumb {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.breadcrumb-item a {
    position: relative;
    color: var(--text-light);
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

/* ============================================================================
   PAGINATION REFINEMENTS
   ========================================================================= */

.pagination-link {
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    transition: all 0.2s ease;
}

.pagination-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(49,130,206,0.15);
}

.pagination-current {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(49,130,206,0.3);
}


/* ============================================================================
   NEWSLETTER MODAL REFINEMENTS
   ========================================================================= */

.newsletter-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 
        0 25px 50px -12px rgba(0,0,0,0.25),
        0 12px 24px -8px rgba(0,0,0,0.15);
}

.newsletter-modal-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 50%, #2563eb 100%);
    box-shadow: 
        0 4px 12px rgba(49,130,206,0.3),
        0 8px 24px rgba(124,58,237,0.2);
}

.newsletter-modal-submit {
    background: linear-gradient(135deg, var(--accent) 0%, #2563eb 50%, #1d4ed8 100%);
    box-shadow: 
        0 2px 8px rgba(49,130,206,0.3),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.newsletter-modal-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    box-shadow: 
        0 4px 16px rgba(49,130,206,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================================================
   CONTACT CTA REFINEMENTS
   ========================================================================= */

.contact-cta {
    background: 
        linear-gradient(145deg, 
            #0c1929 0%, 
            #152238 25%,
            #1e3a5f 50%, 
            #2a4a73 100%);
    position: relative;
}

.contact-cta::before {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent) 15%,
        #8b5cf6 35%,
        #f59e0b 50%,
        #8b5cf6 65%,
        var(--accent) 85%,
        transparent 100%);
}

.contact-cta h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ============================================================================
   TAGS & BADGES REFINEMENTS
   ========================================================================= */

.tag {
    background: linear-gradient(135deg, rgba(49,130,206,0.08) 0%, rgba(139,92,246,0.05) 100%);
    border: 1px solid rgba(49,130,206,0.12);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(49,130,206,0.3);
}

/* ============================================================================
   SCROLLBAR STYLING
   ========================================================================= */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

/* ============================================================================
   DARK MODE REFINEMENTS
   ========================================================================= */

[data-theme="dark"] {
    
    /* Hero */
    .hero {
        background: 
            linear-gradient(145deg, 
                #020617 0%, 
                #0f172a 25%,
                #1e293b 50%, 
                #334155 100%);
    }
    
    .hero::before {
        background: 
            linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%),
            radial-gradient(ellipse at 20% 30%, rgba(96,165,250,0.1) 0%, transparent 50%);
    }
    
    .hero::after {
        background: linear-gradient(90deg, 
            transparent 0%,
            #60a5fa 10%,
            #f59e0b 30%,
            #60a5fa 50%,
            #f59e0b 70%,
            #60a5fa 90%,
            transparent 100%);
    }
    
    /* Cards */
    .featured-article,
    .pillar-card,
    .article-card,
    .expertise-item,
    .search-result-item {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        border-color: rgba(255,255,255,0.06);
    }
    
    .featured-article:hover,
    .pillar-card:hover,
    .article-card:hover,
    .expertise-item:hover,
    .search-result-item:hover {
        box-shadow: 
            0 4px 12px rgba(0,0,0,0.2),
            0 12px 32px rgba(0,0,0,0.3);
    }
    
    .featured-article::before,
    .pillar-card::before,
    .article-card::before {
        background: linear-gradient(90deg, #60a5fa, #a78bfa, #fbbf24);
    }
    
    /* Icons and badges */
    .pillar-card-icon {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-color: rgba(255,255,255,0.08);
    }
    
    .article-category-badge {
        background: linear-gradient(135deg, rgba(96,165,250,0.12) 0%, rgba(167,139,250,0.08) 100%);
        border-color: rgba(96,165,250,0.2);
    }
    
    /* Header */
    .site-header {
        background: rgba(15,23,42,0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(255,255,255,0.04);
    }
    
    .site-logo .logo-text {
        background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    /* Footer */
    .site-footer {
        background: linear-gradient(180deg, #020617 0%, #000000 100%);
        border-image: linear-gradient(90deg, #60a5fa, #a78bfa, #fbbf24) 1;
    }
    
    /* Buttons */
    .btn-primary {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    }
    
    /* Forms */
    input[type="email"],
    input[type="text"],
    input[type="search"],
    textarea {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
        border-color: rgba(255,255,255,0.1);
    }
    
    input:focus,
    textarea:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
        background: #1e293b;
    }
    
    /* Scrollbar */
    ::-webkit-scrollbar-track {
        background: #0f172a;
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #334155 0%, #475569 100%);
        border-color: #0f172a;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #475569 0%, #64748b 100%);
    }
    
    /* About hero */
    .about-hero {
        background: 
            linear-gradient(145deg, 
                #020617 0%, 
                #0f172a 25%,
                #1e293b 50%, 
                #334155 100%);
    }
    
    .about-hero::after {
        background: linear-gradient(90deg, 
            transparent 0%,
            #60a5fa 15%,
            #a78bfa 35%,
            #fbbf24 50%,
            #a78bfa 65%,
            #60a5fa 85%,
            transparent 100%);
    }
    
    /* Research statement */
    .research-statement {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-image: linear-gradient(180deg, #60a5fa, #a78bfa, #fbbf24) 1;
    }
    
    /* Section headers */
    .section-header h2::after,
    .about-section h2::after {
        background: linear-gradient(90deg, #60a5fa, #a78bfa);
    }
}

/* ============================================================================
   FINAL TOUCHES - ANIMATIONS
   ========================================================================= */

/* Smooth page load */
body {
    opacity: 0;
    animation: pageLoad 0.4s ease forwards;
}

@keyframes pageLoad {
    to { opacity: 1; }
}

/* Hover lift for interactive elements */
.pillar-card,
.article-card,
.expertise-item,
.search-result-item,
.stat-card {
    will-change: transform, box-shadow;
}

/* Smoother transitions globally */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better focus states */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selection styling */
::selection {
    background: rgba(49,130,206,0.2);
    color: inherit;
}

[data-theme="dark"] ::selection {
    background: rgba(96,165,250,0.3);
}
