:root {
    --bg: #0a0a0b;
    --card-bg: #161618;
    --accent: #6366f1;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main);
    line-height: 1.6;
}

/* Glass Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; position: sticky; top: 0;
    background: rgba(10, 10, 11, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass); z-index: 100;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.logo a {
  color: inherit;
  text-decoration: none;
}
.logo span {
  color: var(--accent);
  margin-left: 4px;
}

.logo a:hover span {
  opacity: 0.9;
}


@media (max-width: 768px) {
  .logo {
    font-size: 1.3rem;
  }
}



.nav-links a { color: var(--text-dim); text-decoration: none; margin-left: 2rem; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-main); }
.nav-cta { background: var(--accent); color: white !important; padding: 8px 18px; border-radius: 8px; }

/* Bold Hero Section */
.hero {
    text-align: center; padding: 100px 5%;
    background: radial-gradient(circle at top, #1e1b4b 0%, #0a0a0b 50%);
}
.hero-badge {
    background: var(--glass); border: 1px solid rgba(255,255,255,0.1);
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; color: var(--accent); margin-bottom: 20px;
}
.hero h1 { font-size: 4rem; font-weight: 800; letter-spacing: -2px; line-height: 1.1; }
.gradient-text {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-dim); max-width: 600px; margin: 20px auto; font-size: 1.1rem; }

/* Hero Buttons Container */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Primary Button (Solid Gradient) */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.3);
    filter: brightness(1.1);
}

