/* ========================================= */
/* 1. RESET & VARIABLES                      */
/* ========================================= */

:root {
    /* Light Mode Defaults */
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #666666;
    
    --card-bg: #ffffff;
    --card-border: #e5e5e5;
    
    --tag-bg: #f3f4f6;
    --tag-text: #111111;
    
    --nav-bg: rgba(255, 255, 255, 0.8);
    
    /* Project Button Specifics (Light Mode) */
    --btn-project-bg: #111111;
    --btn-project-text: #ffffff;
    
    /* Hero Colors */
    --badge-available-bg: rgba(74, 222, 128, 0.1);
    --badge-available-text: #15803d;
    --badge-tech-bg: #f3f4f6;
    
    /* Accents */
    --primary-teal: #14b8a6;
    --primary-teal-dim: rgba(20, 184, 166, 0.1);
    --radius: 12px;
    
    /* Background Pattern */
    --grid-color: rgba(0, 0, 0, 0.05);
    --vignette: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}


body.dark-mode {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --card-bg: #0a0a0a;
    --card-border: #262626;
    
    /* Specific to Screenshot: Very dark pills */
    --tag-bg: #1A1A1A; 
    --tag-text: #e5e5e5;
    
    --nav-bg: rgba(5, 5, 5, 0.6);

    /* Project Button Specifics (Dark Mode - Match Screenshot) */
    --btn-project-bg: #ffffff; /* WHITE BUTTONS */
    --btn-project-text: #000000; /* BLACK TEXT */

    --badge-available-text: #4ade80;
    --badge-tech-bg: rgba(38, 38, 38, 0.6);
    
    --grid-color: rgba(255, 255, 255, 0.03); 
    --vignette: radial-gradient(circle at 50% 0%, rgba(5,5,5,0) 0%, #050505 90%);
}


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


body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    padding-top: 80px;
    padding-bottom: 60px; /* Reduced bottom padding */
    
    /* Grid Background */
    background-image: 
        var(--vignette),
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
    background-position: center top;
}


a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}


ul {
    list-style: none;
}


.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ========================================= */
/* 2. NAVBAR                                 */
/* ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-color);
    display: flex;
    justify-content: center;
}


.nav-content {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}


.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.nav-logo:hover { color: var(--text-primary); }


.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}


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


.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
}
.theme-toggle-btn i { width: 16px; height: 16px; }


/* ========================================= */
/* 3. HERO (Siddharth Style)                 */
/* ========================================= */

.hero { margin-bottom: 4rem; padding-top: 1rem; }

.hero-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }

.avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    object-fit: cover;
}

.hero-title-wrap { display: flex; flex-direction: column; justify-content: center; padding-top: 4px; }
.hero-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hero-name {
    font-size: 1.75rem; font-weight: 700;
    letter-spacing: -0.03em; color: var(--text-primary);
    margin: 0; line-height: 1.2;
}

.badge-available {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 99px;
    background: var(--badge-available-bg);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--badge-available-text);
    font-size: 0.7rem; font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-role {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem; margin-top: 4px;
}

.info-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px 0; margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; color: var(--text-secondary);
}
.info-item { display: flex; align-items: center; gap: 8px; }
.info-item i { width: 14px; height: 14px; opacity: 0.7; }

.bio {
    color: var(--text-secondary); margin-bottom: 24px;
    font-size: 0.95rem; line-height: 1.7;
}

.tech-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 6px; border-radius: 4px;
    background: var(--badge-tech-bg);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem; color: var(--text-primary);
    vertical-align: middle; cursor: default;
}
.tech-badge img { width: 14px; height: 14px; display: block; }

.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-primary); transition: all 0.2s;
}
.btn-primary:hover { border-color: var(--text-secondary); }
.btn-primary i { width: 14px; height: 14px; }

.divider { width: 1px; height: 20px; background: var(--card-border); margin: 0 4px; }

.btn-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary); transition: all 0.2s;
}
.btn-icon:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.btn-icon i { width: 16px; height: 16px; }


/* ========================================= */
/* 4. SECTIONS (General)                     */
/* ========================================= */

.section { margin-bottom: 3.5rem; }

h2 {
    font-size: 1rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 1rem;
    letter-spacing: -0.01em; text-transform: uppercase;
}

.about p {
    font-size: 0.9rem; color: var(--text-secondary);
    line-height: 1.6;
}
.about strong {
    color: var(--text-primary); font-weight: 500;
    text-decoration: underline; text-decoration-color: #333;
}


/* ========================================= */
/* 5. EXPERIENCE (Fixed Alignment)           */
/* ========================================= */

.experience-container {
    margin-bottom: 64px;
}

/* Wrapper for the line */
.experience-list {
    position: relative;
    padding-left: 20px; /* Space reserved for line */
    margin-top: 1rem;
}

/* The Continuous Line */
.experience-list::before {
    content: '';
    position: absolute;
    left: 4px; /* Center of the 9px dot (4.5px). 1px line centered. */
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--card-border);
    z-index: 0;
}

