/* 
   Sheetal Bajaj Portfolio Stylesheet
   Design Paradigm: Futuristic Cyber-Glassmorphism
   Author: Sheetal Bajaj
*/

/* ==========================================
   1. Design System & Variables
   ========================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Theme Accents (Default: Cyan) */
    --accent: #00f2fe;
    --accent-color: var(--accent);
    --accent-rgb: 0, 242, 254;
    --accent-glow: rgba(0, 242, 254, 0.3);
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

    /* Dark Mode Theme Bases (Default) */
    --bg-primary: #070913;
    --bg-secondary: rgba(13, 18, 36, 0.75);
    --bg-glass: rgba(13, 18, 36, 0.45);
    --bg-glass-heavy: rgba(8, 12, 28, 0.85);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --card-glow: rgba(0, 242, 254, 0.02);

    /* Transition Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Hierarchy */
    --z-background: -10;
    --z-normal: 1;
    --z-sticky: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-cursor: 500;
}

/* Theme Accents Switchers */
[data-theme="purple"] {
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
    --accent-glow: rgba(168, 85, 247, 0.35);
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --border-hover: rgba(168, 85, 247, 0.3);
    --card-glow: rgba(168, 85, 247, 0.02);
}

[data-theme="emerald"] {
    --accent: #10b981;
    --accent-rgb: 16, 185, 129;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-hover: rgba(16, 185, 129, 0.3);
    --card-glow: rgba(16, 185, 129, 0.02);
}

[data-theme="sunset"] {
    --accent: #f97316;
    --accent-rgb: 249, 115, 22;
    --accent-glow: rgba(249, 115, 22, 0.35);
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --border-hover: rgba(249, 115, 22, 0.3);
    --card-glow: rgba(249, 115, 22, 0.02);
}

/* Light Mode Core Overrides */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(241, 245, 249, 0.65);
    --bg-glass-heavy: rgba(255, 255, 255, 0.92);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(var(--accent-rgb), 0.5);
    --card-glow: rgba(var(--accent-rgb), 0.01);
}

/* ==========================================
   2. Reset & Global Styles
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    transition: color var(--transition-normal);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.2);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================
   3. Aesthetic Components (Blobs, Grids, Cursor)
   ========================================== */
.glow-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: var(--z-background);
    opacity: 0.18;
    pointer-events: none;
    transition: all var(--transition-slow);
}

body.light-mode .glow-blob {
    opacity: 0.08;
    filter: blur(160px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--accent);
    top: -100px;
    left: -100px;
    animation: blob-drift 20s infinite alternate;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background-color: #6366f1;
    bottom: -50px;
    right: -50px;
    animation: blob-drift 25s infinite alternate-reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background-color: #d946ef;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob-pulse 15s infinite alternate;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: var(--z-background);
    pointer-events: none;
}

body.light-mode .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
}

@keyframes blob-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 80px) scale(1.15);
    }
}

@keyframes blob-pulse {
    0% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 0.22;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Custom Interactive Cursor */
.custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: width var(--transition-fast), height var(--transition-fast), border-color var(--transition-fast);
    display: none;
    /* Shown dynamically if supported */
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
    display: none;
}

/* Glass Card Styling Base */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px var(--shadow-color);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px -15px rgba(var(--accent-rgb), 0.15), inset 0 0 1px 1px var(--card-glow);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 40px var(--accent-glow);
}

/* General Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   4. Header & Navigation
   ========================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: var(--z-sticky);
    background: rgba(var(--bg-primary), 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-normal), height var(--transition-normal);
}

#main-header.scrolled {
    height: 70px;
    background: rgba(var(--bg-primary), 0.85);
    box-shadow: 0 5px 25px -10px var(--shadow-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
    transition: color var(--transition-fast);
}

#nav-menu ul {
    display: flex;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item i {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.08);
}

.nav-item.active {
    color: var(--accent);
    box-shadow: inset 0 0 1px rgba(var(--accent-rgb), 0.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

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

/* ==========================================
   5. Floating Theme Panels & Controls
   ========================================== */
.theme-panel {
    position: fixed;
    top: 90px;
    right: 24px;
    width: 260px;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 40px -15px var(--shadow-color);
    z-index: var(--z-sticky);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.theme-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.theme-panel-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.theme-panel-header .close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.theme-panel-header .close-btn i {
    width: 16px;
    height: 16px;
}

.theme-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.theme-opt-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-align: left;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.theme-opt-btn:hover,
.theme-opt-btn.active {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.04);
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
}

.theme-mode-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #334155;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: simple-pulse 2s infinite;
}

