/* =========================================================
   1. VARIABLES & GLOBAL RESET
   ========================================================= */
:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.12);
    --primary: #6366f1;   /* Indigo */
    --secondary: #a855f7; /* Purple */
    --accent: #ec4899;    /* Pink */
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glow: 0 0 40px rgba(99, 102, 241, 0.4);

    --input-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(148, 163, 184, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Main content wrapper (navbar fixed hai isliye top padding) */
main {
    flex: 1;
    width: 100%;
    padding-top: 90px;
    position: relative;
    z-index: 5;
}

/* =========================================================
   2. BACKGROUND EFFECTS
   ========================================================= */
.background-mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

/* =========================================================
   3. NAVBAR (FIXED)
   ========================================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.75);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* =========================================================
   4. HERO SECTION (HOME PAGE)
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 8% 2rem 8%;
    position: relative;
    gap: 3rem;
}

.hero-text {
    max-width: 50%;
    z-index: 2;
}

h1 {
    font-size: 4.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* typewriter text line */
.typing-text {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-family: monospace;
    border-right: 2px solid var(--accent);
    padding-right: 4px;
    animation: blink 0.7s infinite;
}

/* Mock Search Bar */
.mock-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.3rem;
    border-radius: 15px;
    width: fit-content;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.mock-search input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0;
    width: 180px;
}

.mock-search input::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

