/* ============================================
   Apple-Inspired Design System
   ============================================ */

:root {
    /* Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: #d2d2d7;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #161617;
    --bg-tertiary: #1d1d1f;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #2997ff;
    --accent-hover: #409cff;
    --border: #424245;
    --card-bg: #1d1d1f;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .site-header {
    background: rgba(29, 29, 31, 0.72);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 22px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, filter 220ms ease;
    /* Staggered entrance + gentle float + pulsating */
    animation: toolEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) both, toolFloat 6s ease-in-out infinite, toolPulse 3s ease-in-out infinite;
    animation-delay: 0s, 0s, 0s;
    will-change: transform, box-shadow, filter;
}

/* Desync float phase per badge and stagger entrance + pulsating */
.hero-tools .tool-icon:nth-child(1) { animation-delay: 0s, 0s, 0s; } /* Xcode */
.hero-tools .tool-icon:nth-child(2) { animation-delay: 120ms, 0.8s, 1s; } /* Swift */
.hero-tools .tool-icon:nth-child(3) { animation-delay: 240ms, 1.6s, 2s; } /* SwiftUI */

.tool-icon:hover {
    transform: translateY(-3px) scale(1.05) rotate(-1deg);
    box-shadow: none;
    filter: saturate(1.1);
}

.tool-icon:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes toolEnter {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
        filter: saturate(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: saturate(1);
    }
}

@keyframes toolFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes toolPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.1);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
        transform: scale(1);
    }
}

/* Dark theme tool icon pulsating */
[data-theme="dark"] .tool-icon {
    animation: toolEnter 600ms cubic-bezier(0.22, 1, 0.36, 1) both, toolFloat 6s ease-in-out infinite, toolPulseDark 3s ease-in-out infinite;
}

@keyframes toolPulseDark {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(41, 151, 255, 0.15);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 151, 255, 0);
        transform: scale(1);
    }
}

.tool-icon:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tool-icon { animation: none !important; transition: none; }
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.availability-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0a5c2a;
    background: #e6f7ed;
    border: 1px solid #bfead1;
    animation: pulse-green 2s ease-in-out infinite;
    position: relative;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        transform: scale(1);
    }
}

/* Dark theme pulsating effect */
[data-theme="dark"] .availability-badge {
    color: #10b981;
    background: #064e3b;
    border: 1px solid #065f46;
    animation: pulse-green-dark 2s ease-in-out infinite;
}

@keyframes pulse-green-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(1);
    }
}

.hero-tagline {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-tertiary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ============================================
   Tabs - iOS 26 Glass Effect
   ============================================ */

.tabs-container {
    position: sticky;
    top: 48px;
    z-index: 100;
    padding: 12px 0;
    background: transparent;
    overflow: hidden;
}

/* iOS 26 Liquid Glass Effect */
.tabs-container::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Liquid Glass translucency */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.70) 100%
    );
    /* Enhanced blur and saturation for glass effect */
    backdrop-filter: blur(20px) saturate(200%) contrast(120%) brightness(105%);
    -webkit-backdrop-filter: blur(20px) saturate(200%) contrast(120%) brightness(105%);
    /* Subtle border with glass reflection */
    border-top: 0.5px solid rgba(255, 255, 255, 0.6);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    /* Layered shadows for depth and fluidity */
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
        0 -1px 0 0 rgba(255, 255, 255, 0.3) inset,
        0 2px 8px 0 rgba(0, 0, 0, 0.03),
        0 8px 24px 0 rgba(0, 0, 0, 0.06);
}

/* Liquid Glass shimmer effect on scroll */
.tabs-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    animation: liquidShimmer 8s ease-in-out infinite;
}

@keyframes liquidShimmer {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%) skewX(-15deg);
    }
    50% {
        opacity: 0.3;
        transform: translateX(100%) skewX(-15deg);
    }
}

[data-theme="dark"] .tabs-container::before {
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 22, 0.85) 0%,
        rgba(20, 20, 22, 0.75) 50%,
        rgba(20, 20, 22, 0.70) 100%
    );
    backdrop-filter: blur(20px) saturate(200%) contrast(110%) brightness(95%);
    -webkit-backdrop-filter: blur(20px) saturate(200%) contrast(110%) brightness(95%);
    border-top: 0.5px solid rgba(255, 255, 255, 0.15);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
        0 -1px 0 0 rgba(255, 255, 255, 0.04) inset,
        0 2px 8px 0 rgba(0, 0, 0, 0.4),
        0 8px 24px 0 rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .tabs-container::after {
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 100%
    );
}

