@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #6366f1;
    --accent: #f43f5e;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 23, 42, 0.7);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-mode {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #4f46e5;
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-dim: #64748b;
    --border: rgba(0, 0, 0, 0.05);
    --glass: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor implementation */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.6;
    /* Slightly more than 1.5 for extra breathing room */
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
    top: -0.2rem;
    font-weight: 900;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Background Mesh & Grid */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
    animation: move 20s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--secondary);
    animation: move 25s infinite alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 30%;
    background: var(--accent);
    animation: move 30s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes scan-line {
    0% {
        top: 0%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-image-fixed img {
    animation: float 6s ease-in-out infinite;
}

.section-num {
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.section-num::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    animation: scan-line 3s linear infinite;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* Typography Elite */
h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.huge-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.04em;
    text-transform: none; /* Allow mixed case for "Hello, this is" */
}

.multicolor-text {
    background: linear-gradient(
        to right, 
        #3b82f6, 
        #6366f1, 
        #f43f5e, 
        #eab308,
        #3b82f6
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

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

/* Navbar Elite */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 5%;
    /* Increased top padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: var(--transition);
    position: relative;
}

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


/* Section Headings */
.section-padding {
    padding: 8rem 10%;
    /* Increased horizontal padding for safer margins */
}

.section-header {
    margin-bottom: 5rem;
}

.section-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--text-main);
}

/* Timeline (Education) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.timeline-org {
    color: var(--primary);
    font-weight: 700;
    margin: 0.5rem 0;
}

.timeline-score {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

/* Skills Layout */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    perspective: 1000px; /* Enable 3D depth for the entire section */
}

.skills-block h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.btn-elite:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--primary-glow);
    background: var(--primary);
    border-color: var(--primary);
}

.skills-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 1.5rem; /* Increased vertical gap for floating bars */
    margin-top: 2rem;
}

.skills-tags span {
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    justify-content: center; /* Center content now that battery is floating */
    align-items: center;
    gap: 1.5rem;
    min-width: 160px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Skill Icons Inside Shell Styles */
.battery-shell i {
    font-size: 0.7rem; /* Ultra-slim icon */
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.skills-tags span i {
    display: none; /* Hide from main tag */
}

.skills-tags span small {
    display: none; /* Hide from main tag flow */
}/* Progress Bar Background (Shell) - Ultra-Thin Pill */
.battery-shell {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateZ(-10px);
    width: 140px; 
    height: 14px; /* Hairline height */
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 0 8px;
    background: rgba(10, 14, 25, 0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    overflow: visible;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Battery "cap" removed for Pill shape */
.battery-shell::after {
    display: none;
}

.battery-shell small {
    display: block !important;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; /* Tiny but sharp */
    color: var(--primary);
    font-weight: 500; /* Thinner weight */
    opacity: 0;
    transition: all 0.3s ease 0.2s;
    min-width: 30px;
    text-align: right;
}

.battery-level {
    height: 2px; /* Hairline level */
    flex-grow: 1;
    width: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 0 5px var(--primary-glow);
}

/* Moving Head Logo at end of line */
.battery-level::after {
    content: var(--head-icon, '\f0e7'); /* Use unique icon per skill */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -10px; /* Increased gap from line */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.55rem;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

@keyframes charging {
    0% { opacity: 0.6; }
    50% { opacity: 1; filter: brightness(1.2); }
    100% { opacity: 0.6; }
}

/* Progress Bar Active Trigger - Shows on Click (Active) and Hover */
.skills-tags span:hover .battery-shell,
.skills-tags span:active .battery-shell {
    opacity: 1;
    transform: translateX(-50%) translateZ(20px) translateY(-10px);
}

.skills-tags span:hover .battery-level,
.skills-tags span:active .battery-level {
    width: var(--skill-pct, 0%);
    animation: charging 1s infinite;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.skills-tags span:hover small,
.skills-tags span:active small {
    opacity: 1;
}

.skills-tags span:hover {
    border-color: var(--primary);
    transform: translateZ(30px) rotateX(10deg) rotateY(-10deg);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 
        20px 20px 60px rgba(0, 0, 0, 0.5),
        -5px -5px 20px rgba(255, 255, 255, 0.05);
}

.skills-tags span:hover i,
.skills-tags span:hover small {
    opacity: 1;
    transform: translateZ(20px) scale(1);
}

.skills-tags span:hover::after {
    width: var(--skill-pct, 0%);
}

/* Credentials & Certs */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.certs-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cert-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.cert-badge:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

/* Projects Table-like Lists */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    padding: 0;
    /* Changed to 0 to manage image layout */
    border-radius: 24px;
    transition: var(--transition);
    overflow: hidden;
    /* Ensure image doesn't bleed out */
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card-content {
    padding: 3rem;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-type {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
}

/* Experience Blocks */
.exp-block {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0;
    border-radius: 30px;
    overflow: hidden;
}

.exp-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
}

.exp-content {
    padding: 4rem;
}

.exp-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid var(--border);
}

.exp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition);
}

.exp-grid-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Trainer Block */
.trainer-block .elite-card {
    padding: 4rem;
}

.exp-block:hover .exp-image img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.exp-list {
    list-style: none;
}

.exp-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.exp-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.info-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin: 4rem 0;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-main);
    transition: var(--transition);
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: white;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
.footer {
    padding: 6rem var(--section-pad-x);
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.2rem 0;
}

@media (max-width: 992px) {

    .credentials-grid,
    .exp-layout {
        grid-template-columns: 1fr;
    }

    .exp-grid-cols {
        grid-template-columns: 1fr;
    }

    .exp-image {
        border-left: none;
        border-top: 1px solid var(--border);
        height: 300px;
    }
}

.nav-links a:hover {
    opacity: 1;
}

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

/* Hero Section Extreme */
.hero {
    min-height: 100vh;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 850px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    text-align: justify;
}

.hero-image-fixed {
    position: absolute;
    right: 5%;
    top: 25%;
    transform: translateY(-50%);
    width: clamp(220px, 22vw, 350px);
    aspect-ratio: 1/1;
    z-index: 1;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 
        0 0 30px var(--primary-glow),
        0 0 60px rgba(99, 102, 241, 0.2);
    overflow: hidden;
}

.hero-image-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Shift up to show head properly */
    transition: var(--transition);
}

.hero-image-fixed:hover img {
    transform: scale(1.05);
}

.hero-btns {
    display: flex;
    gap: 2rem;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
}

/* Buttons Elite */
.btn-elite {
    padding: 1.2rem 3rem;
    /* Slightly more compact */
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    /* Added slight radius for a technical feel */
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: inline-block;
}

.btn-elite span {
    position: relative;
    z-index: 1;
}

.btn-elite::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition);
}

