/* ==========================================================================
   PROJECTS.CSS - Academic Showcase, Freelance Showcase, Certifications,
                  3D Cyber Timeline & Skill Matrix
   ========================================================================== */

/* === ABOUT ME SECTION === */
.about-container {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

.about-terminal-box {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none !important;
    box-shadow: none !important;
    position: relative;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 247, 255, 0.15);
}

.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #27c93f; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--primary);
    margin-left: 0.5rem;
}

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

.metric-chip {
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid rgba(0, 247, 255, 0.25);
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-chip:hover {
    transform: translateY(-3px);
    background: rgba(0, 247, 255, 0.14);
    border-color: var(--primary);
}

.metric-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

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

.metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--light);
    line-height: 1;
}

.metric-lbl {
    font-size: 0.72rem;
    color: rgba(245, 245, 247, 0.75);
}

/* === CLEAN DEVELOPER PROFILE CARD (RIGHT SIDE OF ABOUT) === */
.about-right-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-dev-card {
    background: rgba(16, 18, 34, 0.85);
    border: 1px solid rgba(0, 247, 255, 0.25);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    max-width: 360px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    position: relative;
}

.about-dev-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.about-dev-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0d0f20;
    border: 3px solid #060814;
}

.about-dev-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--light);
    margin: 0;
}

.about-dev-title {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.about-dev-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.about-dev-badge {
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid rgba(0, 247, 255, 0.25);
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--light);
}

.about-dev-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.35);
    color: var(--neon-green);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.2rem;
}

.pulse-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* === BORDERLESS CODING PROFILES (STACKED BELOW BIO) === */
.coding-profiles {
    margin-top: 1.2rem;
}

.coding-profiles-title {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.coding-profile-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.coding-profile-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.4rem !important;
    width: auto;
    min-width: 58px;
    transition: all 0.3s ease;
    text-align: center;
}

.coding-profile-card:hover {
    transform: translateY(-4px) scale(1.06);
}

.coding-profile-card a {
    color: var(--light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.coding-profile-card i {
    font-size: 2rem;
    color: var(--primary);
}

.coding-profile-card .platform-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 247, 255, 0.15));
}

.coding-profile-card:hover .platform-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 16px rgba(0, 247, 255, 0.4));
}

/* === SKILLS MATRIX === */
#skills {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
    max-width: 1060px;
    margin: 0 auto;
}

#skills .section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.1rem) !important;
    margin-bottom: 1.4rem !important;
}

.skills-filter-wrap {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.skill-filter-btn {
    background: rgba(18, 18, 32, 0.75);
    border: 1px solid rgba(0, 247, 255, 0.25);
    color: var(--light);
    padding: 0.35rem 0.85rem;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(10px);
}

.skill-filter-btn:hover,
.skill-filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.35);
    transform: translateY(-2px);
}

.unified-skills-grid.icon-only-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 1.25rem 0.75rem;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.25rem 0.5rem;
}

.skill-icon-card {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.35rem 0.15rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.skill-icon-card:hover {
    transform: translateY(-4px) scale(1.08);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.skill-icon-box {
    font-size: 2.15rem !important;
    color: var(--brand-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.skill-icon-box i {
    font-size: inherit;
    line-height: 1;
}

.skill-icon-box svg {
    display: block;
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.skill-icon-box img,
.skill-icon-box .skill-brand-img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.skill-icon-card:hover .skill-icon-box,
.skill-icon-card:hover .skill-icon-box svg,
.skill-icon-card:hover .skill-icon-box img,
.skill-icon-card:hover .skill-icon-box i {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 12px var(--brand-color, var(--primary)));
}

.skill-name-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.2px;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.skill-icon-card:hover .skill-name-label {
    color: var(--brand-color, var(--primary));
}

.skill-icon-card.filtered-out {
    display: none !important;
}

/* === ACADEMIC & FREELANCE PROJECTS (Matching Reference Design) === */
#projects {
    padding-top: 3.5rem !important;
    padding-bottom: 2rem !important;
    max-width: 1260px;
    margin: 0 auto;
}

#freelance {
    padding-top: 2rem !important;
    padding-bottom: 3.5rem !important;
    max-width: 1260px;
    margin: 0 auto;
}

.project-filter-wrap {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.project-filter-btn {
    background: rgba(18, 18, 32, 0.75);
    border: 1px solid rgba(0, 247, 255, 0.25);
    color: var(--light);
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(10px);
}

.project-filter-btn:hover,
.project-filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.35);
    transform: translateY(-2px);
}

.projects-grid,
.freelance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 310px));
    justify-content: center;
    gap: 1.25rem;
    align-items: stretch;
    max-width: 1020px;
    margin: 0 auto;
    width: 100%;
}

