/**
 * Thiago Lange Portfolio - Styles
 * Analytics Product Leader
 */

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

:root {
    --navy: #1B365D;
    --blue: #4A90E2;
    --orange: #FF6B35;
    --light-gray: #F5F7FA;
    --dark-gray: #2D3748;
    --text-gray: #4A5568;
    --hero-start: #1e3a5f;
    --hero-end: #2563eb;
    --bg-primary: #ffffff;
    --bg-secondary: #F5F7FA;
    --bg-card: #ffffff;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    scroll-behavior: smooth;
    padding-top: 70px;
    /* Space for fixed nav */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #navbar {
    background: #1a1a2e;
    border-bottom: 1px solid #2D3748;
}

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

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--blue);
}

.nav-menu .resume-btn {
    background: var(--orange);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu .resume-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    color: white !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
}

/* Language Switcher in Nav */
.lang-switcher {
    display: flex;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid #e2e8f0;
    align-items: center;
}

/* Language Selector Dropdown */
.lang-selector {
    position: relative;
}

.lang-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-card, white);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 80px;
}

.lang-selector select:hover {
    border-color: var(--blue);
}

.lang-selector select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.lang-selector::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: var(--text-gray);
    pointer-events: none;
}

/* Dark mode for language selector */
[data-theme="dark"] .lang-selector select {
    background: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

[data-theme="dark"] .lang-selector select:hover {
    border-color: #60A5FA;
}

[data-theme="dark"] .lang-selector::after {
    color: #94A3B8;
}

/* Active state for nav links */
.nav-menu a.active {
    color: var(--blue);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: white;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero .subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

.hero .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--orange);
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--navy);
}

/* Section CTA Buttons - for use outside hero sections */
.projects-cta .btn,
.articles-cta .btn,
.experience-cta .btn {
    background: var(--orange);
    color: white !important;
    border: none;
}

.projects-cta .btn:hover,
.articles-cta .btn:hover,
.experience-cta .btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 20px;
}

section:nth-child(even) {
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.highlight-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.highlight-card h3 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 2.6rem;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-header {
    padding: 30px;
}

.project-header h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.project-body {
    padding: 30px;
}

.project-body h4 {
    color: var(--navy);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-body ul {
    list-style: none;
    padding-left: 0;
}

.project-body li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.project-body li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    background: var(--light-gray);
    color: var(--text-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--orange);
}

/* ============================================
   ARTICLES SECTION
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 300;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
}

.read-more {
    color: var(--blue);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.coming-soon h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.coming-soon p {
    color: var(--text-gray);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.skill-card-header h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--light-gray);
    color: var(--blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: default;
}

.skill-tag:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--orange);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--blue);
}

.timeline-item h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-item .company {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item .date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Experience CTA */
.experience-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.experience-cta p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

[data-theme="dark"] .experience-cta {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .experience-cta p {
    color: var(--text-secondary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

/* ============================================
   PREMIUM PLACEHOLDERS
   ============================================ */
.empty-state-card {
    background: var(--bg-secondary);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: all 0.3s ease;
    width: 100%;
    grid-column: 1 / -1;
    /* Span full width if in grid */
}

.empty-state-card:hover {
    border-color: var(--blue);
    background: #f8fafc;
    transform: translateY(-2px);
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    width: 40px;
    height: 40px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.empty-state-card:hover .empty-state-icon {
    color: var(--blue);
    animation: pulse-soft 2s infinite;
}

.empty-state-content h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-state-content p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

[data-theme="dark"] .empty-state-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: #334155;
}

[data-theme="dark"] .empty-state-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #60A5FA;
}

[data-theme="dark"] .empty-icon-wrapper {
    background: #1e293b;
}

[data-theme="dark"] .empty-state-content h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .empty-state-content p {
    color: #94a3b8;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
}

.form-group .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: var(--blue);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.form-submit:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 54, 93, 0.3);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays for grids */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.cookie-consent.show {
    transform: translateY(0);
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--orange);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--orange);
    color: white;
}

.cookie-btn-accept:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-decline:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode cookie banner */
/* Dark mode cookie banner */
[data-theme="dark"] .cookie-consent {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
    color: white;
}

[data-theme="dark"] .cookie-btn-decline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 54, 93, 0.5);
}

/* ============================================
   DARK MODE TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.theme-toggle svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle:active svg {
    transform: rotate(45deg) scale(0.9);
}

.theme-toggle:hover {
    color: var(--blue);
    background: rgba(74, 144, 226, 0.1);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* ============================================
   DARK MODE STYLES
   ============================================ */
[data-theme="dark"] {
    --navy: #3B82F6;
    --blue: #60A5FA;
    --orange: #FB923C;
    --light-gray: #1E293B;
    --dark-gray: #E2E8F0;
    --text-gray: #94A3B8;
    --hero-start: #0F172A;
    --hero-end: #1E3A8A;
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --border-color: #334155;
}

