:root {
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --primary-blue: #0ea5e9;
    --primary-blue-dark: #0284c7;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-glow: rgba(14, 165, 233, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
}

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

.blue {
    color: var(--primary-blue);
}

.blue-text {
    color: var(--primary-blue);
    font-weight: 600;
}

.highlight {
    color: var(--text-primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

#main-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}

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

.btn-contact {
    background: var(--primary-blue);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600 !important;
}

.btn-contact:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.05);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    padding: 10rem 5% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(14, 165, 233, 0.02) 0%, transparent 50%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1.2;
}

.profile-glow {
    position: relative;
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.profile-glow::before {
    display: none;
}

#profile-pic {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid #f8fafc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.bio {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: #000;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Sidebar Cards */
.hero-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-5px);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
    padding: 4rem;
    background: linear-gradient(to right, transparent, rgba(14, 165, 233, 0.05), transparent);
    border-radius: 20px;
    max-width: 1400px;
    margin-inline: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

#contact .section-title,
#contact .section-subtitle {
    text-align: center;
}

/* Case Studies - Netflix Track Style */
.carousel-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    padding: 2rem 0;
}

.project-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.project-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.project-card {
    flex: 0 0 450px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-logo {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

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

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-card {
    background: white;
    color: black;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Prototype Slider ===== */
.proto-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.proto-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.proto-tab:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.proto-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.30);
}

.proto-slider-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.proto-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.proto-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.proto-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Phone Frame */
.proto-slide-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    z-index: 10;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    background: #000;
    border-radius: 26px;
}

/* Browser Frame (Desktop Mockup) */
.browser-frame {
    width: 100%;
    max-width: 440px;
    height: 290px;
    background: #151515;
    border-radius: 12px;
    padding-top: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.browser-frame::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 12px;
    width: 6px;
    height: 6px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 10px 0 0 #ffbd2e, 20px 0 0 #27c93f;
    z-index: 10;
}

.browser-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Slide Content */
.proto-slide-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proto-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proto-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.uber-brand {
    background: #000000;
}

.maps-brand {
    background: #4285F4;
}

.bbmp-brand {
    background: #10B981;
}

.cult-brand {
    background: #EF4444;
}

.proto-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.proto-slide-content h3 {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.proto-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.proto-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.proto-metric {
    display: flex;
    flex-direction: column;
}

.pm-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.pm-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    max-width: 100px;
    line-height: 1.3;
}

.proto-actions {
    margin-top: 0.5rem;
    position: relative;
    z-index: 20;
}

.proto-actions .btn-primary {
    position: relative;
    z-index: 20;
}

/* Dots */
.proto-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.proto-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.proto-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Education logo img */
.edu-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    padding: 4px;
}



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

.skill-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skill-card h3 {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-card li::before {
    content: '→';
    color: var(--primary-blue);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
}

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

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    /* center on line */
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-blue);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 2rem;
    border-radius: 12px;
}

.date {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.company {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.experience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Contact */
.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 280px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.copy-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.contact-card:hover {
    background: var(--primary-blue);
}

.contact-card:hover i,
.contact-card:hover h3,
.contact-card:hover p {
    color: white;
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.edu-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.edu-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.08);
}

.edu-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.edu-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.isb-logo {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.06));
    color: var(--primary-blue);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.nitk-logo {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.04));
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.edu-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.edu-degree {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.edu-institution {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.edu-period {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.edu-card-body {
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.edu-gpa-badge {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.15);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.gpa-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.gpa-scale {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.edu-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-sidebar {
        display: none;
        /* Hide 'How I work' & 'Looking for' */
    }

    #skills {
        display: none;
        /* Hide Product Skills section */
    }

    .nav-links {
        display: none;
    }

    .stats-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .stat-divider {
        display: none;
    }

    /* Experience Collapsible */
    .timeline-content {
        cursor: pointer;
        position: relative;
    }

    .timeline-content::after {
        content: '+';
        position: absolute;
        right: 1.5rem;
        top: 2rem;
        font-size: 1.5rem;
        color: var(--primary-blue);
        transition: transform 0.3s ease;
    }

    .timeline-item.expanded .timeline-content::after {
        transform: rotate(45deg);
    }

    .timeline-content p,
    .timeline-content .experience-list {
        display: none;
        margin-top: 1rem;
    }

    .timeline-item.expanded .timeline-content p,
    .timeline-item.expanded .timeline-content .experience-list {
        display: block;
    }

    /* Prototype Slider Mobile Optimization */
    .proto-slide {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }

    .browser-frame {
        width: 100%;
        max-width: 340px;
        height: 220px;
        margin: 0 auto;
    }

    .proto-slide-content {
        text-align: center;
        align-items: center;
    }

    .proto-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }

    .proto-metrics {
        justify-content: center;
    }

    .proto-tabs {
        justify-content: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary-blue);
}

.modal-detail-section {
    margin-bottom: 2rem;
}

.modal-detail-section h4 {
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.modal-detail-section p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.modal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
/* ── Chat Widget ── */
#chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent, #3b9eff);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(59,158,255,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
#chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(59,158,255,0.55); }

#chat-box {
    width: 340px;
    max-height: 480px;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
#chat-box.open { display: flex; }

#chat-header {
    padding: 14px 16px;
    background: var(--accent, #3b9eff);
    display: flex;
    align-items: center;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff;
}
.chat-title { font-weight: 700; font-size: 0.9rem; color: #fff; }
.chat-subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg { display: flex; max-width: 85%; }
.chat-msg span {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
}
.chat-msg.user { align-self: flex-end; }
.chat-msg.user span { background: var(--accent, #3b9eff); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.bot span { background: rgba(255,255,255,0.08); color: var(--text-primary, #e0e0e0); border-bottom-left-radius: 4px; }
.chat-msg.typing span { opacity: 0.6; font-style: italic; }

#chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
#chat-input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary, #e0e0e0);
    font-size: 0.85rem;
    outline: none;
}
#chat-input:focus { border-color: var(--accent, #3b9eff); }
#chat-send {
    background: var(--accent, #3b9eff);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}
#chat-send:hover { opacity: 0.85; }

@media (max-width: 480px) {
    #chat-box { width: calc(100vw - 32px); }
    #chat-widget { bottom: 16px; right: 16px; }
}

/* ── Company Logos (Experience) ── */
.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
}
.company-header .company {
    margin-bottom: 0;
}
.exp-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.exp-logo svg {
    width: 36px;
    height: 36px;
}

/* ── Proto Tab Logo sizing ── */
.proto-tab .tab-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.proto-icon-wrap svg {
    width: 36px;
    height: 36px;
}
.maps-brand {
    background: #ffffff;
}
.cult-brand {
    background: #1a1a1a;
}