.project-card,
.freelance-card {
    background: rgba(8, 10, 24, 0.65);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.02);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 305px;
    margin: 0 auto;
    box-sizing: border-box;
}

.project-card:hover,
.freelance-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 210, 255, 0.28);
}

.project-img,
.freelance-banner {
    height: 120px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(4, 5, 14, 0.7);
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
    flex-shrink: 0;
}

.project-img img,
.freelance-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.project-card:hover .project-img img,
.freelance-card:hover .freelance-banner img {
    transform: scale(1.05);
}

.project-category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(14, 16, 26, 0.9);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.project-info,
.freelance-info {
    padding: 0.75rem 0.85rem 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(305px - 120px);
    box-sizing: border-box;
    gap: 0.22rem;
}

.project-info h3,
.freelance-info h3 {
    font-size: 0.94rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.project-info p,
.freelance-info p {
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Square Tech Icon Badges (Matching Screenshot) */
.project-tech-icons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
}

.tech-icon-pill {
    width: 23px;
    height: 23px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--icon-color, var(--primary));
    transition: transform 0.2s ease, background 0.2s ease;
}

.tech-icon-pill:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.project-links,
.freelance-links {
    margin-top: auto;
    display: flex;
    width: 100%;
}

/* Action Pill Buttons (Electric Cyber Cyan Matching VIEW REPOSITORY) */
.btn-repo-pill,
.btn-live-pill,
.btn-golden-pill {
    background: linear-gradient(135deg, #00f7ff, #00c8e6);
    color: #030917 !important;
    border: 2px solid #00f7ff;
    border-radius: 28px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    min-height: 28px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 247, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-repo-pill:hover,
.btn-live-pill:hover,
.btn-golden-pill:hover {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #000000 !important;
    box-shadow: 0 5px 18px rgba(0, 247, 255, 0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   THEMED PROJECT & CLIENT CARDS (Suitable Unique Visual Themes)
   ========================================================================== */

/* 1. Thiruvalluvar Secure Solutions: Cyber Surveillance Cyan & Deep Navy */
.theme-security {
    border-top: 3px solid #00f7ff !important;
    background: radial-gradient(circle at 50% 0%, rgba(0, 247, 255, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-security:hover {
    border-color: #00f7ff !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 247, 255, 0.35) !important;
}
.badge-theme-security {
    background: rgba(0, 247, 255, 0.18) !important;
    border: 1px solid rgba(0, 247, 255, 0.6) !important;
    color: #00f7ff !important;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
}
.btn-theme-cyan {
    background: linear-gradient(135deg, #00f7ff, #00b4d8) !important;
    border-color: #00f7ff !important;
    color: #030917 !important;
}
.btn-theme-cyan:hover {
    background: #38bdf8 !important;
    box-shadow: 0 6px 20px rgba(0, 247, 255, 0.6) !important;
}

/* 2. Tailor Shop Pro: Bespoke Sartorial Luxury Gold & React Cyan */
.theme-tailor {
    border-top: 3px solid #f59e0b !important;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-tailor:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(245, 158, 11, 0.35) !important;
}
.badge-theme-tailor {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.6) !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}
.btn-theme-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    border-color: #fbbf24 !important;
    color: #1a0f00 !important;
}
.btn-theme-gold:hover {
    background: #fde047 !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6) !important;
}

/* 3. Manjolai Family Restaurant: Lush Tea-Estate Emerald */
.theme-manjolai {
    border-top: 3px solid #10b981 !important;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-manjolai:hover {
    border-color: #34d399 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(16, 185, 129, 0.35) !important;
}
.badge-theme-nature {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    color: #34d399 !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.btn-theme-emerald {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: #022013 !important;
}
.btn-theme-emerald:hover {
    background: #6ee7b7 !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
}

/* 4. AMR Multi-Cuisine Dining: Candlelit Crimson Amber */
.theme-amr {
    border-top: 3px solid #ea580c !important;
    background: radial-gradient(circle at 50% 0%, rgba(234, 88, 12, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-amr:hover {
    border-color: #fb923c !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(234, 88, 12, 0.35) !important;
}
.badge-theme-dining {
    background: rgba(234, 88, 12, 0.18) !important;
    border: 1px solid rgba(234, 88, 12, 0.6) !important;
    color: #fb923c !important;
    text-shadow: 0 0 8px rgba(234, 88, 12, 0.5);
}
.btn-theme-amber {
    background: linear-gradient(135deg, #fb923c, #ea580c) !important;
    border-color: #fb923c !important;
    color: #240a02 !important;
}
.btn-theme-amber:hover {
    background: #fed7aa !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6) !important;
}

/* 5. Leeya Power Fitness: High-Octane Electric Pink / Cyber Neon */
.theme-gym {
    border-top: 3px solid #ec4899 !important;
    background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-gym:hover {
    border-color: #f472b6 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(236, 72, 153, 0.35) !important;
}
.badge-theme-fitness {
    background: rgba(236, 72, 153, 0.18) !important;
    border: 1px solid rgba(236, 72, 153, 0.6) !important;
    color: #f472b6 !important;
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}
.btn-theme-pink {
    background: linear-gradient(135deg, #ec4899, #db2777) !important;
    border-color: #ec4899 !important;
    color: #210212 !important;
}
.btn-theme-pink:hover {
    background: #fbcfe8 !important;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6) !important;
}

/* 6. AI & Data Science: Deep Violet */
.theme-ai {
    border-top: 3px solid #8b5cf6 !important;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12), rgba(8, 10, 24, 0.75) 60%) !important;
}
.theme-ai:hover {
    border-color: #a78bfa !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(139, 92, 246, 0.35) !important;
}
.badge-theme-ai {
    background: rgba(139, 92, 246, 0.18) !important;
    border: 1px solid rgba(139, 92, 246, 0.6) !important;
    color: #c4b5fd !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* 7. Web & Library: Sapphire Cyan */
.theme-web {
    border-top: 3px solid #06b6d4 !important;
}
.badge-theme-web {
    background: rgba(6, 182, 212, 0.18) !important;
    border: 1px solid rgba(6, 182, 212, 0.6) !important;
    color: #67e8f9 !important;
}

/* 8. Java & Systems: Amber Gold */
.theme-java {
    border-top: 3px solid #f89820 !important;
}
.badge-theme-java {
    background: rgba(248, 152, 32, 0.18) !important;
    border: 1px solid rgba(248, 152, 32, 0.6) !important;
    color: #fcd34d !important;
}

/* Live .IN Domain Tag */
.domain-in-badge {
    background: #00f7ff;
    color: #020917;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 0.1rem 0.32rem;
    border-radius: 3px;
    letter-spacing: 0.6px;
    margin-left: 0.3rem;
    display: inline-block;
}

/* === 3D SLIDING CERTIFICATE CAROUSEL (Clear & Large Visibility) === */
.cert-carousel-wrapper {
    position: relative;
    max-width: 680px;
    margin: 1rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
}

.cert-carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    position: relative;
    padding: 0.35rem 0;
}

.cert-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
    width: 100%;
}

.cert-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.35rem;
    display: flex;
    justify-content: center;
}

.cert-slide-inner {
    background: rgba(8, 10, 24, 0.65);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(255, 255, 255, 0.02);
    width: 100%;
    max-width: 560px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.cert-slide-inner:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 210, 255, 0.28);
}

.cert-img-container {
    position: relative;
    width: 100%;
    height: 235px;
    background: rgba(4, 5, 14, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
    border-bottom: 1px solid rgba(0, 210, 255, 0.15);
}

.cert-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}

.cert-slide-inner:hover .cert-slide-img {
    transform: scale(1.02);
}

.cert-meta-info {
    padding: 0.85rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cert-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--tag-color, var(--primary));
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid var(--tag-color, var(--primary));
    padding: 0.14rem 0.55rem;
    border-radius: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 0.08rem;
}

.cert-slide-title {
    font-size: 1.05rem;
    color: var(--light);
    font-weight: 700;
    margin: 0;
}

.cert-slide-issuer {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cert-slide-recipient {
    font-size: 0.78rem;
    color: rgba(245, 245, 247, 0.8);
    margin-top: 0.12rem;
}

.btn-view-cert-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.45rem 1rem;
    border-radius: 12px;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(0, 247, 255, 0.18);
}

.btn-view-cert-page:hover {
    background: var(--primary);
    color: #000000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.cert-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 18, 38, 0.9);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 14px rgba(0, 247, 255, 0.3);
    z-index: 5;
    flex-shrink: 0;
}

.cert-nav-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 25px var(--primary);
    transform: scale(1.1);
}

.cert-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.cert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}



/* === 2-COLUMN STACKED (UNDER BY UNDER) ACADEMIC CERTIFICATIONS & ACHIEVEMENTS === */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 340px));
    justify-content: center;
    gap: 1rem;
    max-width: 720px;
    margin: 1.2rem auto 0 auto;
    width: 100%;
}

.cert-card {
    background: rgba(8, 10, 24, 0.65);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.02);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    width: 100%;
}

.cert-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 210, 255, 0.28);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cert-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 247, 255, 0.1);
    border: 1.5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.15);
}

