/* =========================================
   THEME VARIABLES — DARK (DEFAULT)
   ========================================= */
 
:root {
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-navbar: #1e293b;
    --bg-footer: rgba(30, 41, 59, 0.8);
    --bg-stats: rgba(58, 86, 130, 0.8);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-accent: #259ed2;

    /* Borders */
    --border-primary: rgba(56, 189, 248, 0.3);
    --border-secondary: rgba(148, 163, 184, 0.2);

    /* Accents */
    --primary-color: #38bdf8;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;

    /* Hover */
    --hover-bg: rgba(173, 216, 230, 0.1);
    --hover-border: rgba(135, 206, 235, 0.5);
    --hover-text: #87ceeb;
    --hover-glow: 0 0 40px rgba(135, 206, 235, 0.4);



    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38bdf8, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-card: linear-gradient(145deg, #1e293b, #0f172a);
    --gradient-button: linear-gradient(90deg, #38bdf8, #3b82f6);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.3);

    /* Glass */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(56, 189, 248, 0.1);
}


/* =========================================
   THEME VARIABLES — LIGHT
   ========================================= */
body[data-theme="light"] {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-navbar: #ffffff;
    --bg-footer: rgba(241, 245, 249, 0.9);
    --bg-stats: rgba(226, 232, 240, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-accent: #2563eb;

    --border-primary: rgba(0, 0, 0, 0.08);
    --border-secondary: rgba(0, 0, 0, 0.05);

    --gradient-card: linear-gradient(145deg, #ffffff, #f1f5f9);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.06);
}

/* =========================================
   THEME VARIABLES — OCEAN
   ========================================= */
body[data-theme="ocean"] {
    --bg-primary: #0b1220;
    --bg-secondary: #0f1b2d;
    --bg-card: rgba(14, 28, 44, 0.92);
    --bg-navbar: rgba(12, 24, 38, 0.95);
    --bg-footer: rgba(10, 18, 32, 0.9);
    --bg-stats: rgba(20, 52, 78, 0.7);

    --text-primary: #f8fafc;
    --text-secondary: #9fb4cc;
    --text-accent: #45caff;

    --border-primary: rgba(69, 202, 255, 0.35);
    --border-secondary: rgba(148, 163, 184, 0.2);

    --primary-color: #45caff;
    --secondary-color: #22d3ee;
    --success-color: #10b981;

    --hover-bg: rgba(69, 202, 255, 0.12);
    --hover-border: rgba(34, 211, 238, 0.5);
    --hover-text: #67e8f9;
    --hover-glow: 0 0 40px rgba(34, 211, 238, 0.35);

    --gradient-primary: linear-gradient(135deg, #45caff, #22d3ee);
    --gradient-secondary: linear-gradient(135deg, #22d3ee, #0ea5e9);
    --gradient-card: linear-gradient(145deg, #0f1b2d, #0b1220);
    --gradient-button: linear-gradient(90deg, #45caff, #22d3ee);

    --shadow-sm: 0 4px 6px rgba(3, 7, 18, 0.2);
    --shadow-md: 0 10px 25px rgba(3, 7, 18, 0.35);
    --shadow-lg: 0 20px 40px rgba(3, 7, 18, 0.5);
    --shadow-glow: 0 0 30px rgba(69, 202, 255, 0.3);

    --glass-bg: rgba(12, 24, 38, 0.7);
    --glass-border: rgba(69, 202, 255, 0.12);
}

/* =========================================
   THEME VARIABLES — NEON
   ========================================= */
body[data-theme="neon"] {
    --bg-primary: #07070f;
    --bg-secondary: #0b0b18;
    --bg-card: rgba(16, 16, 32, 0.92);
    --bg-navbar: rgba(10, 10, 24, 0.95);
    --bg-footer: rgba(8, 8, 20, 0.92);
    --bg-stats: rgba(29, 29, 52, 0.8);

    --text-primary: #f8fafc;
    --text-secondary: #b3b7ff;
    --text-accent: #f472b6;

    --border-primary: rgba(56, 189, 248, 0.4);
    --border-secondary: rgba(167, 139, 250, 0.25);

    --primary-color: #38bdf8;
    --secondary-color: #f472b6;
    --success-color: #22d3ee;

    --hover-bg: rgba(244, 114, 182, 0.12);
    --hover-border: rgba(56, 189, 248, 0.55);
    --hover-text: #f9a8d4;
    --hover-glow: 0 0 40px rgba(244, 114, 182, 0.35);

    --gradient-primary: linear-gradient(135deg, #38bdf8, #a78bfa);
    --gradient-secondary: linear-gradient(135deg, #f472b6, #38bdf8);
    --gradient-card: linear-gradient(145deg, #101024, #07070f);
    --gradient-button: linear-gradient(90deg, #f472b6, #38bdf8);

    --shadow-sm: 0 4px 6px rgba(7, 7, 15, 0.4);
    --shadow-md: 0 12px 28px rgba(7, 7, 15, 0.55);
    --shadow-lg: 0 24px 50px rgba(7, 7, 15, 0.7);
    --shadow-glow: 0 0 32px rgba(244, 114, 182, 0.35);

    --glass-bg: rgba(12, 12, 30, 0.75);
    --glass-border: rgba(167, 139, 250, 0.25);
}

/* =========================================
   THEME VARIABLES — MINIMAL
   ========================================= */
body[data-theme="minimal"] {
    --bg-primary: #f6f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.95);
    --bg-footer: rgba(241, 245, 249, 0.9);
    --bg-stats: rgba(226, 232, 240, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-accent: #2563eb;

    --border-primary: rgba(15, 23, 42, 0.08);
    --border-secondary: rgba(15, 23, 42, 0.05);

    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --success-color: #10b981;

    --hover-bg: rgba(37, 99, 235, 0.1);
    --hover-border: rgba(37, 99, 235, 0.3);
    --hover-text: #1d4ed8;
    --hover-glow: 0 0 28px rgba(37, 99, 235, 0.2);

    --gradient-primary: linear-gradient(135deg, #2563eb, #0ea5e9);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9, #22d3ee);
    --gradient-card: linear-gradient(145deg, #ffffff, #f1f5f9);
    --gradient-button: linear-gradient(90deg, #2563eb, #0ea5e9);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.25);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
}



/* =========================================
   IMAGE UPLOADER STYLES
   ========================================= */
.uploader-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.uploader-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.drop-zone {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--border-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.05);
}

.drop-zone-content {
    text-align: center;
    transition: opacity 0.3s ease;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.drop-zone-content span {
    color: var(--primary-color);
    text-decoration: underline;
}

.file-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Preview Styles */
.preview-container {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-container.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#imagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

/* Footer & Buttons */
.uploader-footer {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remove-btn,
.replace-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.remove-btn:hover:not(:disabled) {
    background: #ef4444;
    color: white;
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.replace-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.error-msg {
    color: #fb7185;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
}



/* =========================================
   BODY & BASE STYLES
   ========================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}
/* =========================================
   NAVBAR — FINAL (CENTERED, CURVED, STABLE)
   ========================================= */

.navbar {
  position: sticky;
  top: 20px;
  z-index: 2000;

  width: 100%;
  display: flex;
  justify-content: center;

  background: transparent;
}

.navbar .nav-inner {
  width: calc(100% - 48px);
  max-width: 1400px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 28px;

  background: linear-gradient(135deg, #071a33, #0b2b52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 20px;   /* ✅ CURVES BACK */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);

  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* Update hover to keep the shadow looking good */
.navbar:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.nav-logo {
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Desktop Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 30px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    gap: 8px;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =========================================
   THEME SWITCHER (OCEAN / NEON / MINIMAL)
   ========================================= */
.theme-switcher {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.theme-option {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.theme-option:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
    border-color: var(--hover-border);
}

.theme-option[aria-pressed="true"] {
    background: var(--gradient-button);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.swatch.ocean {
    background: linear-gradient(135deg, #45caff, #22d3ee);
}

.swatch.neon {
    background: linear-gradient(135deg, #38bdf8, #f472b6);
}

.swatch.minimal {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

/* =========================================
   HEADINGS & TYPOGRAPHY
   ========================================= */
h1 {
    text-align: center;
    font-size: 3rem;
    margin: 40px auto 15px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: lineWidth 6s ease-in-out infinite;
}

@keyframes lineWidth {

    0%,
    100% {
        left: 25%;
        width: 50%;
    }

    50% {
        left: 15%;
        width: 70%;
    }
}

/* Typewriter Effect */
#typewriter {
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink 0.75s step-end infinite;
    font-weight: 700;
    margin: 10px 0;
    letter-spacing: 2px;
    padding-right: 4px;
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--primary-color);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* =========================================
   STATS CONTAINER
   ========================================= */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.stat-card {
    background: var(--bg-stats);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card span {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.stat-card:hover span {
    transform: scale(1.1);
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Stats Counter Hover Effect */
.stat-card span::after {
    content: '+';
    position: absolute;
    right: -15px;
    top: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    color: var(--success-color);
    font-size: 1.5rem;
}

.stat-card:hover span::after {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   SEARCH & FILTER CONTROLS
   ========================================= */
.search-filter-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* =========================================
   SKILL FILTER SECTION
   ========================================= */
.skill-filter-section {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.skill-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-filter-header span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-skills-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.clear-skills-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.skill-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-filter-tag {
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-filter-tag:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.skill-filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Card Skills Display */
.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card:hover .skill-tag {
    background: rgba(56, 189, 248, 0.25);
    transform: scale(1.05);
}

/* Search Bar */
#searchInput {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
    border-radius: 30px;
    outline: none;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.35);
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

#searchInput:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 600px;
    background: var(--bg-card);
    border: 2px dashed var(--border-primary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.no-results.show {
    display: block;
}

.no-results p {
    margin: 0;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sort-select {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

/* =========================================
   RANDOM BUTTON STYLES
   ========================================= */
.random-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    padding: 0 1rem;
    animation: fadeIn 0.8s ease-out;
}

.random-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.random-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.random-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.random-btn span {
    font-size: 1.3rem;
    animation: spinSlow 4s linear infinite;
}

.random-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
    z-index: -1;
}

.random-btn:hover::before {
    left: 100%;
}


@keyframes spinSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CARD CONTAINER - MAIN LAYOUT
   ========================================= */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dim other cards when one is active */
.card-container.has-active-card .card:not(.active) {
    opacity: 0.3;
    transform: scale(0.95);
    filter: blur(2px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Fallback for browsers that support :has() */
@supports selector(:has(*)) {
    .card-container:has(.card.active) .card:not(.active) {
        opacity: 0.3;
        transform: scale(0.95);
        filter: blur(2px);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: none;
    grid-column: 1 / -1;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* =========================================
   INDIVIDUAL CARD STYLES
   ========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;

    /* performance-friendly transitions */
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;

    position: relative;
    overflow: hidden;

    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    align-items: center;

    cursor: pointer;
    perspective: 1000px;
    transform-origin: center;

    min-height: 450px;

    animation: cardAppear 0.6s ease-out forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
    will-change: transform;
}

/* Card appear animation */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Hover effects — premium depth */
.card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        /* main lift shadow */
        0 28px 60px rgba(0, 0, 0, 0.45),
        /* soft ambient depth */
        0 12px 24px rgba(0, 0, 0, 0.35),
        /* existing theme glow */
        var(--shadow-glow);
    border-color: var(--primary-color);
    z-index: 2;
}



/* Gradient glow layer (refined) */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    filter: blur(18px);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.card:hover::before {
    opacity: 0.35;
}

/* Inner light response (luxury touch) */
.card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.card:hover::after {
    opacity: 1;
}



/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
        transition: none;
    }

    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
        border-color: var(--border-primary);
    }
}



/* Shimmer effect - only on hover */
.card .shimmer-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.card:hover .shimmer-effect {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Card inner elements hover effects */
.card:hover .card-img {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.card:hover h2 {
    color: var(--primary-color);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card:hover .role {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.card:hover .card-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
    transition: all 0.3s ease;
}

.card:hover p {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

/* Card glare effect from tilt.js */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 20px;
    z-index: 2;
}

/* Enhanced card button hover effects */
.card-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card highlight states */
.card.shared-highlight {
    animation: githubGlow 2s ease;
    border: 2px solid var(--primary-color);
}

.card.random-highlight {
    animation: highlightPulse 1s ease-in-out;
    position: relative;
    z-index: 10;
}

.card.random-highlight::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0);
    border-radius: 15px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

.card.random-highlight::after {
    content: '🎉 Random Pick!';
    position: absolute;
    top: -15px;
    right: -10px;
    background: linear-gradient(135deg, #ff0080, #ff8c00);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: bounce 0.5s ease-in-out 3;
}

@keyframes githubGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    }
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* Ripple Effect on Card Click */
.card:active {
    transform: scale(0.98);
}

.card:active::before {
    width: 300px;
    height: 300px;
}

/* Card Flip Animation */
.card.flip {
    animation: flipCard 0.6s ease;
}

@keyframes flipCard {
    0% {
        transform: rotateY(0);
    }

    50% {
        transform: rotateY(90deg);
    }

    100% {
        transform: rotateY(0);
    }
}

/* =========================================
   CARD IMAGE (Small border weight)
   ========================================= */
.card-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    background: var(--gradient-primary) border-box;
    padding: 2px;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block;
    position: relative;
    z-index: 1;
}

.card:hover .card-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.3);
    border-width: 3px;
}

/* =========================================
   CARD CONTENT
   ========================================= */
.card h2 {
    margin: 15px 0 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
    width: 100%;
    transition: color 0.3s ease;
}

/* Role Badge */
.card .role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 0 auto 25px auto;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
}

.card:hover .role {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

/* Card Description */
.card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    flex-grow: 1;
    font-style: italic;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    transition: color 0.3s ease;
}

/* =========================================
   CARD BUTTONS STYLES
   ========================================= */
.card-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.card-btn {
    flex: 1;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    border: 2px solid rgba(56, 189, 248, 0.4);
    background: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    cursor: pointer;
}

.card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.card-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.card-btn:hover::before {
    left: 0;
}

.card-btn::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.card-btn:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

.card-btn:active {
    transform: scale(0.97);
}

/* Card Buttons Container */
.card-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: center;
}

/* GitHub Share Button */
.share-btn {
    flex: 1;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--github-light);
    background: var(--github-color);
    border: 1px solid var(--github-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.share-btn span {
    font-size: 1.1em;
}

/* GitHub button hover effect */
.share-btn:hover {
    background: var(--github-hover);
    border-color: var(--github-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
    transform: translateY(0);
}

/* Light mode specific GitHub button */
body.light-mode .share-btn {
    background: var(--github-dark);
    border-color: var(--github-dark);
    color: white;
}

body.light-mode .share-btn:hover {
    background: var(--github-hover);
    border-color: var(--github-hover);
}

/* GitHub button ripple effect */
.share-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.share-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* =========================================
   SHARE DROPDOWN MENU
   ========================================= */
.share-container {
    position: relative;
    flex: 1;
}

.share-dropup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: dropdownFade 0.2s ease-out;
}

.share-dropup.show {
    display: block;
}

.share-dropup a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.share-dropup a:last-child {
    margin-bottom: 0;
}

.share-dropup a:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    transform: translateX(3px);
}

.share-dropup a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Platform-specific colors */
.share-dropup a:nth-child(1):hover {
    color: var(--whatsapp-color);
    background: rgba(37, 211, 102, 0.1);
}

.share-dropup a:nth-child(2):hover {
    color: var(--linkedin-color);
    background: rgba(0, 119, 181, 0.1);
}

.share-dropup a:nth-child(3):hover {
    color: var(--twitter-color);
    background: rgba(29, 161, 242, 0.1);
}

.share-dropup a:nth-child(4):hover {
    color: var(--facebook-color);
    background: rgba(24, 119, 242, 0.1);
}

.share-dropup a:nth-child(5):hover {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

/* Arrow indicator for dropdown */
.share-dropup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--bg-card) transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* =========================================
   SHARE NOTIFICATION
   ========================================= */
.share-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 15px 20px;
    display: none;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
    width: 90%;
}

.share-notification.show {
    display: flex;
}

.share-notification-content {
    flex: 1;
}

.share-notification h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.share-notification p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.notification-buttons {
    display: flex;
    gap: 10px;
}

.copy-btn,
.close-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.copy-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.close-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.close-btn:hover {
    background: var(--border-primary);
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SPECIAL CARD STYLES
   ========================================= */
.prithwish-custom-style {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)),
        var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.prithwish-custom-style:hover {
    animation: glowPulse 2s infinite;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.4);
}

.ayush-custom-style {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)),
        linear-gradient(135deg, #ec4899, #8b5cf6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.ayush-custom-style:hover {
    animation: ayushGlow 2s infinite;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(236, 72, 153, 0.4);
}

@keyframes ayushGlow {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(236, 72, 153, 0.3);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 50px rgba(236, 72, 153, 0.6), 0 0 70px rgba(139, 92, 246, 0.4);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.3);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.6);
    }
}

/* =========================================
   FOOTER
   ========================================= */
  .footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e5e7eb;
  padding: 50px 70px 20px;
  font-family: "Inter", sans-serif;
}

  
 .footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

  
  .footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
  }
  
  .footer-brand p {
    margin: 12px 0 20px;
    color: #9ca3af;
    font-size: 14px;
  }
  
  .footer-social-icons {
    display: flex;
    gap: 14px;
  }
  
  .footer-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    transition: all 0.3s ease;
  }
  
  .footer-social-icons a:hover {
    background: #2563eb;
    color: #ffffff;
  }
  
  .footer-links h4 {
    font-size: 16px;
    margin-bottom: 14px;
    position: relative;
    color: #ffffff;
  }
  
  .footer-links h4::after {
    content: "";
    width: 30px;
    height: 2px;
    background: #2563eb;
    position: absolute;
    left: 0;
    bottom: -6px;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
  }
  
  .footer-links ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
  
  .footer-links ul li a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .footer-links ul li a i {
  font-size: 14px;
  min-width: 16px;
  color: #9ca3af;
}

  
  .footer-links ul li a:hover {
    color: #ffffff;
  }
  
  .footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 50px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
  }
  
  /* Responsive */

  @media (max-width: 600px) {
    .footer {
      padding: 50px 30px;
    }
  
    .footer-container {
      grid-template-columns: 1fr;
    }
  }

  /* =========================
   LIGHT MODE FOOTER STYLES
   ========================= */

body[data-theme="light"] .footer {
    background: linear-gradient(180deg, #f8fafc, #e5e7eb);
    color: #1f2933;
  }
  
  body[data-theme="light"] .footer-brand h3 {
    color: #111827;
  }
  
  body[data-theme="light"] .footer-brand p {
    color: #4b5563;
  }
  
  body[data-theme="light"] .footer-social-icons a {
    background: #e5e7eb;
    color: #1f2933;
  }
  
  body[data-theme="light"] .footer-social-icons a:hover {
    background: #2563eb;
    color: #ffffff;
  }
  
  body[data-theme="light"] .footer-links h4 {
    color: #111827;
  }
  
  body[data-theme="light"] .footer-links h4::after {
    background: #2563eb;
  }
  
  body[data-theme="light"] .footer-links ul li a {
    color: #4b5563;
  }
  
  body[data-theme="light"] .footer-links ul li a:hover {
    color: #111827;
  }
  
  body[data-theme="light"] .footer-bottom {
    border-top: 1px solid #d1d5db;
    color: #4b5563;
  }
  /* Prevent themes from breaking navbar */
body[data-theme] .navbar .nav-inner {
  background: linear-gradient(135deg, #071a33, #0b2b52);
}


  /* =========================================
   NAVBAR — CLEAN & CENTERED (DESKTOP FIRST)
   ========================================= */

/* Full-width strip */
.navbar {
  position: sticky;
  top: 20px;
  z-index: 2000;

  width: 100%;
  display: flex;
  justify-content: center;

  background: transparent;
}

/* Inner navbar */
.navbar .nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 28px;

  background: var(--bg-navbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid var(--glass-border);
  border-radius: 18px;

  box-shadow: var(--shadow-lg);
}

.nav-links a,
.drop-btn {
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.nav-links a:hover,
.drop-btn:hover {
  color: var(--primary-color);
}

/* =========================================
   CIRCLE CURSOR EFFECT
   ========================================= */
.circle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(73, 232, 247, 0.466),
            rgba(141, 38, 172, 0.5));
    transition: transform 0.1s, left 0.1s, top 0.1s;
}

/* =========================================
   PAGE LOADER
   ========================================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-primary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.scroll-to-top.show {
    display: flex;
}

/* =========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================= */
/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }

    .card-btn {
        border-width: 3px;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    #searchInput,
    .theme-toggle,
    .theme-switcher,
    .random-button-container,
    .share-dropup {
        display: none;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .theme-toggle {
        padding: 6px 14px;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    #typewriter {
        font-size: 1.8rem;
    }

    .stat-card {
        min-width: 120px;
        padding: 15px 10px;
    }

    .stat-card span {
        font-size: 2rem;
    }

    .card {
        padding: 25px 20px;
        min-height: 400px;
    }

    .card-img {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card .role {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .card p {
        font-size: 0.9rem;
        min-height: 50px;
    }

    .random-button-container {
        margin: 1.5rem auto;
    }

    .random-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* =========================
   FAQ PAGE STYLES
   ========================= */

.faq-header {
    text-align: center;
    margin: 40px auto 60px;
    max-width: 800px;
}

.faq-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
}

.faq-header p {
    color: var(--secondary-text);
    margin-top: 10px;
    font-size: 1.1rem;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto 80px;
    display: grid;
    gap: 25px;
    padding: 0 20px;
}

.faq-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 25px 30px;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.faq-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.faq-card p,
.faq-card li {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-card ul {
    padding-left: 18px;
    margin-top: 8px;
}

.faq-card code {
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 0.85rem;
}



/* ===============================
   PROJECTS PAGE
   =============================== */

.projects-header {
    text-align: center;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.projects-header h1 {
    font-size: 2.8rem;
}

.projects-header p {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 1.1rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

/* Links */
.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-links a {
    flex: 1;
    text-align: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Footer */
.project-footer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.project-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   3D INTERACTIVE CARDS & GLARE
   ========================================= */
.card {
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =========================================
   ENHANCED GLASSMORPHISM & PARALLAX
   ========================================= */
.card {
    /* Ensure glass look is prominent */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Ensure text is readable */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Inner elements spacing for 3D effect */
.card h2,
.card img,
.card .role,
.card p,
.card .card-btn {
    /* Ensure they are on their own layer for z-index/3d */
    position: relative;
    transition: transform 0.1s ease;
}

.card img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links a[aria-label="Instagram"]:hover {
    color: #e1306c;
}

.social-links a[aria-label="Facebook"]:hover {
    color: #1877f2;
}

.social-links a[aria-label="LinkedIn"]:hover {
    color: #0a66c2;
}

.social-links a[aria-label="GitHub"]:hover {
    color: #fff;
}

.social-links a[aria-label="Twitter"]:hover {
    color: #1da1f2;
}

/* =========================================
   WELCOME MESSAGE
   ========================================= */
.welcome-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(30, 41, 59, 0.9);
    /* Dark theme default */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
}

body.light-mode .welcome-message {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.welcome-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .welcome-message {
        width: 90%;
        font-size: 0.9rem;
        padding: 12px 20px;
        bottom: 20px;
    }
}

/* ===============================
   GUIDELINES PAGE STYLES
   =============================== */

.guidelines-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* Overview Card */
.guideline-card.overview {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.guideline-card.overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.guideline-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.guideline-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin: 60px 0 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
}

/* Guidelines Grid */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.guideline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.guideline-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.guideline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.guideline-number {
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.guideline-item h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.guideline-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Example Boxes */
.example-box {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.example-box.bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.guideline-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.guideline-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.guideline-list i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.tip-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
}

.tip-box i {
    font-size: 1.2rem;
}

/* Tags Example */
.tags-example {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

/* Template Card */
.template-card {
    background: var(--bg-card);
    border: 2px dashed var(--border-primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.template-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
}

.template-card .project-desc {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.template-card .project-tags {
    justify-content: center;
    margin-bottom: 25px;
}

.template-card .project-links {
    justify-content: center;
    margin-bottom: 20px;
}

.template-card .project-footer {
    text-align: center;
}

.template-note {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success-color);
    font-size: 0.9rem;
}

/* Reference Grid */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.reference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 15px;
    padding: 25px;
}

.reference-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.reference-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.reference-card li:last-child {
    border-bottom: none;
}

.reference-card li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .guideline-card.overview {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .template-card {
        padding: 20px;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guideline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .guideline-item {
        padding: 20px;
    }

    .template-card h2 {
        font-size: 1.5rem;
    }
}

.projects-container.compact-view {
    grid-template-columns: 1fr;
}

/* ===============================
   ENHANCED TABULAR LIST VIEW (2 cards per row)
   =============================== */

/* Default Grid View */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* List View (2 cards per row) */
.card-container.list-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
}

/* Card in List View */
.card-container.list-view .card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-height: 180px;
    padding: 20px;
    text-align: left;
    border-radius: 15px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
}

.card-container.list-view .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

/* Image in List View */
.card-container.list-view .card-img {
    width: 90px;
    height: 90px;
    margin: 0 20px 0 0;
    border-width: 2px;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.card-container.list-view .card:hover .card-img {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Remove the flip effect in list view */
.card-container.list-view .card-inner {
    transform: none !important;
}

/* Content wrapper for list view */
.card-container.list-view .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    /* Prevent overflow */
}

/* Name and role container */
.card-container.list-view .card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

/* Name in list view */
.card-container.list-view h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    width: 100%;
}

/* Role badge in list view */
.card-container.list-view .role {
    font-size: 0.8rem;
    padding: 5px 12px;
    margin: 0;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quote in list view */
.card-container.list-view p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 10px 0 15px 0;
    line-height: 1.5;
    flex-grow: 1;
    text-align: left;

    /* Multiline clamp (CORRECT WAY) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Buttons in list view */
.card-container.list-view .card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.card-container.list-view .card-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    min-width: 120px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Fix for cards without card-inner wrapper */
.card-container.list-view .card>.card-img:first-child {
    margin-right: 20px;
}

.card-container.list-view .card>h2:first-of-type {
    margin-top: 0;
}


/* =========================================
   RESPONSIVE TABULAR LIST VIEW (FIXED)
   ========================================= */

@media (max-width: 1024px) {
    .card-container.list-view .card {
        min-height: 170px;
        padding: 15px;
    }

    .card-container.list-view .card-img {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }

    .card-container.list-view h2 {
        font-size: 1.2rem;
    }

    .card-container.list-view p {
        font-size: 0.85rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        /* stylelint-disable-next-line property-no-vendor-prefix */
        -webkit-line-clamp: 2;
    }

    .card-container.list-view .card-btn {
        min-width: 110px;
        padding: 7px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .card-container.list-view .card {
        min-height: 160px;
    }

    .card-container.list-view p {
        margin: 8px 0 12px;
        /* stylelint-disable-next-line property-no-vendor-prefix */
        -webkit-line-clamp: 2;
    }
}

/* =========================================
   RESPONSIVE TABULAR LIST VIEW (FINAL – CLEAN)
   ========================================= */

@media (max-width: 1024px) {
    .card-container.list-view .card {
        min-height: 170px;
        padding: 15px;
    }

    .card-container.list-view .card-img {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }

    .card-container.list-view h2 {
        font-size: 1.2rem;
    }

    .card-container.list-view p {
        font-size: 0.85rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        /* stylelint-disable-next-line property-no-vendor-prefix */
        -webkit-line-clamp: 2;
    }

    .card-container.list-view .card-btn {
        min-width: 110px;
        padding: 7px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .card-container.list-view {
        grid-template-columns: 1fr;
    }

    .card-container.list-view .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-container.list-view .card-img {
        margin: 0 auto 15px;
        width: 100px;
        height: 100px;
    }

    .card-container.list-view .card-header {
        align-items: center;
    }

    .card-container.list-view p {
        margin: 8px 0 12px;
        text-align: center;
        /* stylelint-disable-next-line property-no-vendor-prefix */
        -webkit-line-clamp: 3;
    }

    .card-container.list-view .card-actions {
        justify-content: center;
    }
}

/* View Toggle Button */
.view-toggle-btn {
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
}

.view-toggle-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.view-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button icon states - show grid icon by default */
.view-toggle-btn .fa-list {
    display: inline;
}

.view-toggle-btn .fa-th-large {
    display: none;
}

/* When in list view, show grid icon */
.card-container.list-view~.search-filter-container .view-toggle-btn .fa-list {
    display: none;
}

.card-container.list-view~.search-filter-container .view-toggle-btn .fa-th-large {
    display: inline;
}

/* ============================
   Soumya's Custom Card Style--
   ============================
*/
.SRDash2003-custom-style {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)),
        linear-gradient(135deg, #20e762);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.SRDash2003-custom-style:hover {
    animation: SRDGlow 2s infinite;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(40, 239, 63, 0.4);
}

@keyframes SRDGlow {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(40, 239, 63, 0.6);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 50px rgba(40, 239, 63, 0.6), 0 0 70px rgba(40, 239, 63, 0.6);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(40, 239, 63, 0.6);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 50px rgba(40, 239, 63, 0.6);
    }
}

.scard-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(71, 235, 62, 0.3);
    /* Small border weight */
    background: rgba(64, 255, 0, 0.2) border-box;
    padding: 2px;
    /* Reduced padding for smaller border effect */
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 255, 4, 0.2);
    display: block;
    position: relative;
    z-index: 1;
}

.card:hover .scard-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(66, 248, 56, 0.3);
    border-width: 3px;
    /* Slightly thicker on hover */
}



/* ========== CROWN BUTTON STYLES ========== */
.crown-btn {
    position: fixed;
    bottom: 90px; /* Position above scroll-to-top button */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    color: #7a5800;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: crownGlow 2s infinite alternate;
}

.crown-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.crown-btn:active {
    transform: scale(0.95);
}

@keyframes crownGlow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

/* Dark theme support */
body[data-theme="dark"] .crown-btn {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

/* ========== MODAL STYLES ========== */
.contributor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(250, 250, 255, 0.98) 100%);
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease-out;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Dark theme modal */
body[data-theme="dark"] .modal-content {
    background: linear-gradient(135deg, 
        rgba(30, 30, 40, 0.98) 0%, 
        rgba(25, 25, 35, 0.98) 100%);
    color: #fff;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    padding-top: 5px;
    text-align: center;
    position: relative;
}

.modal-header h3 {
    color: white;
    margin: 15px 0 5px 0;
    font-size: 1.8rem;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.crown-icon-large {
    font-size: 3rem;
    animation: crownBounce 1.5s infinite alternate;
}

@keyframes crownBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 30px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

body[data-theme="dark"] .spinner {
    border: 4px solid #444;
    border-top: 4px solid #667eea;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    margin: 0;
}

body[data-theme="dark"] .loading-spinner p {
    color: #aaa;
}

/* Spotlight Card in Modal */
#spotlightCard .card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    text-align: center;
    animation: cardFloat 3s infinite ease-in-out;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: none;
    margin: 0;

    p{
        margin: 0px;
    }
}

#spotlightCard .card-img {
    width: 100px;
    height: 100px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#spotlightCard h2 {
    color: rgb(255, 163, 25);
    margin: 15px 0;
    font-size: 1.6rem;
}

#spotlightCard .role {
    background: rgba(255, 255, 255, 0.2);
    color: rgb(93, 204, 255);
    padding: 6px 18px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px 0;
    font-weight: 600;
}

#spotlightCard .card-btn {
    background: white;
    color: #00082e;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#spotlightCard .card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Info Items */
.spotlight-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

body[data-theme="dark"] .spotlight-info {
    border-top-color: #444;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.info-item i {
    font-size: 1.2rem;
    color: #667eea;
    width: 30px;
    height: 30px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 3px;
}

body[data-theme="dark"] .info-item strong {
    color: #fff;
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

body[data-theme="dark"] .info-item span {
    color: #aaa;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 30px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: center;
}

body[data-theme="dark"] .modal-footer {
    background: #222;
    border-top-color: #444;
}

.refresh-btn, .view-all-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.refresh-btn {
    background: #667eea;
    color: white;
}

.refresh-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.view-all-btn {
    background: #f0f0f0;
    color: #333;
}

body[data-theme="dark"] .view-all-btn {
    background: #444;
    color: white;
}

.view-all-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

body[data-theme="dark"] .view-all-btn:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Highlight selected card in grid */
.card.todays-spotlight {
    position: relative;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: pulseBorder 2s infinite;
}

.card.todays-spotlight::before {
    content: "🌟 Today's Star";
    position: absolute;
    top: -10px;
    right: -5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulseBorder {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .crown-btn {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .spotlight-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .refresh-btn, .view-all-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin-bottom: 5px;
    }
}

/* Toast Message Styles */
.toast-message {
    position: fixed !important;
    bottom: 150px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
    color: rgb(255, 255, 255) !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    z-index: 10000 !important;
    animation: toastSlideIn 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    border: none !important;
    max-width: 300px !important;
    text-align: center !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Dark theme toast */
body[data-theme="dark"] .toast-message {
    background: linear-gradient(135deg, #388E3C 0%, #1B5E20 100%) !important;
    color: white !important;
}

/* Ensure no white text on light background */
body[data-theme="light"] .toast-message {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Toast animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }
}

/* Toast for error messages */
.toast-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
}

/* Toast for info messages */
.toast-info {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
}

/* Toast for warning messages */
.toast-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4fd1ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.nav-links li{
    margin-right: 1rem;
}
.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; 
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: #4fd1ff;
}

.nav-links a,
.drop-btn {
  color: #ffffff;
  font-weight: 500;
}

.nav-links a:hover,
.drop-btn:hover {
  color: #4fd1ff;
}

.drop-btn {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a:hover,
.drop-btn:hover {
  color: #4fd1ff;
}

/* Dropdown */
.dropdown {
  position: relative;
}
/* Enable dropdown on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Smooth appearance */
.dropdown-menu {
  animation: dropdownFade 0.2s ease;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu li {
  padding: 8px 10px;
}

.dropdown-menu a {
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* Desktop hover */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* JS-controlled open */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #0f2c4f;
  padding: 10px;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
/* Show dropdown when active */
.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 8px 10px;
}

.dropdown-menu a {
  font-size: 0.9rem;
}

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.2);
}

.nav-hints {
  display: flex;
  align-items: center;
  gap: 8px;
}

.keyboard-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: help;
  transition: all 0.2s ease;
}

.keyboard-hint:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: white;
}


[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-navbar: rgba(15, 23, 42, 0.95);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-primary: #334155;
  --primary-color: #60a5fa;
  --secondary-color: #a78bfa;
  --accent-color: #34d399;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Apply theme variables to body */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================
   THEME TOGGLE BUTTON STYLES
   ============================ */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-primary);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background-color: var(--primary-color);
  color: white;
  transform: rotate(15deg);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.theme-toggle:active {
  transform: scale(0.95) rotate(15deg);
}

/* Theme toggle animations */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: all 0.3s ease;
  position: absolute;
}

[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* ============================
   UPDATE EXISTING COMPONENTS WITH THEME VARIABLES
   ============================ */

/* Desktop nav links */
.nav-links a {
  color: var(--text-primary);
}

/* Mobile drawer FORCE white text */
@media (max-width: 900px) {
  .nav-links a,
  .drop-btn {
    color: #ffffff !important;
  }
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
}

.dropdown-menu a {
  color: var(--text-primary);
}

.dropdown-menu a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Stats Header */
.stats-header h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-header .subtitle {
  color: var(--text-secondary);
}

/* Chart Cards */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
}

.chart-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.chart-card h3 {
  color: var(--text-primary);
}

/* Summary Cards */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.summary-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.summary-card .icon {
  color: var(--primary-color);
}

.summary-card .value {
  color: var(--text-primary);
}

.summary-card .label {
  color: var(--text-secondary);
}

/* Controls */
.control-group label {
  color: var(--text-primary);
}

.control-group select,
.control-group input {
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-primary);
}

.control-group select:focus,
.control-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Data Export Section */
.data-export-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
}

.data-export-section h2 {
  color: var(--text-primary);
}

.export-description {
  color: var(--text-secondary);
}

/* Export Button */
.export-btn {
  background: var(--gradient-primary);
  color: white;
}

/* Animated Background Circles */
.circle {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(59, 130, 246, 0.1) 100%);
}

/* ============================
   THEME TRANSITIONS
   ============================ */
* {
  transition: background-color 0.3s ease, 
              border-color 0.3s ease, 
              color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Smooth theme switching for specific elements */
body,
.navbar,
.chart-card,
.summary-card,
.control-group select,
.control-group input {
  transition: background-color 0.3s ease, 
              border-color 0.3s ease, 
              color 0.3s ease,
              box-shadow 0.3s ease;
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
  .theme-toggle {
    display: none;
  }
  
  [data-theme="dark"] {
    --bg-primary: #ffffff;
    --text-primary: #000000;
  }
}

/* =========================================
   KEYBOARD SHORTCUTS OVERLAY
   ========================================= */

.keyboard-shortcuts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.keyboard-shortcuts-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcuts-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.shortcuts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-secondary);
}

.shortcuts-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-shortcuts {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-shortcuts:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.shortcuts-content {
    padding: 24px;
}

.shortcuts-section {
    margin-bottom: 32px;
}

.shortcuts-section:last-child {
    margin-bottom: 0;
}

.shortcuts-section h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.shortcut-item:hover {
    background: var(--hover-bg);
}

.shortcut-item kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    min-width: 24px;
    text-align: center;
}

.shortcut-item span {
    color: var(--text-secondary);
    flex: 1;
}

.shortcuts-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-secondary);
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.shortcuts-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shortcuts-footer kbd {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== MOBILE / TABLET NAVIGATION — FIXED DRAWER (Issue #2614) ===== */
@media (max-width: 900px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 2100;
  }

  /* Drawer container */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;

    height: 100vh;
    width: 300px;

    padding: 80px 22px 24px;
    display: none;
    flex-direction: column;
    gap: 14px;

    background: linear-gradient(180deg, #0b1d3a, #081628);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.65);

    z-index: 2050;
  }

  /* Open state */
  .nav-links.active {
    display: flex;
  }

  /* Menu items */
  .nav-links li {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
  }

  /* FORCE text visibility */
  .nav-links a,
  .drop-btn {
    width: 100%;
    padding: 14px 16px;

    font-size: 1rem;
    font-weight: 500;

    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    display: flex;
    align-items: center;
    gap: 12px;

    transition: all 0.25s ease;
  }

  .nav-links a:hover,
  .drop-btn:hover {
    background: rgba(79, 209, 255, 0.15);
    border-color: rgba(79, 209, 255, 0.6);
    color: #4fd1ff !important;
  }
}

/* Drawer animation */
@keyframes slideInNav {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* ===== HARD FIX — TABLET MENU TEXT VISIBILITY (Issue #2614) ===== */
@media (max-width: 900px) {
  .nav-links,
  .nav-links * {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
/* =========================================
   FIX: LIGHT MODE NAVBAR VISIBILITY
   Issue #3074
   ========================================= */

body[data-theme="light"] .navbar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .nav-logo {
  color: #2563eb !important;
}

body[data-theme="light"] .nav-links a,
body[data-theme="light"] .drop-btn {
  color: #0f172a !important;
  opacity: 1 !important;
}

body[data-theme="light"] .nav-links a:hover,
body[data-theme="light"] .drop-btn:hover {
  color: #2563eb !important;
}

body[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .dropdown-menu a {
  color: #0f172a;
}

body[data-theme="light"] .dropdown-menu a:hover {
  background: #2563eb;
  color: #ffffff;
}
