:root {
    --bg-color: #0b0f19;
    --surface-color: rgba(17, 24, 39, 0.7);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-primary: #0ea5e9;
    --accent-secondary: #8b5cf6;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(14, 165, 233, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.85);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #0284c7;
    --accent-secondary: #7c3aed;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-glow: rgba(2, 132, 199, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 60%);
    bottom: -15%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

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

/* Glass Card Utility */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 var(--glass-glow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px 0 rgba(139, 92, 246, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.7);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-btn:hover {
    color: var(--accent-primary);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* General Layout */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    background: -webkit-linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Utilities */
.mt-3 {
    margin-top: 1.5rem;
}

.tag-primary {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.tag-secondary {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.icon-gradient {
    background: -webkit-linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    max-width: 850px;
    text-align: center;
}

.greeting {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

h1.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.role {
    font-size: 1.7rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
}

.objective {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    align-items: center;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

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

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

.btn-icon {
    padding: 0.9rem;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-quick {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-quick i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

/* Metrics */
.metrics {
    max-width: 1200px;
    margin: -3rem auto 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.metric-item {
    text-align: center;
    padding: 2rem;
}

.metric-item h3 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    display: inline-block;
    line-height: 1;
}

.metric-item span.plus {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    line-height: 1;
}

.metric-item p {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 5px;
    bottom: 5px;
    left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 70px;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    left: 12px;
    top: 30px;
    box-shadow: 0 0 15px var(--accent-primary), 0 0 0 5px rgba(14, 165, 233, 0.2);
    z-index: 2;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.job-header h4 {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.timeline-content .duties {
    list-style-type: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content .duties li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content .duties li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    position: relative;
    overflow: hidden;
}

.icon-header {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.skill-category h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: default;
}

.tag:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.tag-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.badge {
    background: var(--surface-color);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--accent-primary);
    border: 1px solid var(--glass-border);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* About Dual Section */
.dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.edu-header {
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1f2937 !important;
    font-weight: 800;
}

.edu-header i {
    font-size: 1.8rem;
}

.edu-item {
    padding: 0.2rem 0;
    width: 100%;
}

.edu-title {
    color: #1f2937 !important;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.edu-desc {
    color: #4b5563 !important;
    font-size: 0.95rem;
    margin-top: 0;
}

.interest-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Interest Cards Layout */
.interest-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.interest-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

[data-theme="light"] .interest-card {
    background: rgba(255, 255, 255, 0.7);
}

.interest-card:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
    transform: translateX(5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.interest-card .icon-wrap {
    color: var(--accent-secondary);
    font-size: 1.5rem;
}

.interest-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Modal Overlay & Light Theme */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.light-theme-modal {
    background: #e5e7eb;
    /* Light gray from screenshot */
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #374151;
    /* Dark gray text */
    max-width: 900px !important;
    border-radius: 20px;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.modal-breadcrumb {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-breadcrumb i {
    color: #10b981;
}

/* Green accent like screenshot */

.close-modal {
    background: #4b5563;
    /* Dark gray circle */
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #1f2937;
    transform: rotate(90deg);
}

/* Modal Body / Dual Column */
.modal-flex {
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 400px;
}

.modal-text {
    flex: 1;
    padding: 4rem 2.5rem 2.5rem 2.5rem;
    /* Space for the absolute header */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-text h3 {
    font-family: var(--font-heading);
    color: #0284c7;
    /* Blue primary color from screenshot */
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.modal-text p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: block;
    /* Ensure it stays block level */
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    /* Force it to fill the flex container height */
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .modal-flex {
        flex-direction: column;
    }

    .modal-image-wrapper {
        height: 250px;
        flex: none;
        position: relative;
    }

    .modal-image-wrapper img {
        position: relative;
    }

    .modal-text {
        padding-top: 3.5rem;
    }
}

/* Contact Form */
.contact-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-form {
    text-align: left;
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.5);
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 0 0.5rem;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.85rem;
    background: var(--bg-color);
    color: var(--accent-secondary);
    font-weight: 500;
}

.w-100 {
    width: 100%;
}

.btn-lg {
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    font-size: 0.95rem;
    margin-top: 2rem;
}

.easter-egg {
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-left: 0.5rem;
}

.easter-egg:hover {
    opacity: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Global Beautification & Elevating aesthetics */

/* Custom Selection Color */
::selection {
    background: var(--accent-secondary);
    /* Purple */
    color: #ffffff;
}

::-moz-selection {
    background: var(--accent-secondary);
    color: #ffffff;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 10px;
}

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

/* Hero Background Breathing Pulse Animation */
@keyframes hero-pulse {
    0% {
        background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    }

    50% {
        background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    }

    100% {
        background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    }
}

.hero {
    animation: hero-pulse 8s infinite alternate ease-in-out;
}

/* Staggered Glow for Skills Badges */
@keyframes glow-pulse {
    0% {
        border-color: rgba(14, 165, 233, 0.2);
        box-shadow: 0 0 5px rgba(14, 165, 233, 0.1);
    }

    50% {
        border-color: rgba(139, 92, 246, 0.5);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    }

    100% {
        border-color: rgba(14, 165, 233, 0.2);
        box-shadow: 0 0 5px rgba(14, 165, 233, 0.1);
    }
}

.tag:hover {
    animation: glow-pulse 2s infinite alternate;
}

/* Timeline Hover Connect Effect */
.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-secondary), 0 0 0 4px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

/* Custom Animated Tooltip */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 24, 39, 0.95);
    color: #f3f4f6;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    pointer-events: none;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(139, 92, 246, 0.5) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    pointer-events: none;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    [data-tooltip]::after {
        left: 0;
        transform: translateY(10px);
    }

    [data-tooltip]:hover::after {
        transform: translateY(0);
    }

    [data-tooltip]::before {
        display: none;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    vertical-align: middle;
    background-color: var(--accent-primary);
    margin-left: 0.2rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    background: transparent;
    border: none;
}

.floating-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.linkedin-btn {
    background: rgba(10, 102, 194, 0.2);
    border: 1px solid #0a66c2;
    color: #0a66c2;
    text-decoration: none;
}

.linkedin-btn:hover {
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 0 15px #0a66c2;
}

.back-to-top {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Zero Friction Elements */
.availability-beacon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

.beacon-text {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

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

.btn-sm {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
    text-wrap: nowrap;
}

/* Responsive */
@media (max-width: 992px) {

    .metrics,
    .dual-container {
        grid-template-columns: 1fr;
    }

    h1.glitch {
        font-size: 4rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .contact-quick {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--surface-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 3rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        align-items: center;
        gap: 3rem;
    }

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

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

    .hamburger {
        display: block;
    }

    h1.glitch {
        font-size: 3rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline {
        padding-left: 10px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
        width: 14px;
        height: 14px;
        top: 32px;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* ===== Logo Hover Introduction Card ===== */
.logo-wrapper {
    position: relative;
}

.logo-hover-card {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    padding: 0 !important;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.35s ease;
    z-index: 1100;
    pointer-events: none;
    overflow: hidden;
}

.logo-wrapper:hover .logo-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Gradient accent bar at the top */
.hover-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 100%;
}

.hover-card-body {
    padding: 1.4rem 1.5rem 1.5rem;
}

.hover-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hover-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.hover-card-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.hover-card-role {
    font-size: 0.78rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hover-card-intro {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.hover-card-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}

.hover-card-highlights span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.15);
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hover-card-highlights span i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.hover-card-cta {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.hover-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

.hover-card-cta i {
    margin-left: 0.3rem;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.hover-card-cta:hover i {
    transform: translateX(3px);
}

/* Hide hover card on mobile (touch devices) */
@media (max-width: 768px) {
    .logo-hover-card {
        display: none;
    }
}