[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-logo {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active {
    color: var(--blue);
}

[data-theme="dark"] .nav-menu .resume-btn,
[data-theme="dark"] .nav-menu .resume-btn:hover {
    color: white;
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: var(--text-primary);
}

[data-theme="dark"] .lang-switcher {
    border-left-color: var(--border-color);
}

[data-theme="dark"] .lang-switcher button {
    color: var(--text-secondary);
}

[data-theme="dark"] section {
    background: var(--bg-primary);
}

[data-theme="dark"] section:nth-child(even) {
    background: var(--bg-secondary);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .highlight-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .coming-soon,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-link,
[data-theme="dark"] .skill-card {
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-header h3,
[data-theme="dark"] .project-body h4,
[data-theme="dark"] .article-content h3,
[data-theme="dark"] .coming-soon h3,
[data-theme="dark"] .skill-card-header h3,
[data-theme="dark"] .timeline-item h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

[data-theme="dark"] .skill-tag {
    background: var(--bg-primary);
    color: var(--blue);
}

[data-theme="dark"] .skill-tag:hover {
    background: var(--blue);
    color: white;
}

[data-theme="dark"] .skill-card {
    border-left-color: var(--blue);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--blue);
}

[data-theme="dark"] .contact-link {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-link:hover {
    background: var(--blue);
    color: white;
}

[data-theme="dark"] .timeline:before {
    background: var(--blue);
}

[data-theme="dark"] .timeline-item .company {
    color: var(--blue);
}

[data-theme="dark"] footer {
    background: #020617;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid,
    .articles-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    body {
        padding-top: 70px;
    }

    /* Mobile menu dark mode */
    [data-theme="dark"] .nav-menu {
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    /* Reset for print */
    *,
    *::before,
    *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide non-essential elements */
    nav,
    .skip-link,
    .back-to-top,
    .theme-toggle,
    .lang-switcher,
    .cta-buttons,
    .contact-form,
    #articles,
    footer {
        display: none !important;
    }

    /* Reset body */
    body {
        padding: 0 !important;
        font-size: 12pt;
        line-height: 1.5;
    }

    /* Hero section adjustments */
    .hero {
        padding: 20px !important;
        page-break-after: avoid;
    }

    .hero-image {
        width: 100px !important;
        height: 100px !important;
        border: 2px solid #333 !important;
    }

    .hero h1 {
        font-size: 24pt !important;
    }

    .hero .tagline {
        font-size: 14pt !important;
    }

    /* Section adjustments */
    section {
        padding: 15px 0 !important;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 18pt !important;
        border-bottom: 2px solid #333;
        padding-bottom: 5px;
    }

    /* Project cards */
    .projects-grid {
        display: block !important;
    }

    .project-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ccc;
    }

    .project-image {
        display: none !important;
    }

    /* Timeline */
    .timeline:before {
        background: #333 !important;
    }

    .timeline-item:before {
        background: #333 !important;
        border-color: white !important;
    }

    /* Skills */
    .skill-tag,
    .tag {
        border: 1px solid #333 !important;
        padding: 2px 8px !important;
    }

    /* Links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666 !important;
    }

    .contact-links {
        margin-top: 20px;
    }

    .contact-link {
        border: 1px solid #333 !important;
    }

    /* Page breaks */
    h2,
    h3 {
        page-break-after: avoid;
    }

    .about-content,
    .skills-container {
        page-break-inside: avoid;
    }
}

/* ============================================
   LOADING SKELETON
   ============================================ */

/* Initial loading state - hide content until ready */
.loading .skeleton-hide {
    opacity: 0;
}

/* Skeleton animation */
@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Base skeleton styles */
.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Dark mode skeleton */
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}

/* Skeleton text lines */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

/* Skeleton for profile image */
.skeleton-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
}

/* Skeleton for cards */
.skeleton-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.skeleton-card .skeleton-image {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.skeleton-card .skeleton-title {
    height: 1.5em;
    width: 70%;
    margin-bottom: 10px;
}

.skeleton-card .skeleton-body {
    height: 4em;
    margin-bottom: 15px;
}

/* Skeleton for highlight stats */
.skeleton-stat {
    text-align: center;
    padding: 20px;
}

.skeleton-stat-value {
    height: 2.5rem;
    width: 60%;
    margin: 0 auto 10px;
}

.skeleton-stat-label {
    height: 1rem;
    width: 80%;
    margin: 0 auto;
}

/* Page loader overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.page-loader-content {
    text-align: center;
}

.page-loader-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.page-loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader-progress {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    border-radius: 2px;
    animation: loader-progress 1.5s ease-in-out infinite;
}

@keyframes loader-progress {
    0% {
        width: 0%;
        margin-left: 0;
    }

    50% {
        width: 50%;
        margin-left: 25%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Dark mode loader */
[data-theme="dark"] .page-loader {
    background: #0F172A;
}

[data-theme="dark"] .page-loader-bar {
    background: #334155;
}

/* ============================================
   ARTICLE STYLES
   ============================================ */
.article-hero {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
    color: white;
    padding: 160px 20px 60px;
    margin-top: -70px;
    padding-top: 140px;
    text-align: center;
}

.article-hero .container {
    max-width: 800px;
}

.breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.breadcrumb span {
    color: white;
    opacity: 0.8;
}

[data-theme="dark"] .breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: middle;
}

.article-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
    justify-content: center;
}

.article-hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
}