.cert-title {
    font-size: 0.95rem;
    color: var(--light);
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

.cert-issuer {
    font-size: 0.76rem;
    color: var(--secondary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.cert-desc {
    font-size: 0.8rem;
    color: rgba(245, 245, 247, 0.88);
    line-height: 1.45;
}

/* === COMPACT STAGGERED CYBER TIMELINE (EDUCATION & EXPERIENCE) === */
.timeline-cyber {
    position: relative;
    max-width: 1000px;
    margin: 1.6rem auto 0 auto;
    padding: 1.2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary) 50%, rgba(138, 43, 226, 0.1) 100%);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 1.8rem;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    padding-right: 2.8rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 2.8rem;
}

.timeline-node {
    position: absolute;
    top: 14px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5), inset 0 0 10px rgba(0, 247, 255, 0.2);
    z-index: 3;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    padding: 5px;
}

.timeline-node.node-whitestone {
    background: #090e24;
    border-color: #00f7ff;
    box-shadow: 0 0 22px rgba(0, 247, 255, 0.6), inset 0 0 10px rgba(0, 247, 255, 0.25);
}

.timeline-node.node-stackqueue {
    background: #ffffff;
    border-color: #00f7ff;
    box-shadow: 0 0 22px rgba(0, 247, 255, 0.6);
}