.exp-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px; /* Push content right of the line */
}
/* No border on individual items anymore */

.exp-item:last-child { margin-bottom: 0; }

/* The Dot */
.exp-dot {
    position: absolute;
    left: -20px; /* Align with the line (container padding is 20px) */
    top: 24px;   /* Align roughly with the card header/logo */
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary-teal);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
    z-index: 2;
    border: 2px solid var(--bg-color); /* Mask the line behind it */
}

.exp-card {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: all 0.2s;
}
.exp-card:hover {
    border-color: var(--primary-teal-dim);
}

.exp-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.exp-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: #333;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.exp-info { flex: 1; }

.exp-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.exp-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.exp-period {
    font-size: 0.75rem;
    color: var(--primary-teal);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.exp-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.exp-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.exp-highlights li::before {
    content: '•';
    color: var(--primary-teal);
    margin-top: 0px;
    font-weight: bold;
}


/* ========================================= */
/* 6. SKILLS (Clean Pills - No Grid)         */
/* ========================================= */

.skills-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.skill-tag {
    font-size: 0.7rem; font-weight: 600;
    padding: 4px 12px; border-radius: 4px;
    background: var(--tag-bg); color: var(--tag-text);
    border: 1px solid transparent;
    cursor: default; transition: transform 0.1s;
}
.skill-tag:hover { transform: translateY(-1px); }


/* ========================================= */
/* 7. PROJECTS (REFINED)                     */
/* ========================================= */

.projects-header { text-align: center; margin-bottom: 3rem; }

/* The white pill badge */
.project-badge {
    background: var(--btn-project-bg);
    color: var(--btn-project-text);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.projects-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: none; 
    letter-spacing: -0.02em;
}

.projects-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 16px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px; /* Tight padding */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s;
}
.project-card:hover { border-color: var(--text-secondary); }

.project-card h3 {
    font-size: 0.95rem; /* Smaller heading */
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

/* Tech Pills */
.card-tech {
    display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px;
}
.card-tech span {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-weight: 600;
}

/* TINY BUTTONS IMPLEMENTATION */
.card-actions { display: flex; gap: 6px; }

.btn-xs {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.6rem; /* ULTRA SMALL FONT */
    padding: 2px 6px; /* ULTRA TIGHT PADDING */
    border-radius: 4px;
    background: var(--btn-project-bg);
    color: var(--btn-project-text);
    border: none;
    font-weight: 600;
    transition: opacity 0.2s;
    letter-spacing: 0.01em;
}
.btn-xs:hover { opacity: 0.85; }
.btn-xs i { font-size: 9px; } /* TINY ICON */


/* ========================================= */
/* 8. TIMELINE (Hackathons - Fixed Center)   */
/* ========================================= */

.timeline {
    position: relative;
    margin-top: 2rem;
    /* Removed padding-left to ensure correct alignment */
}

/* The Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 23.5px; /* 48px/2 = 24px. Minus 0.5px to perfectly center the 1px line */
    top: 0;
    bottom: 0; /* Spans full height */
    width: 1px;
    background: var(--card-border);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 24px; /* Space between logo and text */
    margin-bottom: 48px; /* Spacing between events */
    position: relative;
}
/* Ensure container height fits exactly to the last item */
.timeline-item:last-child { margin-bottom: 0; }

/* The Logo Circle */
.timeline-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-color); /* Matches bg to mask the line behind it */
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Sit ABOVE the line */
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--bg-color); /* Creates a visual "gap" around the logo */
}

.timeline-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* The Content Side */
.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 2px; /* Visual alignment with top of logo */
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
    display: block;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.timeline-loc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ========================================= */
/* 9. CONTRIBUTIONS                          */
/* ========================================= */

.contributions {
    margin-bottom: 64px;
}

.contrib-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: color 0.2s;
}
.contrib-link:hover { color: var(--text-primary); }

.contrib-container {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
}

.contrib-image {
    width: 100%;
    min-width: 600px;
    display: block;
}

.contrib-footer {
    margin-top: 10px;
    text-align: right;
}


/* ========================================= */
/* 10. NEW FOOTER (Exact Screenshot Replica) */
/* ========================================= */

/* Container for Quote and Bottom Bar */
.quote-section {
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.quote-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centered as requested */
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

.quote-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.quote-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Bottom Bar */
.bottom-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-left span {
    opacity: 0.8;
}

.footer-center {
    display: flex;
    gap: 24px;
}
.footer-center a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.footer-center a:hover {
    color: var(--text-primary);
}

.footer-right {
    display: flex;
    gap: 16px;
}
.footer-right a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-right a:hover {
    color: var(--text-primary);
}


/* ========================================= */
/* 11. RESPONSIVE                            */
/* ========================================= */

@media (max-width: 600px) {
    .hero-name { font-size: 1.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .actions { flex-wrap: wrap; }
    .contrib-container { padding: 10px; }
    
    .bottom-footer { flex-direction: column; gap: 16px; }
}