/* CSS Variables for Design System */
:root {
    --background: hsl(220, 27%, 98%);
    --foreground: hsl(215, 20%, 17%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 20%, 17%);
    --primary: hsl(215, 84%, 55%);
    --primary-foreground: hsl(220, 27%, 98%);
    --secondary: hsl(215, 20%, 95%);
    --secondary-foreground: hsl(215, 20%, 17%);
    --muted: hsl(215, 20%, 95%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(195, 84%, 55%);
    --accent-foreground: hsl(220, 27%, 98%);
    --border: hsl(215, 20%, 90%);
    --input: hsl(215, 20%, 90%);
    --ring: hsl(215, 84%, 55%);

    /* Professional gradients */
    --gradient-primary: linear-gradient(135deg, hsl(215, 84%, 55%), hsl(195, 84%, 55%));
    --gradient-secondary: linear-gradient(135deg, hsl(215, 20%, 95%), hsl(220, 27%, 98%));
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%, 0.8), hsl(215, 20%, 95%, 0.4));

    /* Professional shadows */
    --shadow-sm: 0 2px 4px hsl(215, 20%, 17%, 0.06);
    --shadow-md: 0 4px 12px hsl(215, 20%, 17%, 0.08);
    --shadow-lg: 0 8px 30px hsl(215, 20%, 17%, 0.12);
    --shadow-glow: 0 0 40px hsl(215, 84%, 55%, 0.15);

    --radius: 0.5rem;
}