.timeline-node.node-kiot {
    background: #ffffff;
    border-color: #0099ff;
    box-shadow: 0 0 22px rgba(0, 153, 255, 0.6);
}

.timeline-node.node-sreevari {
    background: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.6);
}

.timeline-node-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.35s ease;
}

.timeline-item.left .timeline-node { right: -28px; }
.timeline-item.right .timeline-node { 
    left: -28px; 
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 41px;
    width: 28px;
    height: 2px;
    background: rgba(0, 210, 255, 0.5);
    z-index: 1;
}

.timeline-item.left::after { right: 28px; }
.timeline-item.right::after { left: 28px; }

.timeline-item:hover .timeline-node {
    transform: scale(1.18);
    box-shadow: 0 0 28px var(--primary), 0 0 45px rgba(0, 247, 255, 0.3);
}

.timeline-item.right:hover .timeline-node {
    box-shadow: 0 0 28px var(--secondary), 0 0 45px rgba(168, 85, 247, 0.3);
}

.timeline-item:hover .timeline-node-logo {
    transform: scale(1.08);
}

.cyber-hub-card {
    background: rgba(8, 10, 24, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), inset 0 0 14px rgba(255, 255, 255, 0.02);
    position: relative;
}

.cyber-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 210, 255, 0.28);
}