@keyframes simple-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    min-height: 2.7rem;
}

.typed-role {
    color: var(--accent);
}

.cursor-pipe {
    animation: blink-caret 0.8s step-end infinite;
    color: var(--accent);
    font-weight: 200;
}

@keyframes blink-caret {

    from,
    to {
        color: transparent
    }

    50% {
        color: var(--accent);
    }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-quick-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.hero-actions-container {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

/* Button UI system */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #070913;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(var(--accent-rgb), 0.5);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Social Icons Links list */
.social-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    color: var(--text-secondary);
}

.social-icon-link i {
    width: 18px;
    height: 18px;
}

.social-icon-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(var(--accent-rgb), 0.05);
}

/* Hero Avatar Layout & Rings */
.hero-avatar-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.avatar-glow-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25) 0%, transparent 70%);
    filter: blur(10px);
}

.avatar-outer-orbit {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
    border-radius: 50%;
    animation: rotate-orbit 30s linear infinite;
}

.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    margin-left: -18px;
    background: var(--bg-glass-heavy);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transform: rotate(calc(var(--angle))) translate(190px) rotate(calc(var(--angle) * -1));
}

.orbit-icon i {
    width: 16px;
    height: 16px;
}

.avatar-frame {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(var(--accent-rgb), 0.4) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.avatar-glass {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar-glass:hover .avatar-image {
    transform: scale(1.08);
}

.avatar-fallback-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    color: var(--accent);
}

.fallback-glow {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 10px;
}

.avatar-vector {
    width: 60px;
    height: 60px;
    opacity: 0.6;
}

.tech-overlay-text {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(var(--accent-rgb), 0.5);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.text-overlay-left {
    bottom: 40px;
    left: 20px;
}

.text-overlay-right {
    top: 40px;
    right: 20px;
}

@keyframes rotate-orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll indicator wheel */
.scroll-indicator-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.mouse-wheel-scroller {
    width: 28px;
    height: 46px;
    border-radius: 15px;
    border: 2px solid var(--text-muted);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel-dot {
    width: 6px;
    height: 10px;
    border-radius: 3px;
    background-color: var(--accent);
    animation: scroll-wheel-dot 1.6s ease-out infinite;
}

@keyframes scroll-wheel-dot {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(12px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

/* ==========================================
   7. Section Headers General Style
   ========================================== */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-tagline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* ==========================================
   8. About Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.summary-paragraph {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.summary-paragraph strong {
    color: var(--text-primary);
}

.personal-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    width: 20px;
    height: 20px;
}

.highlight-details {
    display: flex;
    flex-direction: column;
}

.highlight-details .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.highlight-details .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-side-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    padding: 28px;
}

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

.card-icon-header i {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.card-icon-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.academic-timeline-micro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.academic-node {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 14px;
    border-left: 2px solid var(--accent);
    display: flex;
    justify-content: space-between;
}

.academic-node span {
    color: var(--accent);
    font-family: var(--font-mono);
}

.hobbies-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hobby-item i {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hobby-description {
    font-size: 0.85rem !important;
    color: var(--text-muted);
}

/* ==========================================
   9. Skills Section
   ========================================== */
.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.skills-tab-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.skills-tab-btn:hover,
.skills-tab-btn.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.05);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px -10px rgba(var(--accent-rgb), 0.2), inset 0 0 1px 1px var(--card-glow);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-icon-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.skill-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.skill-projects-ref {
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: auto;
}

.skill-projects-ref strong {
    color: var(--accent);
    font-weight: 600;
}

/* Interactive Project & Skill Connected Highlighting */
.project-card.highlight-pulse,
.skill-card.highlight-pulse {
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.45), inset 0 0 1px 1px var(--accent) !important;
    transform: translateY(-8px) scale(1.02) !important;
    background: rgba(var(--accent-rgb), 0.08) !important;
}

/* Hero Canvas Particle Network Styling */
.hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    /* Floats above the canvas particles background */
}

/* ==========================================
   10. Projects Grid & Interaction
   ========================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px) rotate(-1.5deg);
}

.project-card:nth-child(odd):hover {
    transform: translateY(-8px) rotate(-1.5deg);
}

.project-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(1.5deg);
}

.project-card {
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.project-card:hover {
    transform:
        perspective(1000px) rotateX(4deg) rotateY(-4deg) translateY(-10px);
}

.project-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card:hover:after {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.project-links .proj-link-btn {
    color: var(--text-muted);
}

.project-links .proj-link-btn:hover {
    color: var(--accent);
}

.project-links .proj-link-btn i {
    width: 18px;
    height: 18px;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-short-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.project-tags .tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 4px;
}

body.light-mode .project-tags .tag {
    background: rgba(0, 0, 0, 0.02);
}

.view-details-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent);
    transition: transform var(--transition-fast);
}

.view-details-btn i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.project-card:hover .view-details-btn i {
    transform: translateX(4px);
}

/* Drawer / Sidebar Details Panel */
.project-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    visibility: hidden;
    pointer-events: none;
}

.project-drawer.active {
    visibility: visible;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-drawer.active .drawer-backdrop {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid var(--border-color);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    padding: 40px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.project-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.drawer-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.close-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.close-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.close-btn i {
    width: 16px;
    height: 16px;
}

.drawer-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 30px;
}

.drawer-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.drawer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drawer-tags .tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.drawer-section h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.drawer-section p {
    font-size: 0.95rem;
    line-height: 1.65;
}

.drawer-tech-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-left: 0;
}

.drawer-tech-specs li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-tech-specs li:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* Simulation panel within Drawer */
.interactive-simulator {
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    font-family: var(--font-mono);
    min-height: 160px;
    font-size: 0.85rem;
}

body.light-mode .interactive-simulator {
    background: rgba(255, 255, 255, 0.4);
}

.drawer-footer {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.drawer-footer .btn {
    flex: 1;
    justify-content: center;
}

/* ==========================================
   11. Education Timeline Section
   ========================================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(var(--accent-rgb), 0.1) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    border-radius: 50%;
    background: var(--bg-glass-heavy);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 15px var(--accent-glow);
}

.timeline-dot i {
    width: 18px;
    height: 18px;
}

.timeline-card {
    padding: 24px;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.timeline-duration {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.institute-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.degree-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.grade-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    padding: 4px 10px;
    border-radius: 4px;
}

/* ==========================================
   12. Certifications Section
   ========================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.cert-card {
    display: flex;
    padding: 24px;
    gap: 20px;
    align-items: center;
}

.cert-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon-wrapper i {
    width: 22px;
    height: 22px;
}

.cert-details {
    flex-grow: 1;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.cert-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-btn-verify {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    transition: color var(--transition-fast);
}

.cert-btn-verify i {
    width: 14px;
    height: 14px;
}

.cert-card:hover .cert-btn-verify {
    color: var(--accent);
}

/* ==========================================
   13. Achievements Section
   ========================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.achievement-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    align-items: flex-start;
}

.trophy-glow {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.trophy-glow i {
    width: 24px;
    height: 24px;
}

.achievement-details {
    flex-grow: 1;
}

.rank-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.achievement-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.achievement-details p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   14. Contact Section & Hidden Dashboard
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-col h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info-col p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 32px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-details-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box i {
    width: 20px;
    height: 20px;
}

.item-text {
    display: flex;
    flex-direction: column;
}

.item-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.item-text a,
.item-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-text a:hover {
    color: var(--accent);
}

.contact-socials-large h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.social-large-buttons {
    display: flex;
    gap: 12px;
}

.social-large-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-large-btn i {
    width: 16px;
    height: 16px;
}

.social-large-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-2px);
}

/* Contact Form Elements */
.contact-form-card {
    padding: 40px;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

body.light-mode .input-wrapper input,
body.light-mode .input-wrapper textarea {
    background: rgba(255, 255, 255, 0.4);
}

.input-wrapper textarea {
    resize: none;
}

.text-area-wrapper i {
    top: 16px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.input-wrapper input:focus+i,
.input-wrapper textarea:focus+i {
    color: var(--accent);
}

.error-msg {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
    position: absolute;
    bottom: -18px;
    left: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.form-group.has-error .error-msg {
    opacity: 1;
    visibility: visible;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Hidden Inbox dashboard styles */
.inbox-section {
    padding-top: 40px;
}

.inbox-section.hidden {
    display: none;
}

.inbox-section .container {
    padding: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inbox-glow {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.inbox-table-wrapper {
    overflow-x: auto;
}

.inbox-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.inbox-table th,
.inbox-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.inbox-table th {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

body.light-mode .inbox-table th {
    background: rgba(0, 0, 0, 0.02);
}

.inbox-table td {
    color: var(--text-secondary);
}

.inbox-action-delete {
    background: transparent;
    border: none;
    color: #ef4444;
}

.inbox-action-delete:hover {
    color: #f87171;
}

.empty-inbox-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
    color: var(--text-muted);
}

.empty-inbox-msg i {
    width: 32px;
    height: 32px;
}

/* Security Gate and Advanced Analytics CSS */
.auth-modal-card {
    max-width: 400px !important;
    padding: 30px;
    border-radius: 16px;
    animation: authModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-icon-glow {
    color: var(--accent);
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    margin: 0 auto;
    display: block;
}

.shake {
    animation: shakeEffect 0.4s ease-in-out;
}

@keyframes shakeEffect {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

/* Tabs styling */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.dashboard-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dashboard-tab-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.dashboard-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-tab-btn:hover i {
    transform: translateY(-1px);
}

.dashboard-tab-btn.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    font-weight: 600;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

/* Tab content visibility */
.dashboard-tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease forwards;
}

.dashboard-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.kpi-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.025);
}

.kpi-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card-wrapper {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-card-wrapper h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.svg-chart-container {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.svg-chart-container svg {
    width: 100%;
    height: 100%;
}

/* Log Tab Filters styling */
.logs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 10px;
}

.search-input-group,
.filter-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    flex-grow: 1;
    max-width: 320px;
}

.search-input-group input,
.filter-select-group select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
}

.filter-select-group select option {
    background: rgba(3, 7, 18, 0.98);
    color: white;
}

.export-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* Security settings styling */
.security-settings-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.security-settings-wrapper h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.security-settings-wrapper .settings-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

body.light-mode .kpi-card {
    background: rgba(0, 0, 0, 0.01);
}

body.light-mode .security-settings-wrapper {
    background: rgba(0, 0, 0, 0.01);
}

/* ==========================================
   15. Interactive CLI Terminal Component
   ========================================== */
.terminal-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 320px;
    background: rgba(3, 7, 18, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: var(--z-drawer);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-mono);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-widget.collapsed {
    height: 40px;
    width: 240px;
    transform: translateY(0);
}

.terminal-widget.hidden {
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
}

.terminal-widget.maximized {
    width: 650px;
    height: 450px;
}

.terminal-header {
    height: 40px;
    background: rgba(17, 24, 39, 0.9);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.terminal-title i {
    width: 14px;
    height: 14px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.terminal-btn-ctrl {
    background: transparent;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.terminal-btn-ctrl:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.terminal-btn-ctrl.close-btn:hover {
    background: #ef4444;
    color: white;
}

.terminal-btn-ctrl i {
    width: 10px;
    height: 10px;
}

.terminal-body {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.terminal-widget.collapsed .terminal-body {
    display: none;
}

.terminal-history {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #38bdf8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.terminal-line {
    word-break: break-all;
    white-space: pre-wrap;
}

.terminal-line.system-line {
    color: #64748b;
}

.terminal-line.output-line {
    color: #f1f5f9;
}

.terminal-line.error-line {
    color: #f87171;
}

.term-highlight {
    color: var(--accent);
    font-weight: 700;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.terminal-prompt {
    color: #a855f7;
    white-space: nowrap;
}

#terminal-cli-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 0.8rem;
}

/* ==========================================
   16. Digital Credentials Modal
   ========================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}

.modal.active {
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s;
}

.modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 700px;
    max-width: 90%;
    max-height: 90vh;
    padding: 32px;
    background: var(--bg-glass-heavy);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
}

.modal-close-btn i {
    width: 20px;
    height: 20px;
}

.modal-close-btn:hover {
    color: var(--accent);
}

.modal-body {
    margin-bottom: 24px;
    margin-top: 10px;
}

/* Certificate Visuals styling */
.certificate-preview-box {
    border: 8px double rgba(var(--accent-rgb), 0.2);
    padding: 30px;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(3, 7, 18, 0.9) 100%);
    border-radius: 8px;
    text-align: center;
    position: relative;
}

body.light-mode .certificate-preview-box {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.cert-preview-badge {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.cert-preview-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cert-preview-recipient {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cert-preview-recipient span {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-top: 6px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.cert-preview-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cert-preview-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.cert-preview-sig {
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    width: 150px;
}

.cert-preview-sig span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cert-preview-sig .sig-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.cert-preview-qr {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    padding: 2px;
}

.cert-preview-qr svg {
    width: 100%;
    height: 100%;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================
   17. Notifications Toast
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-toast);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-120%);
    opacity: 0;
    animation: slide-toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.toast-msg {
    font-size: 0.88rem;
    font-weight: 600;
}

@keyframes slide-toast-in {
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   18. Footer Styling
   ========================================== */
#main-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(3, 7, 18, 0.4);
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
}

.back-to-top i {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.back-to-top:hover i {
    transform: translateY(-4px);
}

/* ==========================================
   19. Responsive Layout Adjustments
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-avatar-side {
        order: -1;
        height: 350px;
    }
}

.skill-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent,
            rgba(0, 242, 254, 0.08),
            transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(0, 242, 254, 0.25),
        0 0 40px rgba(0, 242, 254, 0.15);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(8deg);
    color: var(--accent-color);
}

.skill-icon {
    transition: all 0.4s ease;
}

.cert-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.cert-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(0, 242, 254, 0.25),
        0 0 40px rgba(0, 242, 254, 0.15);
}

/* Animated shine effect */
.cert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-25deg);
}

.cert-card:hover::before {
    animation: certShine 0.9s ease;
}

@keyframes certShine {
    from {
        left: -120%;
    }

    to {
        left: 130%;
    }
}

.cert-trophy {
    transition: all 0.4s ease;
}

.cert-card:hover .cert-trophy {
    color: gold;
    transform: rotate(15deg) scale(1.25);
    filter: drop-shadow(0 0 10px gold);
}

.cert-date {
    transition: all 0.3s ease;
}

.cert-card:hover .cert-date {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.cert-btn-verify {
    transition: all 0.3s ease;
}

.cert-btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color);
}

.cert-btn-verify:hover i {
    transform: scale(1.2);
}

.cert-btn-verify i {
    transition: all 0.3s ease;
}

.cert-card {
    animation: floatCard 4s ease-in-out infinite;
}

.cert-card:nth-child(2n) {
    animation-delay: 1s;
}

.cert-card:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes floatCard {

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

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

.cert-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
            transparent,
            var(--accent-color),
            transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s;
}

.cert-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    #nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-glass-heavy);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: 90;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    }

    #nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #nav-menu ul {
        flex-direction: column;
        padding: 40px;
        gap: 16px;
        align-items: center;
    }

    .nav-item {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

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

    .skills-grid,
    .achievements-grid,
    .form-row-two {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .terminal-widget {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }

    .terminal-widget.maximized {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        top: 80px;
        left: 20px;
    }
}

/* Scroll Animation classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


.timeline-dot {
    position: relative;
}

.timeline-dot::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: pulseTimeline 2s infinite;
}

@keyframes pulseTimeline {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

.timeline-card:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 20px rgba(0, 242, 254, 0.25),
        0 0 40px rgba(0, 242, 254, 0.15);
}

.glass-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02));

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-title {
    background:
        linear-gradient(90deg,
            #ffffff,
            var(--accent),
            #ffffff);

    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 5s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.project-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--accent-rgb), 0.18),
            transparent 40%);

    opacity: 0;
    transition: .3s;
}

.project-card:hover::before {
    opacity: 1;
}

.skill-card::after {
    content: "";

    position: absolute;
    inset: -1px;

    border-radius: inherit;

    padding: 1px;

    background:
        linear-gradient(135deg,
            transparent,
            var(--accent),
            transparent);

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    opacity: 0;
    transition: .4s;
}

.skill-card:hover::after {
    opacity: 1;
}

.nav-indicator {
    position: absolute;

    height: 40px;

    border-radius: 8px;

    background: rgba(var(--accent-rgb), 0.08);

    transition: all .35s cubic-bezier(.16, 1, .3, 1);
}

.avatar-frame::before {
    content: "";

    position: absolute;

    inset: -6px;

    border-radius: 50%;

    background:
        conic-gradient(from 0deg,
            transparent,
            var(--accent),
            transparent);

    animation: rotateRing 8s linear infinite;

    z-index: -1;
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

.timeline-line::after {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: var(--scroll-progress);

    background: var(--accent);

    transition: height .2s;
}

.scroll-reveal {
    opacity: 0;

    transform:
        translateY(40px) scale(.96);

    transition:
        opacity .8s,
        transform .8s;
}

.scroll-reveal.revealed {
    opacity: 1;

    transform:
        translateY(0) scale(1);
}

.grid-overlay {
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.025;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    z-index: -1;
}

.project-card,
.skill-card,
.cert-card,
.timeline-card {
    will-change: transform;
}

.glow-blob {
    will-change: transform;
}

#main-footer {
    position: relative;
}

#main-footer::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 300px;
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(90deg,
            transparent,
            var(--accent),
            transparent);
}

/* ===== Certificate Button Click Fix ===== */

.cert-card {
    position: relative !important;
    
}



.cert-details,
.cert-icon-wrapper {
    position: relative;
    z-index: 1;
}

.cert-btn-verify {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
}

.cert-btn-verify * {
    pointer-events: none;
}