/* Variables & Reset */
:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #8A42D1;
    --accent-secondary: #4CC9F0;
    --border-color: #2a2a2a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 66, 209, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(138, 66, 209, 0.10), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(76, 202, 240, 0.10), transparent 30%);
    pointer-events: none;
    z-index: -2;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar shrink on scroll */
.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .logo {
    font-size: 1.3rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* Hero Section (Bento Grid) */
.hero-section {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    border-color: rgba(138, 66, 209, 0.5);
    /* transform: translateY(-5px);  <-- Removed to prevent conflict with JS Tilt */
    z-index: 10;
    /* Bring to front on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 3D Depth & Glare */
.bento-item,
.project-card,
.timeline-content {
    transform-style: preserve-3d;
    will-change: transform;
}

.bento-item>*,
.project-card>*,
.timeline-content>* {
    transform: translateZ(30px);
    /* Lift content */
    pointer-events: none;
    /* Pass clicks through to card (except buttons) */
}

.bento-item a,
.bento-item button,
.project-card a,
.project-card button {
    pointer-events: auto;
    /* Re-enable clicks on interactive elements */
    transform: translateZ(40px);
    /* Lift buttons even higher */
}

/* Timeline links need pointer-events but NOT translateZ to avoid click area issues */
.timeline-content a,
.timeline-content button {
    pointer-events: auto;
    transform: none;
    position: relative;
    z-index: 100;
}

.glare {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: overlay;
    transform: translateZ(1px);
    /* Sit just above background */
    opacity: 0;
    transition: opacity 0.3s;
}

.intro-card {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.tagline {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-socials {
    display: flex;
    gap: 10px;
}

.photo-card {
    grid-column: span 1;
    grid-row: span 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.status-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.stats-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
}

/* Impact Card */
.impact-card {
    align-items: flex-start;
    text-align: left;
    gap: 15px;
    padding: 25px;
}

.impact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.experience-section {
    width: 100%;
    margin-bottom: 10px;
}

.experience-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.experience-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.impact-section {
    width: 100%;
}

.impact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.impact-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    padding-left: 0;
}

.tech-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Added for horizontal centering of children */
    text-align: center;
    height: 100%;
    /* Ensure it fills the grid cell */
}

.tech-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    width: 100%;
    /* Ensure heading takes full width */
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--text-secondary);
    justify-content: center;
}

.tech-icons i:hover {
    color: var(--text-primary);
    transform: scale(1.1);
    transition: var(--transition);
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* LeetCode Card */
.leetcode-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.leetcode-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: space-between;
    /* Push live badge to right */
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    background: rgba(76, 201, 240, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

.live-badge::after {
    content: 'LIVE';
    font-weight: 700;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #00ff88;
    /* Bright green */
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff88;
    animation: pulse-green 2s infinite;
}

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

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.leetcode-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leetcode-total {
    text-align: center;
}

#lc-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1;
}

.leetcode-total small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.leetcode-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.lc-stat {
    display: flex;
    justify-content: space-between;
    width: 80px;
}

.lc-stat.easy {
    color: #00b8a3;
}

.lc-stat.medium {
    color: #ffc01e;
}

.lc-stat.hard {
    color: #ff375f;
}

/* Expertise Card */
.expertise-card {
    grid-row: span 2;
    /* Vertical span instead of horizontal */
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    text-decoration: none;
    color: inherit;
}

.expertise-card h3 {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.expertise-item i {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    min-width: 20px;
}

.expertise-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* GitHub Card */
.github-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    text-decoration: none;
    color: inherit;
}

.github-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.github-header i {
    margin-right: 8px;
    color: var(--accent-primary);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

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

.gh-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-secondary);
}

.gh-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.gh-languages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gh-lang-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.gh-lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gh-lang-tags span {
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(138, 66, 209, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(138, 66, 209, 0.2);
}

.leetcode-ranking {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
}

#lc-beats {
    color: var(--accent-primary);
    font-weight: 700;
}

/* LeetCode Calendar Stats */
.leetcode-calendar-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.lc-calendar-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.lc-calendar-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    line-height: 1;
}

.lc-calendar-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.about-content {
    display: block;
    /* Changed from grid to block */
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /* Optional: Center text if desired, or keep left */
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: left;
    /* Keep paragraph text left-aligned */
}