.timeline-item.right .cyber-hub-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(138, 43, 226, 0.28);
}

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.hub-company-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.company-logo-badge {
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-logo-badge.brand-whitestone {
    background: #090e24;
    border: 1.5px solid rgba(0, 247, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 247, 255, 0.3), inset 0 0 8px rgba(0, 247, 255, 0.15);
    min-width: 95px;
}

.company-logo-badge.brand-stackqueue {
    background: #ffffff;
    border: 1.5px solid rgba(0, 247, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 247, 255, 0.35);
    min-width: 115px;
}

.company-logo-badge.brand-kiot {
    background: #ffffff;
    border: 1.5px solid rgba(0, 153, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 153, 255, 0.35);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
}

.company-logo-badge.brand-sreevari {
    background: #ffffff;
    border: 1.5px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 2px;
}

.cyber-hub-card:hover .company-logo-badge {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 247, 255, 0.5);
}

.cyber-hub-card:hover .company-logo-badge.brand-sreevari {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.hub-company-logo {
    max-height: 32px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.company-logo-badge.brand-kiot .hub-company-logo,
.company-logo-badge.brand-sreevari .hub-company-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(0, 210, 255, 0.25);
    padding: 0.22rem 0.7rem;
    border-radius: 18px;
    font-size: 0.74rem;
    font-weight: 700;
}

.hub-badge.highlight {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    border-color: rgba(255, 0, 127, 0.3);
}

.hub-company {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
}

.hub-title {
    font-size: 1.05rem;
    color: var(--light);
    font-weight: 700;
    margin: 0;
}

.hub-description {
    font-size: 0.82rem;
    color: rgba(245, 245, 247, 0.85);
    line-height: 1.42;
}

.cgpa-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--neon-green);
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    width: fit-content;
    margin-top: 0.1rem;
}

.hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 1040px) {
    .projects-grid,
    .freelance-grid {
        grid-template-columns: repeat(2, 310px);
        max-width: 660px;
        gap: 1.35rem;
    }

    .about-split-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        gap: 1.15rem;
    }
    
    .cert-card:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .timeline-line {
        left: 24px;
    }

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

    .timeline-node {
        width: 48px;
        height: 48px;
        left: 0 !important;
        right: auto !important;
        top: 14px;
    }

    .timeline-item::after {
        left: 24px !important;
        right: auto !important;
        top: 38px;
        width: 41px;
    }
}

@media (max-width: 680px) {
    .projects-grid,
    .freelance-grid {
        grid-template-columns: 310px;
        max-width: 310px;
        gap: 1.15rem;
    }
}

@media (max-width: 360px) {
    .projects-grid,
    .freelance-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .project-card,
    .freelance-card {
        width: 100%;
    }
}

/* === LIGHT MODE OVERRIDES === */
body.light-mode .project-card,
body.light-mode .freelance-card,
body.light-mode .about-dev-card,
body.light-mode .cert-card,
body.light-mode .skill-icon-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 20px rgba(2, 132, 199, 0.12) !important;
}

body.light-mode .project-card:hover,
body.light-mode .freelance-card:hover,
body.light-mode .about-dev-card:hover,
body.light-mode .cert-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.22), 0 0 25px rgba(124, 58, 237, 0.15) !important;
}

body.light-mode .project-info h3,
body.light-mode .freelance-info h3,
body.light-mode .about-dev-name,
body.light-mode .cert-title,
body.light-mode .skill-name-label {
    color: #0f172a !important;
}

body.light-mode .project-info p,
body.light-mode .freelance-info p,
body.light-mode .about-dev-badge,
body.light-mode .cert-desc {
    color: #334155 !important;
}