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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a1a;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 60px;
}

.card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    width: 100%;
    max-width: 1400px;
}

.mission-badge {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    border: 2px solid #ff3b3b;
    border-radius: 20px;
    color: #ff3b3b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.main-heading {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.heading-name {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
}

.heading-light {
    color: #999;
    font-weight: 500;
    font-size: 18px; /* specific size for the lighter heading line */
    margin-top: 8px; /* small gap between name and lighter heading */
}

.heading-bold {
    color: #1a1a1a;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    gap: 24px;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card {
    padding: 28px 32px;
}

/* Layout for experience card: left (logos) and right (years) */
.experience-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Company-right small CTA under months */
.company-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
}

.explore-more{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:#111;
    cursor:pointer;
    opacity:0.95;
    transition:opacity 0.16s ease, transform 0.16s ease;
}

.explore-arrow{
    font-size:17px;
    line-height:1;
    display:inline-block;
    transition:transform 0.16s ease;
}

.explore-more:hover{ opacity:1; }
.explore-more:hover .explore-arrow{ transform: translateX(4px); }

@media (max-width: 640px){
    .company-right{ align-items:flex-start; }
}

/* Prevent anchor default underline for explore links and keep color consistent */
a.explore-more, .explore-more {
    text-decoration: none !important;
    color: inherit !important;
}

.explore-arrow, .explore-text { display: inline-block; }

/* Ensure explore links don't get underlined by parent link styles */
.company-right a.explore-more { text-decoration: none; }

.experience-left {
    flex: 1 1 65%;
}

.experience-right {
    flex: 0 0 28%;
    text-align: right;
}