/* 3D Tilt Element */
.hero-visual {
    position: relative;
    width: 45%;
    height: 420px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Global glass card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 1.7rem 1.6rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

/* Hero ke card ko hi absolute + tilt feel */
.hero-visual .glass-card {
    width: 300px;
    position: absolute;
    transform-style: preserve-3d;
}

/* Floating badges */
.badge {
    position: absolute;
    padding: 0.8rem 1.2rem;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    font-size: 0.9rem;
}

.badge i {
    color: var(--accent);
}

.badge-1 { top: 10%; left: 0; animation-delay: 0s; }
.badge-2 { bottom: 10%; right: -20px; animation-delay: 2s; }
.badge-3 {
    top: 40%; right: -35px;
    animation-delay: 1s;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    border: none;
}

/* =========================================================
   5. GENERIC SECTIONS
   ========================================================= */
.section {
    padding: 6rem 8% 4rem 8%;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Features Grid */
.features {
    padding: 5rem 8%;
    position: relative;
    z-index: 2;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.3rem 1.8rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Spotlight hover */
.feature-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.2),
        rgba(168, 85, 247, 0.25)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================================
   6. GENERIC FORMS / LIST CARDS
   ========================================================= */
.form-card {
    max-width: 420px;
    margin: 9rem auto 3rem auto;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.form-card h2 {
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
}

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

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Generic list cards (swap requests, matches) */
.card-list {
    max-width: 900px;
    margin: 9rem auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.list-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.badge-small {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Base input style (fallback) */
input {
    width: 100%;
    background: var(--input-bg);
    border-radius: 35px;
    padding: 15px 45px 15px 20px;
    border: 1px solid var(--glass-border);
    color: #fff;
    outline: none;
}

/* Generic select styling */
.input-field {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    margin-top: 5px;
}

.input-field option {
    background: #111;
    color: #fff;
}

/* =========================================================
   7. AUTH PAGES (LOGIN / REGISTER)
   ========================================================= */
.auth-page {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.6s ease;
}

.login-container {
    width: 420px;
    padding: 45px 40px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
        0 0 50px rgba(100, 100, 255, 0.25),
        0 0 80px rgba(168, 85, 247, 0.15);
    text-align: center;
    animation: popUp 0.4s ease;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 32px;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.25s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.input-group label {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    pointer-events: none;
    transition: 0.25s ease;
    font-size: 0.95rem;
}

/* Floating Label */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 18px;
    font-size: 0.78rem;
    padding: 3px 10px;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 6px;
}

.icon {
    position: absolute;
    right: 18px;
    top: 50%;
    font-size: 1.1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    transition: 0.25s;
}

.input-group input:focus ~ .icon {
    color: var(--accent);
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 1px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 15px rgba(99, 102, 241, 0.7),
        0 0 25px rgba(168, 85, 247, 0.4);
}

.login-btn:active {
    transform: scale(0.97);
}

.links {
    margin-top: 25px;
}

.links a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.links a:hover {
    letter-spacing: 0.5px;
    color: #fff;
}

@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 32px 25px;
    }
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer {
    width: 100%;
    background: rgba(17, 24, 39, 0.78);
    color: #ccc;
    padding: 40px 5%;
    flex-shrink: 0;
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-about,
.footer-links,
.footer-social {
    flex-basis: 100%;
    min-width: 220px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.site-footer h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent);
    text-decoration: underline;
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary);
    transform: scale(1.1) translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #aaa;
}

/* =========================================================
   9. PROFILE PAGE (SIDEBAR + MAIN)
   ========================================================= */
.profile-wrapper {
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 40px 30px;
    display: flex;
    gap: 35px;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 88vh;
    background: rgba(17, 24, 39, 0.85);
    border-radius: 18px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #d1d5db;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 500;
    transition: 0.25s;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

/* Main profile content */
.profile-main {
    flex: 1;
}

/* Top card */
.profile-header {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
    gap: 20px;
}

.profile-header .avatar img {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

/* Common section card */
.profile-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 16px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-section h3 {
    margin-bottom: 8px;
}

/* Teach / Learn grid */
.profile-section.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-section .box {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-section .box ul {
    list-style: disc;
    padding-left: 18px;
}

.profile-section .box ul li {
    padding: 6px 0;
}

.profile-section p {
    margin: 5px 0;
}

.empty {
    color: #748091;
}

/* Edit profile button */
.edit-btn {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.edit-btn:hover {
    color: #fff;
}

/* =========================================================
   10. SKILL EXCHANGE PAGE
   ========================================================= */
.exchange-wrapper {
    padding: 7.5rem 8% 3rem;
}

.exchange-header {
    margin-bottom: 32px;
}

.exchange-header h1 {
    font-size: 2.7rem;
    font-weight: 800;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exchange-header p {
    color: #94a3b8;
    margin-top: 8px;
    font-size: 1.05rem;
}

.exchange-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-filter,
.btn-matches {
    padding: 9px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-filter:hover,
.btn-matches:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* GRID */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.exchange-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 18px 20px;
    border-radius: 16px;
    transition: 0.3s;
}

.exchange-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

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

.ex-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.ex-section {
    margin: 10px 0;
}

.teach,
.learn {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 4px;
    font-size: 0.88rem;
}

.send-request-btn {
    margin-top: 12px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.25s;
    font-weight: 600;
}

.send-request-btn:hover {
    transform: translateY(-2px);
}

/* =========================================================
   11. DASHBOARD PAGE
   ========================================================= */
.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 3rem;
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 45px;
}

.dashboard-header h1 {
    font-size: 3.1rem;
    font-weight: 800;
}

.dashboard-header p {
    color: #bbb;
    margin-top: 10px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    padding: 32px 20px;
    border-radius: 18px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.3s;
}

.stat-card h3 {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card p {
    font-size: 1.02rem;
    color: #aaa;
    margin-top: 6px;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
}

/* Glass cards generic */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 22px 20px;
    backdrop-filter: blur(18px);
    margin-bottom: 28px;
}

/* Progress bar */
.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 8px;
}

/* Level badge */
.level-badge {
    text-align: center;
    margin-bottom: 35px;
}

.level-badge .badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    box-shadow: 0 0 20px #6366f1a8;
}

/* Activity + Suggestions grid */
.activity-suggestion-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Timeline */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin-left: 18px;
    padding-left: 18px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .dot {
    width: 14px;
    height: 14px;
    background: #a855f7;
    border-radius: 50%;
    position: absolute;
    left: -26px;
    top: 4px;
    box-shadow: 0 0 10px #a855f7;
}

.timeline-content h4 {
    margin-bottom: 3px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.88rem;
    color: #bbb;
}

/* Suggestions box */
.suggestions-box {
    min-height: 260px;
}

/* Suggestion rows */
.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
}

.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    font-weight: 700;
    font-size: 1rem;
}

.btn-small {
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.muted {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Your skills section */
.dashboard-section {
    margin-bottom: 38px;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.skills-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quick actions */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.quick-box {
    background: rgba(255, 255, 255, 0.06);
    padding: 22px 18px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.quick-box i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.quick-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Chart canvas */
#activityChart {
    max-height: 260px;
}

/* =========================================================
   12. ANIMATIONS
   ========================================================= */
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-16px); }
}

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

@keyframes popUp {
    from { transform: scale(0.93); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================================================
   13. RESPONSIVE DESIGN
   ========================================================= */

/* Navbar + footer + profile responsive */
@media (max-width: 900px) {
    /* Nav slide-out */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 60%;
        max-width: 300px;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(30px);
        border-left: 1px solid rgba(168, 85, 247, 0.3);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 25px;
        transition: right 0.5s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .footer-container {
        flex-direction: column;
    }

    /* Profile page -> column layout */
    .profile-wrapper {
        flex-direction: column;
        padding: 20px 16px 40px;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .profile-section.grid {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Tablet / mobile hero + dashboard */
@media (max-width: 768px) {
    nav { padding: 1rem 5%; }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 115px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    h1 { font-size: 3rem; }

    .mock-search {
        margin: 0 auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        width: 100%;
        height: 340px;
    }

    .badge {
        display: none;
    }

    .dashboard-wrapper {
        padding: 6.5rem 1.4rem 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .activity-suggestion-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .skills-card {
        grid-template-columns: 1fr;
    }
}

/* Super small screens */
@media (max-width: 480px) {
    .hero {
        padding-inline: 1.4rem;
    }

    .section,
    .features {
        padding-inline: 1.4rem;
    }

    .exchange-wrapper {
        padding-inline: 1.4rem;
    }

    .dashboard-wrapper {
        padding-inline: 1.2rem;
    }
}









/* =========================================================
   SKILL SWAP – CLEAN PREMIUM SWAP REQUESTS UI
   ========================================================= */

.swap-page {
    max-width: 900px;
    margin: 100px auto 60px auto;
    padding: 0 20px;
    animation: fadeIn 0.4s ease;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.empty-text {
    color: #aaa;
    font-size: 15px;
    padding: 10px 0;
}

.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.swap-card {
    padding: 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 30px rgba(140, 82, 255, 0.20);
    transition: 0.3s ease;
}

.swap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(140, 82, 255, 0.35);
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.username {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.status {
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 14px;
}

.status.accepted {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.status.rejected {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.status.pending {
    background: rgba(255, 180, 52, 0.25);
    color: #fbbf24;
}

.skill-line {
    margin-top: 10px;
    font-size: 15px;
    color: #ddd;
}

.time {
    margin-top: 5px;
    font-size: 13px;
    color: #9ca3af;
}

.action-row {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
    cursor: pointer;
}

.accept {
    background: #8b5cf6;
    color: #fff;
    border: none;
}

.accept:hover {
    background: #7c3aed;
}

.reject {
    background: rgba(255,255,255,0.12);
    border: 1px solid #777;
    color: #fff;
}

.reject:hover {
    background: rgba(255,255,255,0.18);
}

.session-started {
    margin-top: 10px;
    color: #4ade80;
    font-weight: 700;
    font-size: 15px;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 40px 0;
}

/* Smooth fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}









.completed-card {
    background: rgba(255,255,255,0.06);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
}

.review-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feedback-text {
    color: #ccc;
    margin-top: 5px;
}

.review-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: white;
    text-decoration: none;
    font-weight: 600;
}



.badge-box {
    background: rgba(120, 0, 255, 0.15);
    padding: 15px;
    margin-top: 15px;
    border-radius: 12px;
    border: 1px solid #8300ff;
    box-shadow: 0 0 12px #7a00ff;
    text-align: center;
}

.badge-title {
    color: #ffcbff;
    font-size: 20px;
    text-shadow: 0 0 10px #ff00d4;
}

.trust-score,
.rating {
    margin: 5px 0;
    font-size: 15px;
}


/* --- REVIEWS WRAPPER --- */
.reviews-container {
    margin-top: 36px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(255, 0, 242, 0.18);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
}

/* HEADING */
.section-title {
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 600;
    color: #f2ddff;
}

/* --- SINGLE REVIEW CARD --- */
.review-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: radial-gradient(circle at top left,
                rgba(255, 0, 224, 0.12),
                rgba(12, 10, 30, 0.95));
    border: 1px solid rgba(255, 0, 224, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                border-color 0.18s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 0, 224, 0.45);
}

/* AVATAR */
.review-avatar {
    flex: 0 0 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.review-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff00e6, #7f5dff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}

/* CONTENT */
.review-content {
    flex: 1;
}

/* TOP ROW: name + date + stars */
.review-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.review-author-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: #fce6ff;
}

.review-date {
    font-size: 11px;
    opacity: 0.7;
}

/* STARS */
.review-stars {
    font-size: 18px;
    color: #ffd966;
    white-space: nowrap;
}

/* TEXT */
.review-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #f7f1ff;
}

/* EMPTY STATE */
.no-review {
    opacity: 0.75;
    font-size: 14px;
    font-style: italic;
}