.btn-elite:hover::before {
    top: 0;
}

.btn-elite:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--primary-glow);
}

/* Section Styling */
/* About Specific & Alignment Polish */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
    align-items: flex-start;
}

.highlight-para {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--primary);
    border-radius: 4px;
}

.meta-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
}

/* Cards Elite */
.elite-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.elite-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.elite-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: var(--primary-glow);
    filter: blur(40px);
    opacity: 0;
    transition: var(--transition);
}

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

/* Responsive Overrides */
@media (max-width: 1200px) {
    .huge-text {
        font-size: 10vw;
    }

    .hero-image-fixed {
        position: relative;
        width: 100%;
        height: 50vh;
        top: 0;
        transform: none;
        margin-top: 4rem;
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 15rem;
    }

    .huge-text {
        font-size: 15vw;
    }

    .elite-card {
        padding: 2rem;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 5, 15, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 100%;
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#modal-component-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom scrollbar for component list */
#modal-component-list::-webkit-scrollbar {
    width: 4px;
}

#modal-component-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#modal-component-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

#modal-component-list li {
    cursor: pointer;
    transition: var(--transition);
    padding: 1.25rem !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    height: 100%;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

#modal-component-list li::before {
    content: "\f061" !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin-right: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

#modal-component-list li:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-3px);
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#modal-component-list li.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
    border-color: transparent;
    transform: scale(1.02);
}

#modal-component-list li.active::before {
    color: white;
    transform: rotate(90deg);
}

#desc-container {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    position: sticky;
    top: 0;
    box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.03);
}

/* Technical Scanning Line Effect */
#desc-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: scanVertical 4s linear infinite;
}

@keyframes scanVertical {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

#desc-container.active {
    opacity: 1;
    transform: translateX(0);
}

#desc-container h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#desc-container h4::before {
    content: 'TECHNICAL_SPEC //';
    color: var(--primary);
    font-weight: 800;
}

#desc-container p {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

/* Staggered animation for list items */
#modal-component-list li:nth-child(1) {
    animation-delay: 0.05s;
}

#modal-component-list li:nth-child(2) {
    animation-delay: 0.1s;
}

#modal-component-list li:nth-child(3) {
    animation-delay: 0.15s;
}

#modal-component-list li:nth-child(4) {
    animation-delay: 0.2s;
}

#modal-component-list li:nth-child(5) {
    animation-delay: 0.25s;
}

#modal-component-list li:nth-child(6) {
    animation-delay: 0.3s;
}

#modal-component-list li:nth-child(7) {
    animation-delay: 0.35s;
}

#modal-component-list li:nth-child(8) {
    animation-delay: 0.4s;
}

@media (max-width: 1200px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    #desc-container {
        position: static;
        border-left: none;
        border-top: 4px solid var(--primary);
        border-radius: 0 0 20px 20px;
        transform: translateY(20px);
    }

    #desc-container.active {
        transform: translateY(0);
    }

    #modal-component-list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
    }
}