.dark {
    --background: hsl(215, 28%, 8%);
    --foreground: hsl(215, 20%, 95%);
    --card: hsl(215, 25%, 12%);
    --card-foreground: hsl(215, 20%, 95%);
    --primary: hsl(215, 84%, 65%);
    --primary-foreground: hsl(215, 28%, 8%);
    --secondary: hsl(215, 20%, 16%);
    --secondary-foreground: hsl(215, 20%, 95%);
    --muted: hsl(215, 20%, 16%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(195, 84%, 65%);
    --accent-foreground: hsl(215, 28%, 8%);
    --border: hsl(215, 20%, 20%);
    --input: hsl(215, 20%, 20%);
    --ring: hsl(215, 84%, 65%);

    /* Dark mode gradients */
    --gradient-primary: linear-gradient(135deg, hsl(215, 84%, 65%), hsl(195, 84%, 65%));
    --gradient-secondary: linear-gradient(135deg, hsl(215, 20%, 16%), hsl(215, 25%, 12%));
    --gradient-card: linear-gradient(145deg, hsl(215, 25%, 12%, 0.8), hsl(215, 20%, 16%, 0.4));

    /* Dark mode shadows */
    --shadow-sm: 0 2px 4px hsl(215, 28%, 8%, 0.5);
    --shadow-md: 0 4px 12px hsl(215, 28%, 8%, 0.6);
    --shadow-lg: 0 8px 30px hsl(215, 28%, 8%, 0.8);
    --shadow-glow: 0 0 40px hsl(215, 84%, 65%, 0.25);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid hsl(215, 20%, 92%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.dark .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: hsl(215, 20%, 18%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.9;
    transform: translateX(1px);
}

.brand:hover .brand-initial {
    transform: scale(1.05);
    box-shadow: 0 2px 8px hsl(215, 84%, 55%, 0.3);
}

.brand:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.brand-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px hsl(215, 84%, 55%, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid hsl(215, 84%, 55%, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1875rem;
    color: var(--foreground);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.header-right {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: 1.5rem;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.nav-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-foreground);
    background: var(--primary);
    border-radius: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px hsl(215, 84%, 55%, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-resume:hover {
    background: hsl(215, 84%, 48%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsl(215, 84%, 55%, 0.4);
}

.nav-resume:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px hsl(215, 84%, 55%, 0.2);
}

.nav-resume:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: center;
}

.nav-link:hover {
    color: var(--foreground);
    background: rgba(15, 23, 42, 0.04);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Header Responsive Styles */
@media (max-width: 768px) {
    .site-header .container {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
        gap: 1rem;
    }
    
    .brand {
        gap: 0.625rem;
    }
    
    .brand-initial {
        width: 2.5rem;
        height: 2.5rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        font-size: 0.875rem;
    }
    
    .brand-name {
        font-size: 1.0625rem;
    }
    
    .header-right {
        gap: 0.875rem;
    }
    
    .nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }
    
    .nav-resume {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .nav-resume {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Subtle animated background for hero and contact sections */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 18s ease infinite;
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.float-1 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, 0.1);
}

.float-2 {
    bottom: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 255, 255, 0.05);
    animation-delay: 1s;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.profile-image-container {
    position: relative;
}

.profile-image-wrapper {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: var(--gradient-secondary);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.profile-image-wrapper:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.5);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: hsl(48, 100%, 50%);
    color: #111;
    padding: 0.5rem 1.125rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 16px hsl(48, 100%, 50%, 0.5), 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.hero-text {
    flex: 1;
    text-align: center;
    max-width: 50rem;
}

.hero-header {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, 'Cascadia Code', Consolas, Monaco, 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
    font-variant-ligatures: none;
    text-rendering: geometricPrecision;
}

.subtitle::after {
    content: '▌';
    font-family: inherit;
    animation: cursorBlink 1s step-end infinite;
    margin-left: 1px;
    opacity: 1;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.description {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 1.25rem;
}

.hero-stat {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-bullets {
    list-style: none;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.97rem;
}

.hero-bullets li::before {
    content: '•';
    position: absolute;
    left: 0.35rem;
    top: 0;
    font-size: 1.1rem;
    opacity: 0.7;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.skill-badge {
    padding: 0.5rem 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.98);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.btn-primary {
    background: #fff;
    color: hsl(215, 25%, 18%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.scroll-mouse {
    width: 1.625rem;
    height: 2.75rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.375rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.5rem;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.scroll-dot {
    width: 0.25rem;
    height: 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    border-radius: 0.125rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(3px); }
}

/* Timeline Section – experience highlight */
.timeline-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eef9 50%, #f5f7fa 100%);
}

/* About Section – professional colors, readable, cohesive */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(160deg, hsl(218, 35%, 97%) 0%, hsl(215, 40%, 95%) 45%, hsl(212, 35%, 94%) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 45% at 50% 0%, hsl(215, 84%, 55%, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.about-section .section-header {
    margin-bottom: 3.5rem;
    position: relative;
}

.about-section .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.about-section .section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.75rem auto 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.about-section .section-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: hsl(215, 25%, 38%);
    max-width: 36rem;
    margin: 0 auto;
    font-weight: 500;
}

.about-content {
    max-width: 52rem;
    margin: 0 auto;
    position: relative;
}

.about-section .about-content.card {
    position: relative;
    padding: 2.5rem 3rem;
    background: hsl(0, 0%, 100%);
    border-radius: 1rem;
    box-shadow: var(--shadow-md), 0 0 0 1px hsl(215, 25%, 91%);
    border: 1px solid hsl(215, 30%, 90%);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-section .about-content.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 1rem 0 0 1rem;
    transition: width 0.2s ease;
}

.about-section .about-content.card:hover {
    transform: none;
    box-shadow: var(--shadow-lg), 0 0 0 1px hsl(215, 84%, 55%, 0.2);
    border-color: hsl(215, 84%, 55%, 0.35);
}

.about-section .about-content.card:hover::before {
    width: 5px;
}

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: hsl(215, 22%, 28%);
    letter-spacing: 0.01em;
    font-weight: 400;
}

.about-content p:first-of-type {
    margin-top: 0;
}

.about-content p + p {
    margin-top: 1.375rem;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 40rem;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 0 1rem;
}

/* Vertical line – center aligns with dots (experience spine) */
.timeline::before {
    content: '';
    position: absolute;
    left: 1.125rem;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 4rem;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Horizontal connector from dot to card (mobile: dot left, card right) */
.timeline-item::after {
    content: '';
    position: absolute;
    top: calc(1.5rem + 0.75rem - 1px);
    left: 1.875rem;
    width: 2.125rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), hsl(215, 84%, 65%));
    border-radius: 1px;
    z-index: 1;
    pointer-events: none;
}

/* Blue dot on the line – centered on vertical line */
.timeline-marker {
    position: absolute;
    left: 1.125rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    transform: translateX(-50%);
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary), var(--shadow-md);
    z-index: 2;
}

/* Timeline cards – elevated, accent strip, clear hierarchy */
.timeline-content {
    position: relative;
    padding: 1.5rem 1.75rem;
    background: var(--card);
    border-radius: 1rem;
    box-shadow: var(--shadow-md), 0 0 0 1px hsl(215, 20%, 92%);
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0.9;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg), 0 0 0 1px hsl(215, 84%, 55%, 0.25);
    border-color: hsl(215, 84%, 55%, 0.4);
    transform: translateY(-2px);
}

.timeline-content:hover::before {
    opacity: 1;
    width: 5px;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.timeline-header {
    margin-bottom: 1.125rem;
    padding-left: 0.25rem;
}

.timeline-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.625rem;
}

.company {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
}

.location {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.company-info .location::before {
    content: '·';
    margin-right: 0.5rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.period {
    display: inline-block;
    background: linear-gradient(135deg, hsl(215, 84%, 55%, 0.12), hsl(195, 84%, 55%, 0.08));
    color: var(--primary);
    padding: 0.35rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid hsl(215, 84%, 55%, 0.2);
}

.job-description {
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    font-size: 0.9375rem;
    padding-left: 0.25rem;
}

.achievements {
    margin-bottom: 1.25rem;
}

.achievements h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    color: var(--muted-foreground);
}

.achievements ul {
    list-style: none;
    margin-bottom: 0;
}

.achievements li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.achievements li:last-child {
    margin-bottom: 0;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-content .tech-tag {
    padding: 0.35rem 0.875rem;
    background: hsl(215, 20%, 96%);
    color: var(--foreground);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.timeline-content .tech-tag:hover {
    background: hsl(215, 84%, 55%, 0.08);
    border-color: hsl(215, 84%, 55%, 0.25);
    color: var(--primary);
}

/* Skills Section */
.skills-section {
    padding: 6rem 0;
    background: var(--secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category .category-header,
.specialization .specialization-header,
.certification .certification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-icon,
.specialization-icon,
.certification-icon {
    color: var(--primary);
}

.category-header h3,
.specialization-header h3,
.certification-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
    color: var(--foreground);
}

.skill-experience {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.skill-bar {
    height: 0.5rem;
    background: var(--border);
    border-radius: 0.25rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

.specialization p,
.certification p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.certification-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cert-badge {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientShift 22s ease infinite;
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.float-3 {
    top: -5rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: 0.5s;
}

.float-4 {
    bottom: -5rem;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.05);
    animation-delay: 1.5s;
}

.contact-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 10;
}

.contact-header .section-title {
    color: var(--primary-foreground);
    margin-bottom: 1rem;
}

.contact-header .section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.75rem auto 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.contact-header .section-description {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.65;
    max-width: 48rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 56rem;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
}

.contact-card:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-method-icon {
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
}

.contact-method-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.contact-method-info p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.98);
    font-size: 1rem;
}

.contact-method-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    display: block;
}

.quick-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.quick-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-action-icon {
    color: var(--accent);
}

.quick-action h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-foreground);
}

.quick-action p {
    opacity: 0.9;
    line-height: 1.6;
}

.quick-action-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.status-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    grid-column: 1 / -1;
}

.status-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #02f323;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.status-card p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.status-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Social media icon row – circular links */
.social-icons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon-link:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.social-icon-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.site-footer {
    text-align: center;
    padding: 2.5rem 0 1rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer p {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-cta {
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-cta h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.contact-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Responsive Design */
@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .skills-badges,
    .contact-info {
        justify-content: flex-start;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 4.5rem;
    }
    
    .subtitle {
        font-size: 2rem;
    }
    
    .hero-content {
        gap: 5rem;
    }
}

/* Desktop: alternating timeline, vertical line down center connecting cards */
@media (min-width: 768px) {
    .timeline {
        max-width: 72rem;
        padding: 0 1rem 1rem;
    }

    /* Center line – experience spine connecting all cards */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        background: linear-gradient(180deg, var(--primary), var(--accent));
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 3rem;
    }

    /* Dot on center line: odd = at item’s right edge, even = at item’s left edge */
    .timeline-marker {
        top: 1.5rem;
        width: 1.25rem;
        height: 1.25rem;
        border-width: 3px;
    }

    .timeline-item:nth-child(odd) .timeline-marker {
        left: auto;
        right: 0;
        transform: translateX(50%);
    }

    .timeline-item:nth-child(even) .timeline-marker {
        left: 0;
        transform: translateX(-50%);
    }

    /* Connector: odd = from card right to dot; even = from dot to card left */
    .timeline-item::after {
        top: calc(1.5rem + 0.625rem - 1px);
        left: calc(100% - 3rem);
        width: calc(3rem - 0.625rem);
    }

    .timeline-item:nth-child(even)::after {
        left: 0.625rem;
        background: linear-gradient(90deg, hsl(215, 84%, 65%), var(--primary));
    }

    /* Odd: card on left, connects to line on right */
    .timeline-item:nth-child(odd) {
        padding-right: 3rem;
        text-align: right;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    /* Even: card on right, connects to line on left */
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 3rem;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}