.tabs {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

.tabs::-webkit-scrollbar {
    display: none;
}

/* Sliding selection indicator */
.tabs::after {
    content: '';
    position: absolute;
    height: calc(100% - 0px);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(250, 250, 252, 0.90) 50%,
        rgba(245, 245, 247, 0.85) 100%
    );
    border-radius: 10px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.8);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04);
    border-left: 0.5px solid rgba(255, 255, 255, 0.3);
    border-right: 0.5px solid rgba(0, 0, 0, 0.02);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
        0 -1px 0 0 rgba(255, 255, 255, 0.4) inset,
        0 3px 10px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.tabs.has-active::after {
    opacity: 1;
}

[data-theme="dark"] .tabs::after {
    background: linear-gradient(
        to bottom,
        rgba(66, 66, 69, 0.95) 0%,
        rgba(58, 58, 60, 0.90) 50%,
        rgba(50, 50, 52, 0.85) 100%
    );
    border-top: 0.5px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.3);
    border-left: 0.5px solid rgba(255, 255, 255, 0.1);
    border-right: 0.5px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.12) inset,
        0 -1px 0 0 rgba(255, 255, 255, 0.08) inset,
        0 3px 10px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.4);
}

.tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
    z-index: 1;
}

/* Liquid Glass hover effect */
.tab:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.tab:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4) 0%,
        transparent 70%
    );
    border-radius: 10px;
    opacity: 0.5;
    pointer-events: none;
}

[data-theme="dark"] .tab:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tab:hover::after {
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
}

/* Active tab - Let sliding indicator handle background */
.tab.active {
    color: var(--text-primary);
    font-weight: 600;
    transform: translateY(0);
}

.tab.active::after {
    display: none;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 22px 120px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.section-text {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 32px;
}

/* ============================================
   Skills Grid
   ============================================ */

/* Experience Summary Cards */
.experience-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.summary-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

[data-theme="dark"] .summary-card {
    box-shadow: 0 4px 16px rgba(41, 151, 255, 0.3);
}

[data-theme="dark"] .summary-card:hover {
    box-shadow: 0 8px 24px rgba(41, 151, 255, 0.4);
}

.summary-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.education-section {
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.education-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.education-section p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================
   Products Grid
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 16px;
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 8px;
}

.product-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-type {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.product-highlights {
    list-style: none;
    margin-bottom: 20px;
}

.product-highlights li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.product-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.product-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.product-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-link:hover {
    text-decoration: underline;
}

/* ============================================
   Apps Grid - App Store Inspired
   ============================================ */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 32px 24px;
    margin-top: 40px;
}

.app-card {
    background: transparent;
    border: none;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.app-card:hover .app-icon {
    transform: scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 22%;
    background: var(--bg-secondary);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-theme="dark"] .app-icon {
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
}

.app-body {
    padding: 0;
}

.app-card h3 {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-category {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.app-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.app-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-price {
    margin-left: auto;
    font-weight: 500;
    color: var(--text-secondary);
}

.app-description {
    display: none;
}

.app-link {
    display: none;
}

/* ============================================
   Timeline
   ============================================ */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.experience-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.experience-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: var(--bg-secondary);
    padding: 8px;
}

.experience-header h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-name {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.date-range {
    font-size: 15px;
    color: var(--text-tertiary);
}

.experience-list {
    list-style: none;
}

.experience-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.experience-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Experience Enhancements */
.location {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.experience-note {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.experience-more {
    margin-top: 16px;
}

.experience-more summary {
    cursor: pointer;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    padding: 8px 0;
    user-select: none;
    transition: color 0.2s ease;
}

.experience-more summary:hover {
    color: var(--accent-hover);
}

.experience-more .experience-list {
    margin-top: 12px;
}

.experience-achievements {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.experience-achievements h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.achievement-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
    transition: all 0.3s ease;
}

[data-theme="dark"] .achievement-badge {
    box-shadow: 0 2px 8px rgba(41, 151, 255, 0.3);
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

[data-theme="dark"] .achievement-badge:hover {
    box-shadow: 0 4px 12px rgba(41, 151, 255, 0.4);
}

/* ============================================
   Contribution Graph
   ============================================ */

.contribution-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.contribution-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.contribution-count {
    font-size: 14px;
    color: var(--text-secondary);
}

#totalContributions {
    font-weight: 600;
    color: var(--accent);
}

.contribution-graph {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    margin: 16px 0;
    overflow-x: auto;
    padding: 8px 0;
}

.contribution-day {
    width: 100%;
    aspect-ratio: 1;
    min-width: 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.contribution-day:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 0 1px var(--border);
}

/* Contribution levels */
.contribution-day.level-0 {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.contribution-day.level-1 {
    background: #0e4429;
}

.contribution-day.level-2 {
    background: #006d32;
}

.contribution-day.level-3 {
    background: #26a641;
}

.contribution-day.level-4 {
    background: #39d353;
}

[data-theme="dark"] .contribution-day.level-1 {
    background: #0e4429;
}

[data-theme="dark"] .contribution-day.level-2 {
    background: #006d32;
}

[data-theme="dark"] .contribution-day.level-3 {
    background: #26a641;
}

[data-theme="dark"] .contribution-day.level-4 {
    background: #39d353;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
}

.legend-scale {
    display: flex;
    gap: 3px;
}

.legend-box {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-box.level-0 {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.legend-box.level-1 {
    background: #0e4429;
}

.legend-box.level-2 {
    background: #006d32;
}

.legend-box.level-3 {
    background: #26a641;
}

.legend-box.level-4 {
    background: #39d353;
}

/* Responsive */
@media (max-width: 768px) {
    .contribution-graph {
        grid-template-columns: repeat(53, minmax(8px, 1fr));
        gap: 2px;
    }
    
    .contribution-day {
        min-width: 8px;
    }
    
    .contribution-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   GitHub Profile
   ============================================ */

.github-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-md);
}

.profile-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-name {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.contribution-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.contribution-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contribution-card h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contribution-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   Platform Cards
   ============================================ */

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.platform-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.platform-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--accent);
    background: transparent;
    border-radius: 14px;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.platform-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

.platform-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
}

.platform-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.platform-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.platform-link:hover {
    text-decoration: underline;
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
}

.contact-card a:hover {
    text-decoration: underline;
}

.resume-download {
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 48px;
    text-align: center;
    margin-top: 60px;
}

.resume-download h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.resume-download p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 22px;
    text-align: center;
}

.site-footer p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ============================================
   Utilities
   ============================================ */

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 22px;
    }
    
    .main-content {
        padding: 40px 22px 80px;
    }
    
    .github-profile {
        grid-template-columns: 1fr;
    }
    
    .github-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .skills-grid,
    .products-grid,
    .platform-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .github-stats {
        grid-template-columns: 1fr;
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.services-cta {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

/* Enhanced Recommendations Section */
.recommendations-container {
    margin-top: 24px;
}

.recommendations-grid {
    columns: 3;
    column-gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1200px) {
    .recommendations-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .recommendations-grid {
        columns: 1;
    }
}

.recommendation-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.recommendation-card.featured {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 113, 227, 0.05) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.1);
}

[data-theme="dark"] .recommendation-card.featured {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(41, 151, 255, 0.1) 100%);
    box-shadow: 0 4px 20px rgba(41, 151, 255, 0.2);
}

/* Add variety to different recommendation cards */
.recommendation-card:nth-child(3n+1) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(34, 197, 94, 0.03) 100%);
}

.recommendation-card:nth-child(3n+2) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(168, 85, 247, 0.03) 100%);
}

