/* ==========================================================================
   LIGHT MODE DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-main: #f8fafc;           /* clean slate-50 background */
    --bg-card: #ffffff;           /* solid white for cards */
    
    --text-primary: #0f172a;      /* slate-900 for high-contrast titles */
    --text-secondary: #475569;    /* slate-600 for readable body text */
    --text-muted: #94a3b8;        /* slate-400 for dates and badges */
    
    --accent-purple: #7c3aed;     /* violet-600 */
    --accent-blue: #2563eb;       /* blue-600 */
    --accent-emerald: #059669;    /* emerald-600 for active badge */
    
    --gradient-purple-blue: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    
    --card-border: rgba(226, 232, 240, 0.8);      /* slate-200 light border */
    --card-border-hover: rgba(139, 92, 246, 0.3); /* violet border hover */
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.15s ease;
    
    /* Box Shadows */
    --shadow-default: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03), 0 10px 15px -3px rgba(99, 102, 241, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.08), 0 10px 10px -5px rgba(99, 102, 241, 0.03);
}

/* ==========================================================================
   RESET & GLOBAL BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Selection style */
::selection {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
}

/* ==========================================================================
   DECORATIVE PALE GRADIENT BACKDROPS (PREMIUM DEPTH)
   ========================================================================== */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   MOUSE TRACKING SPOTLIGHT (SUBTLE VIOLET LIGHT REFLECTION)
   ========================================================================== */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 30;
    transition: background 0.1s ease;
    background: radial-gradient(
        500px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
        rgba(139, 92, 246, 0.05),
        transparent 80%
    );
}

/* ==========================================================================
   FLOATING TOP HEADER NAVIGATION (CENTER ALIGNED)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: rgba(248, 250, 252, 0.75); /* slate-50 glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: background var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px -10px rgba(15, 23, 42, 0.06);
}

.nav-container {
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center; /* center navigation options */
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple-blue);
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

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

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   CENTERED CONTENT CONTAINER & SECTION FLOW
   ========================================================================== */
.main-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 90px 1.5rem 60px;
}

.content-section {
    padding: 80px 0 20px;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 2.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex-grow: 1;
    height: 1.5px;
    background-color: rgba(226, 232, 240, 0.8); /* slate-200 */
}

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
.hero-section {
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: rgba(5, 150, 105, 0.08); /* emerald soft bg */
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    width: max-content;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-emerald);
    animation: badgePulse 2s infinite;
}

.status-text {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.15;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 540px;
}

/* Social Buttons Row */
.social-row {
    display: flex;
    list-style: none;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
}

.social-btn:hover {
    color: var(--text-primary);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px rgba(139, 92, 246, 0.25);
}

/* ==========================================================================
   ABOUT TEXT DETAILS
   ========================================================================== */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.highlight-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1.5px solid #cbd5e1; /* slate-300 */
    transition: all var(--transition-fast);
}

.highlight-link:hover {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* ==========================================================================
   PROFESSIONAL EXPERIENCE TIMELINE CARDS
   ========================================================================== */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-card {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background-color: var(--bg-card);
    padding: 2rem;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-default);
}

/* Left Indicator Colors (emerald for active job, purple/blue for past jobs) */
.timeline-card.active-job {
    border-left: 4px solid var(--accent-emerald);
}

.timeline-card.past-job {
    border-left: 4px solid var(--accent-purple);
}

.timeline-card.interactive-card {
    cursor: pointer;
}

/* Cursor Glow Overlay inside cards */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(139, 92, 246, 0.03), transparent 60%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interactive-card:hover .card-glow {
    opacity: 1;
}

/* Card hover animation */
.interactive-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-hover);
}

.card-grid {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Timeline card dates left column */
.card-date-col {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.25rem;
}

.active-badge {
    color: var(--accent-emerald);
    background-color: rgba(5, 150, 105, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

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

@media (min-width: 640px) {
    .card-date-col {
        grid-column: span 2 / span 2;
    }
    .card-details-col {
        grid-column: span 6 / span 6;
    }
}

.card-heading {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.card-heading-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.company-text {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.company-name-plain {
    color: var(--text-primary);
}

.arrow-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.25rem;
    transform: translateY(1px);
    transition: transform var(--transition-smooth);
}

/* Card titles turn violet on hover */
.interactive-card:hover .company-text {
    color: var(--accent-purple);
}

.interactive-card:hover .arrow-icon {
    transform: translate(2px, -2px);
}

.card-description {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.card-bullets {
    margin-top: 0.75rem;
    margin-left: 1.25rem;
    list-style-type: disc;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-bullets li {
    margin-bottom: 0.65rem;
    line-height: 1.65;
}

.card-bullets li:last-child {
    margin-bottom: 0;
}

.card-bullets strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* Technology badges in cards */
.badge-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
}

.tech-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-purple);
    background-color: rgba(139, 92, 246, 0.06);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.05);
}

.timeline-card.active-job .tech-pill {
    color: var(--accent-emerald);
    background-color: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.05);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-container {
    text-align: center;
    padding: 2rem 0;
}

.contact-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    justify-content: center;
}

/* Say Hello Button (Gradient) */
.say-hello-btn {
    display: inline-block;
    padding: 0.75rem 2.25rem;
    background: var(--gradient-purple-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.25);
}

.say-hello-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(139, 92, 246, 0.4);
}

.say-hello-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 6px var(--accent-emerald);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
        box-shadow: 0 0 12px var(--accent-emerald);
    }
}

/* ==========================================================================
   RESPONSIVENESS BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .main-container {
        padding-top: 80px;
    }
    
    .hero-name {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }

    .timeline-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }

    .card-date-col {
        margin-bottom: 0.5rem;
    }
}