.education-block {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
    /* Ensure content is left-aligned */
}

.education-block h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.edu-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.edu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.edu-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
}

.skills-wrapper h3 {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    height: 100%;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.skill-category-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.skill-tags span i {
    font-size: 1rem;
}

.skill-tags span i:not(.colored) {
    color: var(--accent-secondary);
}

.skill-tags span .skill-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: var(--transition);
    /* filter: grayscale(100%) brightness(1.5);  <-- Removed to keep logos colored */
}

.skill-tags span:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-primary);
    background: rgba(76, 201, 240, 0.1);
    transform: translateY(-2px);
}

.skill-tags span:hover i:not(.colored) {
    color: var(--accent-primary);
}

.skill-tags span:hover .skill-logo {
    transform: scale(1.1);
}

.skill-tags span:body.hovering .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Cursor Trail Particles */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    animation: cursorTrailFade 0.6s ease-out forwards;
}

@keyframes cursorTrailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    perspective: 2000px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    z-index: 0;
    animation: timelineGrow 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes timelineGrow {
    to {
        height: 100%;
    }
}

.timeline-item {
    position: sticky;
    top: 100px;
    opacity: 0;
    animation: timelineItemFadeIn 0.8s ease-out forwards;
    padding-left: 40px;
    margin-bottom: 50px;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:nth-child(1) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.8s;
}

.timeline-item:nth-child(3) {
    animation-delay: 1.0s;
}

.timeline-item:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes timelineItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(138, 66, 209, 0.2);
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(138, 66, 209, 0.2);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(138, 66, 209, 0.4);
    }
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.timeline-content:hover {
    border-color: var(--accent-primary);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content li {
    margin-bottom: 8px;
}

.job-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.job-tech-stack span {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    background: rgba(76, 201, 240, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(76, 201, 240, 0.2);
}

/* Company Logo Links */
.timeline-content a {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.timeline-content a img {
    cursor: pointer;
    display: block;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    /* transform: translateY(-10px); <-- Removed for JS Tilt */
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.project-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    gap: 12px;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-box {
    background: linear-gradient(135deg, rgba(138, 66, 209, 0.1), rgba(76, 201, 240, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

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

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a:hover {
    color: var(--text-primary);
}

/* Chatbot */
.mobile-menu {
    display: none;
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(138, 66, 209, 0.4);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    overflow: hidden;
}

.chatbot-container.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chatbot-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chatbot-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--accent-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

#chatbot-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--text-primary);
    outline: none;
}

#chatbot-input:focus {
    border-color: var(--accent-primary);
}

#chatbot-send {
    background: var(--accent-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chatbot-send:hover {
    transform: scale(1.1);
}

.starter-prompts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-starter-prompt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.chatbot-starter-prompt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-card {
        grid-column: span 2;
    }

    .photo-card {
        grid-column: span 1;
    }

    .stats-card {
        grid-column: span 1;
    }

    .tech-card {
        grid-column: span 1;
    }

    .social-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .name {
        font-size: 2.5rem;
    }

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

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

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

    .timeline-dot {
        left: 16px;
    }

    .chatbot-container {
        width: 90%;
        height: 70vh;
        right: 5%;
        bottom: 90px;
    }
}
}


/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links li {
    margin: 20px 0;
    text-align: center;
}

.mobile-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    /* Let clicks pass through */
}

/* Endorsements Section */
.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.endorsement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.endorsement-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.summary-card {
    grid-column: span 2;
    /* Take up more space */
    background: linear-gradient(135deg, rgba(138, 66, 209, 0.1), rgba(76, 201, 240, 0.1));
    border-color: var(--accent-primary);
}

.endorsement-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.endorser-list {
    list-style: none;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.endorser-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.endorser-list i {
    color: var(--accent-secondary);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.skill-header i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skill-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.endorsement-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.endorsement-source {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .summary-card {
        grid-column: span 1;
    }

    .endorser-list {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid items */
.scroll-reveal.delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal.delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal.delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal.delay-4 {
    transition-delay: 0.4s;
}

.scroll-reveal.delay-5 {
    transition-delay: 0.5s;
}

.scroll-reveal.delay-6 {
    transition-delay: 0.6s;
}

/* Counter animation */
.counter {
    display: inline-block;
    transition: transform 0.3s ease;
}

.counter.counting {
    animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}