/* Secondary Button (Outline Glass) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Mobile Responsiveness for Buttons */
@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* Bento Grid Cards */
.container { padding: 80px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.search-bar {
    background: var(--card-bg); border: 1px solid var(--glass);
    padding: 12px 20px; border-radius: 10px; color: white; width: 300px;
}
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.candidate-card {
    background: var(--card-bg); padding: 30px; border-radius: 24px;
    border: 1px solid var(--glass); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.candidate-card:hover { border-color: var(--accent); transform: scale(1.02); }

.avatar {
    width: 60px; height: 60px; background: linear-gradient(45deg, var(--accent), #a855f7);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem; margin-bottom: 15px;
}
.card-tag { font-size: 0.7rem; text-transform: uppercase; color: var(--accent); letter-spacing: 1px; margin-bottom: 5px; }
.flat { color: var(--text-dim); font-size: 0.9rem; }
.tags { display: flex; gap: 8px; margin: 15px 0; }
.tags span { font-size: 0.7rem; background: var(--glass); padding: 4px 10px; border-radius: 5px; }
.view-btn { 
    width: 100%; padding: 12px; background: var(--glass); border: none; 
    color: white; border-radius: 10px; cursor: pointer; margin-top: 10px;
}

/* Search UI Styling */
.search-section {
    padding: 20px 5%;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    background: var(--glass);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box {
    flex: 2;
    display: flex;
    align-items: center;
    background: #1c1c1e;
    padding: 10px 15px;
    border-radius: 12px;
}

.search-icon { margin-right: 10px; opacity: 0.5; }

#candidateSearch {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

#categoryFilter {
    flex: 1;
    background: #1c1c1e;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
}

/* Container for Search and Filters */
.section-header-group {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Enhanced Search Bar */
.search-bar {
    background: #161618;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    width: 300px;
    outline: none;
    transition: 0.3s;
}
.search-bar:focus { border-color: #6366f1; box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); }

/* Filter Pill Styles */
.filter-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #161618;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Grid Layout Fix */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.filter-pill {
    background: #161618;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.filter-pill:hover {
    background: #222;
    color: #fff;
}

.filter-pill.active {
    background: #6366f1; /* Your accent color */
    color: white;
    border-color: #6366f1;
}

/* Profile Page Global Background */
.profile-body {
    background: radial-gradient(circle at top right, #1e1b4b, #09090b 40%);
    min-height: 100vh;
}

/* Specialized Profile Navbar */
.profile-nav {
    justify-content: flex-start; /* Aligns back button and logo closer */
    gap: 20px;
    padding: 1rem 5%;
}

/* Back Button Styling */
.back-btn {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateX(-5px); /* Subtle nudge to the left */
}

/* Push the logo to the right if you want them separated */
.profile-nav .logo {
    margin-left: auto; 
}

/* Ensure Logo in Profile Nav matches home page */
.profile-nav .logo span {
    color: var(--accent);
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .profile-nav {
        padding: 1rem 15px;
    }
    .back-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Glassmorphism Hero Card */
.profile-hero-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 60px 40px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-avatar {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 900; color: white;
    margin-bottom: 20px;
}

.status-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive Video Container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Roadmap/Vision Items */
.roadmap-item {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.roadmap-item:hover { background: rgba(255, 255, 255, 0.05); }

.roadmap-item .number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #6366f1;
    opacity: 0.5;
}

/* Sticky Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.sticky-card {
    position: sticky;
    top: 100px;
    background: #161618;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fact {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.95rem;
}

.fact span { color: #a1a1aa; }

.whatsapp-btn {
    display: block;
    text-align: center;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 20px;
}

/* Mobile Fix */
@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .profile-hero-card { text-align: center; }
    .hero-avatar { margin: 0 auto 20px; }
}

/* Sidebar Divider */
.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

/* Contact Area Styling */
.contact-area h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.contact-text {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Professional Email Button */
.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

.response-time {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #71717a;
    margin-top: 12px;
    font-style: italic;
}

.icon {
    font-size: 1.1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle glow effect */
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Bio Section Styling */
.detailed-bio {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-text p {
    color: #d1d1d6;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bio-bullets {
    list-style: none;
    padding: 0;
}

.bio-bullets li {
    color: #a1a1aa;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.bio-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6366f1;
}

/* Values Box in Sidebar */
.values-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.values-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6366f1;
    margin-bottom: 15px;
}

.values-box .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.values-box span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #fff;
}

/* Roadmap expansion */
.roadmap-item {
    border-left: 2px solid rgba(99, 102, 241, 0.3);
    padding-left: 30px;
}

.section-intro {
    color: #818cf8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.verification-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #4ade80; /* Green for verification */
    background: rgba(74, 222, 128, 0.1);
    padding: 8px;
    border-radius: 8px;
}

.contribution-timeline {
    border-left: 2px solid rgba(99, 102, 241, 0.2);
    padding-left: 20px;
    margin-left: 10px;
}

.contribution-item {
    position: relative;
    margin-bottom: 25px;
}

/* Dots on the timeline */
.contribution-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 10px #6366f1;
}

/* FAQ Styling */
.faq-section {
    margin-top: 50px;
    padding-bottom: 100px; /* Space at bottom of page */
}

.faq-container {
    margin-top: 25px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.faq-item summary::after {
    content: "+";
    color: #6366f1;
    font-size: 1.2rem;
    font-weight: bold;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #a1a1aa;
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Roadmap Header Adjustment */
.vision-grid h2 {
    color: #fff;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.dashboard-theme {
    background-color: #0f172a; /* Deep Navy */
    color: #f8fafc;
}

.dashboard-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.candidate-header-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom: 3px solid #6366f1;
}

.tab-panel {
    display: none; /* Hidden by default */
    animation: fadeIn 0.4s ease;
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.roadmap-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contribution-timeline {
    border-left: 2px solid #6366f1; /* Brand color line */
    padding-left: 20px;
    margin-left: 10px;
}

.roadmap-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
}

/* Mobile Optimization Overrides */
@media (max-width: 768px) {
    /* 1. Scale down the massive hero text */
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 2.5rem; /* Down from 4rem */
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1rem;
    }

    /* 2. Fix the Navbar (Hide links or stack them) */
    .nav-links {
        display: none; /* Usually better to use a hamburger menu on mobile */
    }
    .navbar {
        padding: 1rem 20px;
    }

    /* 3. Stack the Search UI */
    .search-container {
        flex-direction: column; /* Stacks search and filter on top of each other */
        gap: 10px;
    }
    .search-box, #categoryFilter {
        width: 100%;
    }

    /* 4. Fix Bento Grid Spacing */
    .container {
        padding: 40px 20px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* 5. Profile Page Specifics */
    .profile-hero-card {
        padding: 40px 20px;
        border-radius: 20px;
    }
    .roadmap-item {
        flex-direction: column; /* Move number above text */
        gap: 10px;
    }
}

.filter-pill {
    background: #f0f0f0;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-pill.active {
    background: var(--primary-gradient); /* Or your main brand color */
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Expertise Filters Wrapper */
.expertise-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* Filter Pills */
.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: 
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
}

/* Hover State */
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* Active State */
.filter-pill.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 
        0 6px 18px rgba(99, 102, 241, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* Focus (Keyboard Accessibility) */
.filter-pill:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.35),
        0 6px 18px rgba(99, 102, 241, 0.3);
}

/* Pressed State */
.filter-pill:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .filter-pill {
        font-size: 0.85rem;
        padding: 7px 16px;
    }
}

/* Avatar Container */
.avatar-wrapper {
    width: 88px;              /* Bigger = more focus */
    height: 88px;
    margin-bottom: 18px;
    position: relative;
}

/* Avatar Container */
.avatar-wrapper-home {
    width: 88px;              /* Bigger = more focus */
    height: 88px;
    margin-bottom: 18px;
    position: relative;
}

/* Image Avatar */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
     object-position: center top; /* 🔑 FIX */
    border-radius: 22px;
    border: 2px solid rgba(99, 102, 241, 0.35); /* Accent ring */
    background: #0a0a0b;

    /* Focus & depth */
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.12),
        0 14px 30px rgba(0, 0, 0, 0.55);

    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

/* Hover: bring face forward */
.candidate-card:hover .avatar-img {
    transform: scale(1.06);
    box-shadow:
        0 0 0 6px rgba(99, 102, 241, 0.25),
        0 18px 40px rgba(0, 0, 0, 0.65);
    filter: brightness(1.08) contrast(1.05);
}

/* Initials fallback — same focus treatment */
.avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 14px 30px rgba(0,0,0,0.55);
}

.avatar-wrapper::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 26px;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.35),
        transparent 70%
    );
    opacity: 0.35;
    z-index: -1;
}