.experience-number {
    font-size: clamp(28px, 6vw, 56px);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.experience-unit {
    font-size: 22px;
    font-weight: 700;
    color: #666;
    margin-left: 6px;
}

.experience-label {
    font-size: 12px;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.6px;
    margin-top: 6px;
}

.companies-info {
    margin-bottom: 16px;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.Chatbot-card .chatbot-info {
    display: flex;
    align-items: center;
    gap: 25px;
}
.Chatbot-card .chatbot-info .Chatbot {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.Chatbot-card .chatbot-info .chatbot-text {
    font-size: 13px;
    font-weight: 700;
    color: #f87171;
    margin-top: 10px;
}

.chatbot-logo {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 54px;
}

.company-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Logo images for companies in the experience card */
.company-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    display: inline-block;
}

.companies-text {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.cgpa-card {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Education logo inside CGPA card */
.cgpa-left { flex: 1 1 auto; }
.cgpa-right { flex: 0 0 136px; display: flex; justify-content: center; }
.edu-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    display: block;
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-unit {
    font-size: 48px;
    color: #999;
}

.stat-label {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.education-details {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.5;
}

.promise-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.info-cards {
    display: grid;
    gap: 24px;
}

.info-card {
    border-radius: 24px;
    padding: 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.light-card {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.impact-text {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 28px;
    line-height: 1.5;
}

.metrics-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    margin-bottom: 24px;
    /* No internal scrolling — six items will form two rows (3 columns) */
    padding-right: 0;
}

.metric-item {
    text-align: center;
    padding: 0; /* remove box padding so metrics sit flush */
    background: transparent; /* no box background */
    border-radius: 0;
    box-shadow: none; /* remove shadow */
}

.metric-number {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 6px;
}

.plus {
    font-size: 22px;
    color: #666;
}

.metric-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Small descriptive text under metric labels: hidden by default, shown on hover */
.metric-item {
    position: relative;
}

/* Tooltip-style description that appears outside the card */
.metric-desc {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
    background: #ffffff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 1200;
}

/* Show tooltip when hovering the metric number specifically */
.metric-number:hover ~ .metric-label .metric-desc,
.metric-number:focus ~ .metric-label .metric-desc {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Mobile: render descriptions inline to avoid tooltip overlap and ensure readability */
@media (max-width: 640px) {
    .metric-desc {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        white-space: normal;
        margin-left: 4px;
        display: inline-block;
    }
}

.availability {
    display: flex;
    align-items: center;
    gap: 8px;
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #00d084;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.availability-text {
    font-size: 12px;
    font-weight: 700;
    color: #00d084;
    letter-spacing: 0.5px;
}

.dark-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dark-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.projects-text {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff; /* use white color for contact links */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s ease;
}

.contact-link:hover {
    color: #fff;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 30px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-heading {
        font-size: 42px;
    }
    .heading-name {
        font-size: 42px;
    }
    .heading-light {
        font-size: 16px;
    }
    
    .container {
        padding: 120px 40px 40px;
    }

    .nav-container {
        padding: 20px 40px;
    }
}

@media (max-width: 640px) {
    .main-heading {
        font-size: 32px;
    }
    .heading-name {
        font-size: 32px;
    }
    .heading-light {
        font-size: 14px;
    }
    
    .container {
        padding: 100px 28px 28px;
    }

    .nav-container {
        padding: 16px 28px;
    }

    .nav-logo {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 56px;
    }
    
    .metric-number {
        font-size: 36px;
    }

    .metrics-wrapper {
        grid-template-columns: 1fr;
    }

    .company-logos {
        flex-direction: column;
    }

    /* Make the experience card stack cleanly on small screens */
    .experience-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Stack CGPA card on mobile so logo goes below text */
    .cgpa-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .experience-right {
        text-align: left;
        width: 100%;
    }

    .experience-number {
        font-size: 36px;
    }

    /* Reduce logo sizes on mobile to prevent overflow */
    .company-logo-img {
        width: 44px;
        height: 44px;
    }

    .experience-right {
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .company-logo-img {
        width: 36px;
        height: 36px;
    }

    .experience-number {
        font-size: 32px;
    }

    .experience-unit {
        font-size: 16px;
    }

    .mission-badge {
        margin-bottom: 24px;
    }
    .container {
        padding: 80px 18px 18px;
    }
}

/* Experience detail modal (scoped) */
.experience-detail-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:2000}
.experience-detail-modal.open{display:flex}
.experience-detail-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.6)}
.experience-detail-panel{position:relative;max-width:1200px;width:96%;background:transparent;border-radius:12px;z-index:2}
.experience-detail-panel .detail-content{display:grid;grid-template-columns:420px 1fr;gap:24px}
.experience-detail-panel .detail-left{background:linear-gradient(135deg,#2a2a2a,#171717);padding:24px;border-radius:12px;color:#fff}
.experience-detail-panel .detail-right{background:#fff;padding:24px;border-radius:12px}
.detail-close{position:absolute;right:8px;top:8px;background:rgba(255,255,255,0.9);border:none;padding:8px 10px;border-radius:8px;cursor:pointer;font-weight:700}
.detail-close:hover{transform:translateY(-2px)}
.detail-section{margin-bottom:18px}
.company-logo-large{width:72px;height:72px;border-radius:12px;background:#fff;padding:10px;object-fit:contain}
.company-name-large{font-size:20px}
.company-role-large{font-size:14px;color:rgba(255,255,255,0.8)}
.radar-container-detail{height:220px;margin-top:12px}
.detail-metrics .metric-box{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.06)}
.achievements-section{background:linear-gradient(135deg,#f8f9ff,#f0f1ff);padding:16px;border-radius:10px}

@media (max-width: 900px){
    .experience-detail-panel .detail-content{grid-template-columns:1fr}
    .experience-detail-modal{align-items:flex-start;padding-top:80px}
    .detail-close{right:12px}
}

/* Experience cards grid */
.experience-section {
    /* match home container spacing */
    padding: 120px 60px 60px;
    background: transparent;
}

.experience-section .section-inner {
    /* match main content max width */
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    margin-bottom: 28px;
    color: #1a1a1a;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.exp-card {
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 40px rgba(13,13,13,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.exp-card.dark {
    /* outer card remains white; hero area will be dark for dark cards */
    background: #ffffff;
    color: #fff;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.exp-card.dark::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 8px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.exp-card.light {
    color: #1a1a1a;
}

.exp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(10,10,10,0.08);
}

.exp-hero{
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 18px 18px 0; /* top and horizontal padding to inset the image */
    box-sizing: border-box;
    background-clip: padding-box;
}

.exp-hero img{
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.exp-hero::after{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 84px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    pointer-events: none;
}

/* light cards: subtle neutral background behind image so padding is visible */
.exp-card.light .exp-hero{
    background: #f6f6f6;
}

/* dark cards: make the hero area itself dark so the image sits on a dark block */
.exp-card.dark .exp-hero{
    background: linear-gradient(135deg, #2a2a2a 0%, #171717 100%);
}

/* darker overlay for dark cards to make CTA/text pop */
.exp-card.dark .exp-hero::after{
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
}

.exp-cta{
    position: absolute;
    left: 24px;
    bottom: 18px;
    padding: 10px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: rgba(0,0,0,0.55);
    color: #fff;
    backdrop-filter: blur(4px);
}

.exp-card.light .exp-cta{
    background: rgba(0,0,0,0.58);
    color: #fff;
}

.exp-card.dark .exp-cta{
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.exp-meta {
    /* bottom panel matching the pattern: white rounded panel with stats */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 6px 18px rgba(10,10,10,0.04);
}

.exp-stats {
    display: flex;
    gap: 18px;
    align-items: center;
}

.exp-stats .small{
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}

.exp-left{display:flex;align-items:center;gap:14px}

.exp-logo{width:64px;height:64px;object-fit:contain;border-radius:8px;background:transparent;padding:4px;display:inline-block}

/* Make logos pop on dark cards: white background + subtle shadow */
.exp-card.dark .exp-logo{background:#fff;padding:6px;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,0.25)}

/* For light cards keep logo background transparent (card is already white) */
.exp-card.light .exp-logo{background:transparent;padding:0;border-radius:8px}

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

.exp-role{font-weight:800;font-size:16px;color:inherit}

.exp-dates{font-size:13px;color:rgba(0,0,0,0.6)}

/* bottom panel text should always be dark so it's readable on white background */
.exp-meta{color: #1a1a1a}

.exp-card.dark .exp-meta{border-top:1px solid rgba(255,255,255,0.04)}

.exp-right{min-width:80px;text-align:right}

.exp-months{font-weight:800;font-size:16px;color:inherit}

/* remove white text overrides for dark cards so bottom panel remains readable */
.exp-card.dark .exp-stats .small{color:rgba(0,0,0,0.6)}

/* mini circular map / badge on right to match provided pattern */
.exp-mini {
    width:72px;
    height:72px;
    border-radius:50%;
    background:#f3f3f3;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.exp-card.dark .exp-mini{background:#2a2a2a}
.exp-card.dark .exp-mini svg{filter:invert(1)}

@media (max-width: 1100px){
    .exp-grid{grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 700px){
    .exp-grid{grid-template-columns: 1fr;}
    .experience-section{padding: 40px 20px}
}

/* Styles for merged Experience section (from experience.html) */
.experience-container {
    /* Make the experience section span the full page width and
       center its inner .card at the same max-width as the home area. */
    width: 100%;
    margin: 0;
    padding: 120px 60px 60px;
}

.experience-container .card {
    max-width: 1400px;
    margin: 0 auto;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.left-column { display:flex; flex-direction:column; gap:20px }

.company-card {
    background: white;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 24px;
}

.company-right { flex: 0 0 80px; text-align: right }
.company-number { font-size: clamp(18px, 4vw, 36px); font-weight:800; color:#1a1a1a }
.company-unit { font-size: 15px; font-weight:700; color:#666; margin-left:6px }

.company-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15) }

.company-logo { width:64px; height:64px; border-radius:12px; object-fit:contain; flex-shrink:0; background:#f8f8f8; padding:8px }
.company-info { flex:1 }
.company-name { font-size:18px; font-weight:700; color:#1a1a1a; margin-bottom:4px }
.company-role { font-size:14px; color:#666; margin-bottom:6px }
.company-duration { font-size:13px; color:#999; font-weight:600 }

.right-column { display:flex; flex-direction:column; gap:24px }
.metrics-card { background:white; border-radius:24px; padding:32px; box-shadow:0 4px 20px rgba(0,0,0,0.08) }
.metrics-card.large { grid-column: 1 / -1 }
.card-title { font-size:16px; font-weight:700; color:#1a1a1a; margin-bottom:8px }
.metric-value { font-size:36px; font-weight:800; color:#1a1a1a; line-height:1; margin-bottom:4px }
.metric-change { font-size:14px; font-weight:600; color:#00d084 }
.chart-container { position:relative; width:100%; height:200px; margin-top:20px }
.radar-container { position:relative; width:100%; height:360px; margin-top:20px }

/* Arrange radar and metrics side-by-side on the right column */
.radar-metrics { display: grid; grid-template-columns: 1fr 380px; gap:20px; align-items: start; }
.metrics-column { display:flex; flex-direction:column; gap:12px }
.metrics-column .metric-cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; justify-items: center }
.heatmap-wrapper { margin-top: 18px }

@media (max-width: 968px) {
    .radar-metrics { grid-template-columns: 1fr; }
    .metrics-column { align-items: center; }
    .metrics-column .metric-cards { width: 100%; }
}

.skills-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px }
.skill-item { display:flex; flex-direction:column; gap:8px }
.skill-name { font-size:13px; font-weight:600; color:#666 }
.skill-bar { height:8px; background:#f0f0f0; border-radius:4px; overflow:hidden }
.skill-fill { height:100%; background: linear-gradient(90deg,#6366f1 0%,#8b5cf6 100%); border-radius:4px; transition: width 1s ease }

@media (max-width: 968px) {
    .experience-grid { grid-template-columns: 1fr }
    .right-column { grid-template-columns: 1fr }
    .metrics-card.large { grid-column: 1 }
}

@media (max-width: 640px) {
    .experience-container { margin: 20px auto; padding: 0 14px }
    .section-title { font-size: 32px; margin-bottom: 24px }
    .company-card { padding: 20px 24px; gap: 12px }
    .company-right { flex: 0 0 64px }
    .company-logo { width:54px; height:54px }
    .metrics-card { padding: 24px }
    .skills-grid { grid-template-columns: 1fr }
}

/* Compact radar-block layout (radar left, APIs stat right) */
/* (radar-block compact styles removed to avoid duplication)
   Final radar layout and API card styles appear later in this file. */

/* Standalone API stat card (separate from radar block) */
.api-card {
    background: white;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    min-width: 160px;
}

.api-card .api-number { font-size: 40px; font-weight: 900; color: #1a1a1a }
.api-card .api-number .plus { font-size: 20px; margin-left:6px; color:#666 }
.api-card .api-label { font-size: 13px; font-weight:700; color:#666 }

/* Right column layout: vertical stack (radar+metrics on top, heatmap below) */
.right-column { display:flex; flex-direction:column; gap:24px }

@media (max-width: 968px) {
    .right-column { flex-direction:column; }
    .api-card { align-items: center; text-align: center }
}

/* Metric cards (6 small cards) */
.metric-cards-heatmap { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.metric-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; justify-items: center }
.metric-card-new { background: white; border-radius: 12px; padding: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; aspect-ratio: 1 / 1; width: 110px; max-width: 100%; text-align: center }
.metric-icon { display:none; }
.metric-number-large { font-size: 20px; font-weight:900; color:#1a1a1a; line-height:1 }
.metric-title { font-size: 12px; color:#666; font-weight:700; margin-top:6px; display:block; overflow:hidden; text-overflow:ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; display: -webkit-box }

/* Heatmap card */
.heatmap-card { display:flex; flex-direction:column; gap:12px }
.heatmap { display:grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 18px; gap:6px; align-items:center }
.heatmap .cell { width:100%; height:18px; border-radius:4px; background:#f3f3f3; }
.heatmap .cell.level-0 { background:#f3f4f6; }
.heatmap .cell.level-1 { background:#bbdefb; }
.heatmap .cell.level-2 { background:#64b5f6; }
.heatmap .cell.level-3 { background:#1976d2; }
.heatmap .cell.level-4 { background:#0b49a9; }
.heatmap-legend { display:flex; gap:8px; align-items:center; font-size:12px; color:#666 }
.heatmap-legend .legend-item { display:flex; gap:6px; align-items:center }
.legend-box { width:14px; height:12px; display:inline-block; border-radius:3px; }
.legend-box.level-0 { background:#f3f4f6 }
.legend-box.level-1 { background:#bbdefb }
.legend-box.level-2 { background:#64b5f6 }
.legend-box.level-3 { background:#1976d2 }
.legend-box.level-4 { background:#0b49a9 }
.heatmap-months { display:grid; grid-template-columns: repeat(12, 1fr); gap:6px; font-size:11px; color:#888; margin-top:8px }

/* @media (max-width: 1100px) {
    .metric-cards-heatmap { grid-template-columns: 1fr; }
    .metric-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .metric-cards { grid-template-columns: 1fr; }
} */

@media (max-width: 1100px) {
    .metric-cards-heatmap { grid-template-columns: 1fr; }
    .metric-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .metric-cards { grid-template-columns: repeat(2, 1fr); }
    .metric-card-new { width: 100px; }
}

/* Merged small, page-scoped experience rules (from css/experience-styles.css) */
.experience-container .experience-grid { max-width: 1200px; margin: 0 auto }
.experience-container .stats-grid { display: grid; gap: 18px }
.experience-container .metrics-wrapper { grid-template-columns: repeat(3, 1fr); gap: 12px }
.experience-container .metric-item { text-align: center }
.experience-container .radar-container { height: 320px }

/* Additional scoped experience styles from user's updated design */
.experience-container .mission-badge { border-color: #6366f1; color: #6366f1 }
.experience-container .company-card { padding: 28px 32px; border-radius: 24px; box-shadow: 0 8px 28px rgba(0,0,0,0.06) }
.experience-container .company-logo { width:64px; height:64px; border-radius:12px; padding:8px; background:#f8f8f8 }
.experience-container .info-cards { display: grid; gap: 24px }
.experience-container .radar-section { display:flex; flex-direction:column; gap:20px }
.experience-container .radar-container { height: 300px }
.experience-container .legend-item { font-size:13px }

/* Scoped responsive tweaks for the Experience section */
@media (max-width: 968px) {
    .experience-container .content-wrapper { grid-template-columns: 1fr }
    .experience-container .metrics-wrapper { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 640px) {
    .experience-container .company-logo { width:54px; height:54px }
    .experience-container .metric-number { font-size:36px }
}

/* Prevent anchor content from being hidden behind fixed navbar */
html { scroll-padding-top: 90px; }

/* Mobile-specific experience tweaks */
@media (max-width: 420px) {
    .experience-container { padding: 20px 12px; }
    .experience-container .card { padding: 0; }
    .experience-container .stats-grid { gap: 12px }
    .experience-container .company-card { padding: 16px 12px; gap: 12px }
    .experience-container .company-logo { width:48px; height:48px }
    .experience-container .info-cards { gap: 16px }
    .experience-container .radar-container { height: 220px }
}

/* ======================================================================
   Projects section styles (merged from user's Projects page)
   Kept scoped and appended to avoid interfering with other rules.
   ====================================================================== */
.projects-section {
    /* Keep projects aligned with the same page width as the home section */
    width: 100%;
    padding: 120px 60px 60px;
}

.projects-section > .section-header,
.projects-section > .projects-grid {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header { margin-bottom: 48px }
.mission-badge { display: inline-block; padding: 8px 20px; background: white; border: 2px solid #6366f1; border-radius: 20px; color: #6366f1; font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px }
.section-title { font-size: 42px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px }
.section-subtitle { font-size: 18px; color: #666; font-weight: 500; line-height: 1.6 }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px }
.project-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; cursor: pointer; position: relative; aspect-ratio: 3 / 4; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) }
.project-icon-wrapper { padding: 20px 20px 0; display: flex; justify-content: space-between; align-items: flex-start }
.project-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0 }
.edit-btn { display: none !important; }
.project-content { padding: 16px 20px 20px; display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 96px); }
.project-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; line-height: 1.2 }
.project-description { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.project-footer { display: flex; justify-content: flex-end; align-items: center; padding-top: 12px; }
.learn-more-btn { padding: 8px 16px; background: transparent; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; color: #1a1a1a; cursor: pointer; transition: all 0.16s ease }
.learn-more-btn:hover { background: #f3f4f6 }
.project-tags { display: none; }

/* Responsive: let cards size naturally on small screens */
@media (max-width: 640px) {
    .project-card { height: auto; }
    .project-content { height: auto; }
    .project-description { -webkit-line-clamp: 6; }
}
.icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) }
.icon-gray { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) }
.icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) }
.icon-yellow { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) }
.icon-orange { background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%) }
.icon-purple { background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%) }
.icon-pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) }
.icon-red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) }
.stats-badge { position: absolute; top: 16px; right: 16px; padding: 6px 12px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); border-radius: 20px; font-size: 11px; font-weight: 700; color: white; letter-spacing: 0.5px }

@media (max-width: 968px) {
    .projects-section { padding: 100px 40px 40px }
    .section-title { font-size: 36px }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px }
}

@media (max-width: 640px) {
    .projects-section { padding: 100px 28px 28px }
    .nav-container { padding: 16px 28px }
    .section-title { font-size: 32px }
    .projects-grid { grid-template-columns: 1fr; gap: 20px }
}

/* small entrance animation for project cards */
@keyframes projectsFadeInUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
.project-card { animation: projectsFadeInUp 0.6s ease }
.project-card:nth-child(1) { animation-delay: 0.1s }
.project-card:nth-child(2) { animation-delay: 0.2s }
.project-card:nth-child(3) { animation-delay: 0.3s }
.project-card:nth-child(4) { animation-delay: 0.4s }
.project-card:nth-child(5) { animation-delay: 0.5s }
.project-card:nth-child(6) { animation-delay: 0.6s }