.recommendation-card:nth-child(3n+3) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(245, 158, 11, 0.03) 100%);
}

[data-theme="dark"] .recommendation-card:nth-child(3n+1) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(34, 197, 94, 0.08) 100%);
}

[data-theme="dark"] .recommendation-card:nth-child(3n+2) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(168, 85, 247, 0.08) 100%);
}

[data-theme="dark"] .recommendation-card:nth-child(3n+3) {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(245, 158, 11, 0.08) 100%);
}

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

.recommendation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

[data-theme="dark"] .recommendation-avatar {
    box-shadow: 0 2px 8px rgba(41, 151, 255, 0.3);
}

.recommendation-meta {
    flex: 1;
}

.recommendation-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recommendation-position {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.recommendation-relationship {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.3;
    font-weight: 400;
}

.recommendation-card .quote {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    max-height: none;
    overflow: visible;
}

.recommendation-card .quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 32px;
    color: var(--accent);
    font-family: serif;
    line-height: 1;
}

.recommendation-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.recommendation-card .link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.recommendation-card .link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.recommendations-cta {
    text-align: center;
    margin-top: 32px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recommendations-grid {
        columns: 1;
        column-gap: 16px;
    }
    
    .recommendation-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .recommendation-header {
        gap: 12px;
    }
    
    .recommendation-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .recommendation-card .quote {
        font-size: 15px;
        padding-left: 16px;
    }
    
    .recommendation-card .quote::before {
        font-size: 24px;
        top: -4px;
    }
}

/* Medium grid */
.medium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.medium-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.medium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.medium-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.medium-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.medium-card .meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.medium-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .services-cta { flex-direction: column; }
}