.avatar-wrapper-home::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 26px;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.35),
        transparent 70%
    );
    opacity: 0.35;
    z-index: -1;
}

/* ===============================
   HAMBURGER MENU
================================ */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Animate to X */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===============================
   MOBILE NAV
================================ */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255,255,255,0.08);

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;

        padding: 25px 0;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.35s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        margin: 0;
    }

    .nav-cta {
        width: 85%;
        text-align: center;
    }
}

/* Center avatar on mobile */
@media (max-width: 768px) {
    .avatar-wrapper {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }
}


/* ======================================================
   GLOBAL MOBILE IMPROVEMENTS
====================================================== */
@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  /* Reduce heavy shadows on mobile (performance) */
  * {
    box-shadow: none;
  }
}

/* ======================================================
   NAVBAR & HERO
====================================================== */
@media (max-width: 768px) {

  .navbar {
    padding: 0.9rem 16px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero {
    padding: 50px 16px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
    margin: 16px auto;
  }

  .hero-badge {
    font-size: 0.7rem;
  }
}

/* ======================================================
   BUTTONS & TAP TARGETS
====================================================== */
@media (max-width: 768px) {

  .btn-primary,
  .btn-secondary,
  .view-btn,
  .email-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  /* Bigger tap area */
  button, a {
    min-height: 44px;
  }
}

/* ======================================================
   GRID & CARDS
====================================================== */
@media (max-width: 768px) {

  .container {
    padding: 30px 16px;
  }

  .grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 16px;
  }

  .candidate-card {
    padding: 20px;
    border-radius: 18px;
  }

  .candidate-card:hover {
    transform: none;
  }
}

