/* ==========================================================================
   Site Oficial do Prof. Rodnil da Silva Moreira Lisbôa
   Design System compatível e ampliado do Ciência Makers
   ========================================================================== */

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #6366f1;
    --secondary-dark: #4f46e5;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.4);
    --success: #10b981;
    
    /* Neutral Colors - Light Theme */
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-bg-solid: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.85);
    --header-bg: rgba(248, 250, 252, 0.85);
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    
    /* Layout */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --header-height: 80px;
    --container: 1160px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --card-bg-solid: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.6);
    --header-bg: rgba(15, 23, 42, 0.88);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.35);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand-name, .hero-title, .section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary);
    z-index: 10;
    font-weight: 800;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-name {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-name span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.94rem;
    position: relative;
    color: var(--text);
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
}

.theme-switch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.25s ease;
}

.theme-switch:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.4rem;
}

/* ==========================================================================
   Hero Carousel
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 86vh;
    height: 620px;
    overflow: hidden;
    margin-top: var(--header-height);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.03);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.carousel-slide.leaving {
    opacity: 0;
    transform: scale(0.98);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.88) 0%, 
        rgba(30, 41, 59, 0.80) 50%,
        rgba(15, 23, 42, 0.88) 100%
    );
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 860px;
    padding: 2rem 1.5rem;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #93c5fd;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(6px);
}

.carousel-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.carousel-title span {
    background: linear-gradient(135deg, #60a5fa, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-desc {
    font-size: 1.18rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 720px;
}

.carousel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.carousel-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.carousel-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 36px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ==========================================================================
   Mini Hero for Internal Pages
   ========================================================================== */
.hero-mini {
    padding-top: calc(var(--header-height) + 3.5rem);
    padding-bottom: 3rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.hero-mini .hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-mini .hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.4);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.08) rotate(3deg);
    background: var(--primary);
    color: white;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ==========================================================================
   Quote Card (Filosofia Docente)
   ========================================================================== */
.quote-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
}

.quote-icon {
    font-size: 2.4rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.quote-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.quote-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.quote-author span {
    color: var(--text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Stats Row
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Timeline (Formação e Trajetória)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 2rem auto 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(99, 102, 241, 0.4) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 3.5px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-content:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-year {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
}

.timeline-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-institution {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Article Cards (Produção Científica)
   ========================================================================== */
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-journal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}

.article-authors {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-abstract {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.68;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.article-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.article-doi {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.article-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.article-btn:hover { 
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

/* ==========================================================================
   Filter Tabs
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Project Cards
   ========================================================================== */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-badge-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.8rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--text);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* ==========================================================================
   Social & Contact
   ========================================================================== */
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
}

.social-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ==========================================================================
   CTA & Footer
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

footer {
    padding: 4.5rem 0 3rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    text-align: center;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-logo span {
    color: var(--primary);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ==========================================================================
   Media Queries & Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--card-bg-solid);
        border-bottom: 1px solid var(--border);
        padding: 2rem;
        gap: 1.2rem;
        box-shadow: var(--shadow-lg);
        transform: none;
        z-index: 999;
    }

    .mobile-toggle {
        display: block;
    }

    .carousel-title {
        font-size: 2.4rem;
    }

    .carousel-desc {
        font-size: 1.05rem;
    }

    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .carousel-title {
        font-size: 1.95rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }

    .hero-mini .hero-title {
        font-size: 2.1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    .quote-card {
        padding: 2rem 1.5rem;
    }

    .quote-text {
        font-size: 1.2rem;
    }
}


/* Profile & Avatar Styles */
.logo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.profile-intro-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.profile-photo-container {
    position: relative;
    text-align: center;
}

.profile-photo-wrapper {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 4px solid var(--card-bg-solid);
    display: block;
}

.profile-photo-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg-solid);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.spotlight-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: center;
}

.spotlight-img-wrap {
    height: 100%;
    min-height: 280px;
    position: relative;
}

.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .profile-intro-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.2rem 1.5rem;
        gap: 2rem;
    }
    
    .profile-intro-content .carousel-actions {
        justify-content: center;
    }

    .spotlight-card {
        grid-template-columns: 1fr;
    }
    
    .spotlight-img-wrap {
        height: 240px;
    }
}