.article-body h2 {
    color: var(--navy);
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
}

.article-body h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0 20px 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid var(--orange);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--navy);
    font-size: 1.2rem;
}

.callout {
    background: var(--bg-secondary);
    border-left: 4px solid var(--blue);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.callout-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 60px;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--navy);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.article-share {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.related-articles {
    background: var(--bg-secondary);
    padding: 60px 20px;
    margin-top: 60px;
}

.related-articles h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.related-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--blue);
}

.related-card h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.related-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .author-info h4,
[data-theme="dark"] .related-articles h2,
[data-theme="dark"] .related-card h3,
[data-theme="dark"] .callout-title {
    color: #E2E8F0;
}

[data-theme="dark"] .article-body blockquote {
    color: #94A3B8;
}

[data-theme="dark"] .author-box,
[data-theme="dark"] .callout {
    background: #1a1a2e;
}

[data-theme="dark"] .related-articles {
    background: #0f0f1a;
}

[data-theme="dark"] .related-card {
    background: #1a1a2e;
    border-color: #2D3748;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 1.8rem;
    }

    .article-hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .article-share {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }
}

/* ============================================
   PROJECT STYLES
   ============================================ */
.project-hero {
    background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%) !important;
    color: white;
    padding: 160px 20px 80px;
    margin-top: -70px;
    text-align: center;
}

.project-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.project-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    justify-content: center;
}

.project-meta-hero span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.project-section {
    margin-bottom: 50px;
}

.project-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
}

.project-section p,
.project-section ul {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-section ul {
    margin-left: 20px;
}

.project-section li {
    margin-bottom: 10px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 5px;
}

.metric-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tag {
    background: var(--blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 16px;
    color: white;
    margin-top: 40px;
}

.project-cta h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.project-cta .btn {
    background: var(--orange);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.project-cta .btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.related-projects {
    background: var(--bg-secondary);
    padding: 60px 20px;
    margin-top: 40px;
}

.related-projects h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 40px;
}

[data-theme="dark"] .metric-card {
    background: var(--bg-card);
}

[data-theme="dark"] .project-section h2 {
    color: var(--blue);
}

[data-theme="dark"] .project-hero {
    background: var(--bg-secondary) !important;
}

/* ============================================
   LISTING STYLES (Articles & Projects)
   ============================================ */
.articles-hero,
.projects-hero {
    background: linear-gradient(135deg, #1B365D 0%, #4A90E2 100%) !important;
    color: white;
    padding: 160px 20px 60px;
    margin-top: -70px;
    text-align: center;
}

[data-theme="dark"] .articles-hero,
[data-theme="dark"] .projects-hero {
    background: var(--bg-secondary) !important;
}

.articles-hero h1,
.projects-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.articles-hero p,
.projects-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.articles-container,
.projects-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.articles-filter,
.projects-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.article-list,
.project-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-card,
.project-card-large {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    display: block;
}

.article-card:hover,
.project-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.article-category {
    font-family: 'Outfit', sans-serif;
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    color: var(--blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.article-card h2,
.project-card-large h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.article-card p,
.project-card-large p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: var(--blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.newsletter-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.newsletter-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.newsletter-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--orange);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.newsletter-form button:hover {
    background: #e55a2b;
}

[data-theme="dark"] .article-card,
[data-theme="dark"] .project-card-large {
    background: #1a1a2e;
    border-color: #2D3748;
}

[data-theme="dark"] .article-card h2,
[data-theme="dark"] .project-card-large h2 {
    color: #E2E8F0;
}

[data-theme="dark"] .filter-btn {
    background: #1a1a2e;
    border-color: #2D3748;
}

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* ============================================
   404 ERROR PAGE STYLES
   ============================================ */
.error-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--light-gray);
}

.error-container {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    width: 100%;
    text-align: center;
}

[data-theme="dark"] .error-page-wrapper {
    background: var(--bg-primary);
}

[data-theme="dark"] .error-container {
    background: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.error-code {
    font-family: 'Outfit', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
}

[data-theme="dark"] .error-code {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-description {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.quick-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.quick-links-title {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.quick-link:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
    border-color: var(--blue);
}

.report-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.report-link p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

.report-link a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.report-link a:hover {
    text-decoration: underline;
}

[data-theme="dark"] .quick-link {
    background: var(--bg-primary);
    color: #E2E8F0;
    border-color: var(--border-color);
}

[data-theme="dark"] .quick-link:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}