/* ======================================================
   AVATAR & PROFILE HERO
====================================================== */
@media (max-width: 768px) {

  .avatar-wrapper,
  .avatar-wrapper-home {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }

  .avatar-img,
  .avatar-fallback {
    border-radius: 18px;
  }

  .profile-hero-card {
    padding: 30px 16px;
    border-radius: 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.95rem;
  }
}

/* ======================================================
   SEARCH & FILTERS
====================================================== */
@media (max-width: 768px) {

  .search-container {
    padding: 8px;
  }

  .search-box,
  #categoryFilter {
    padding: 12px;
    font-size: 0.95rem;
  }

  .expertise-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ======================================================
   PROFILE LAYOUT & SIDEBAR
====================================================== */
@media (max-width: 900px) {

  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sticky-card {
    position: relative;
    top: unset;
    padding: 20px;
    border-radius: 18px;
  }

  .fact {
    font-size: 0.9rem;
  }
}

/* ======================================================
   ROADMAP & TIMELINES
====================================================== */
@media (max-width: 768px) {

  .roadmap-item {
    flex-direction: column;
    padding: 16px;
    border-left: none;
  }

  .roadmap-item .number {
    font-size: 1.2rem;
  }

  .contribution-timeline {
    padding-left: 10px;
    margin-left: 0;
  }
}

/* ======================================================
   FAQ
====================================================== */
@media (max-width: 768px) {

  .faq-item summary {
    padding: 16px;
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}



/* Navbar base (ensure this exists) */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0a0a0b;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* LANGUAGE SWITCH – CLEAR VERSION */
.lang-switch {
    display: flex;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: hidden;
}

.lang-switch button {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #c7c7d1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-switch button:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.lang-switch button.active {
    background: #6366f1;
    color: #fff;
}

@media (max-width: 768px) {
    .lang-switch button {
        padding: 6px 10px;
        font-size: 11px;
    }

    .nav-left {
        gap: 20px;
    }
}


.disclaimer-box {
    width: 100%;

    margin: 20px 0;          /* 🔑 stops centering */
    padding: 12px 16px;

    font-size: 13px;
    line-height: 1.5;

    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;

    text-align: left;
}


.disclaimer-box strong {
    color: var(--text-main);
    font-weight: 500;
}


.bat-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 8px;
    animation: swing 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes swing {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-5px); }
}



.symbol-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.neon-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid #6366f1; /* Matching your purple gradient */
    border-radius: 50%;
    box-shadow: 0 0 20px #6366f1, inset 0 0 10px #6366f1;
    animation: pulseRing 2s ease-in-out infinite;
}

.symbol-icon {
    width: 60px;  /* Explicit width */
    height: 60px; /* Explicit height */
    color: white;
    z-index: 2;
    filter: drop-shadow(0 0 8px var(--accent));
    animation: batSwing 3s ease-in-out infinite;
}

.symbol-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.vote-stamp {
    position: absolute;
    bottom: 15px;
    right: 5px;
    background: #ef4444; /* Bright Red Stamp */
    color: white;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    border: 2px solid white;
    border-radius: 4px;
    transform: rotate(-15deg);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    /* Stamp "Slap" Animation */
    animation: stampIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animations */
@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 30px #a855f7; }
}

@keyframes batSwing {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(12deg); }
}

@keyframes stampIn {
    0% { transform: scale(3) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(-15deg); opacity: 1; }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}






.candidate-card {
    position: relative; /* Necessary to position the stamp absolute */
    overflow: hidden;
}

.unopposed-stamp {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: #059669; /* A professional emerald green */
    color: white;
    padding: 8px 45px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px dashed rgba(255,255,255,0.5);
    pointer-events: none; /* Allows clicks to pass through to the card */
}

/* Optional: Dull the card slightly to show it's "finalized" */
.candidate-card.unopposed {
    border-color: #059669;
}

.hero-guide-link {
    margin-top: 18px;
    text-align: center;
}

.hero-guide-link a {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.hero-guide-link a:hover {
    color: var(--text-main);
}
