/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Professional Data Science Theme */
:root {
    /* Primary Colors - Deep Professional Blues */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;

    /* Accent Colors */
    --accent-teal: #0d9488;
    --accent-purple: #7c3aed;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Fallback font metrics to match Inter for reduced CLS */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-white);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-text {
    color: var(--primary-blue-light);
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--gray-50) 100%);
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(13, 148, 136, 0.03) 100%);
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-intro {
    margin-bottom: var(--spacing-2xl);
}

.hero-greeting {
    font-size: 1.125rem;
    color: var(--accent-teal);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 1.875rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xl);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--gray-50);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-teal);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-xl);
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

/* Capabilities Section */
.capabilities {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
    position: relative;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 50%, transparent 100%);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.capability-item {
    position: relative;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.capability-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.capability-item:hover::before {
    transform: scaleX(1);
}

.capability-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.capability-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--spacing-lg);
    position: relative;
}

.capability-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    border-radius: var(--radius-lg);
    opacity: 0.1;
    z-index: -1;
}

.capability-icon i {
    font-size: 2rem;
    color: white;
}

.capability-item h3 {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.capability-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background: white;
}

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

.impact-item {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.impact-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.impact-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 140px 0 var(--spacing-3xl);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 50%, var(--gray-50) 100%);
    text-align: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    color: var(--gray-900);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.highlight-item span {
    color: #4a5568;
    font-weight: 500;
}

/* CV Introduction Section */
.cv-intro {
    padding: 80px 0 60px;
    padding-top: 152px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.cv-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.cv-profile-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.cv-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 4px solid white;
}

.cv-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0;
}

/* CV Navigation */
.cv-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cv-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    min-width: 120px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.cv-nav-link.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.cv-nav-link.active i {
    color: white;
}

.cv-nav-link i {
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.cv-nav-link span {
    font-size: 0.9rem;
    font-weight: 600;
}

.cv-nav-link:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.cv-nav-link:hover i {
    color: white;
    transform: scale(1.1);
}

.cv-nav-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.cv-nav-download i {
    color: white;
}

.cv-nav-download:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px) scale(1.05);
}

/* CV Content Wrapper */
.cv-content-wrapper {
    min-height: 400px;
    background: white;
}

.cv-content {
    opacity: 1;
    transition: opacity 0.3s ease;
    min-height: 300px;
}

.cv-section-active {
    animation: fadeInUp 0.5s ease;
}

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

/* Hide section templates */
.cv-section-template {
    display: none !important;
}

/* Responsive CV Navigation */
@media (max-width: 768px) {
    .cv-profile-image {
        width: 120px;
        height: 120px;
        border: 3px solid white;
    }

    .cv-intro-text {
        font-size: 1rem;
    }

    .cv-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .cv-nav-link {
        padding: 18px 16px;
        min-width: auto;
        width: 100%;
    }

    .cv-nav-download {
        grid-column: 1 / -1;
    }

    .cv-nav-link i {
        font-size: 1.4rem;
    }

    .cv-nav-link span {
        font-size: 0.9rem;
    }

    /* Skills Grid Mobile */
    .skills-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Timeline Mobile Adjustments */
    .timeline-duration-bar {
        opacity: 0.2;
        width: 3px;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .timeline-date-badge,
    .timeline-location {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .timeline-duration-text {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .timeline-continuation {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    /* Position Progression Mobile Adjustments */
    .position-progression {
        gap: 16px;
    }

    .position-block {
        padding-left: 16px;
        border-left-width: 2px;
    }

    .position-block:hover {
        padding-left: 16px;
    }

    .position-title {
        font-size: 1rem;
    }

    .position-dates {
        font-size: 0.8rem;
        padding: 3px 8px;
    }

    /* Disable hover effects on mobile */
    .timeline-item:hover {
        transform: none;
    }

    .timeline-item:hover .timeline-duration-bar {
        opacity: 0.2;
        box-shadow: none;
    }

    .timeline-item:hover .timeline-marker {
        transform: none;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    }

    .timeline-item:hover .timeline-date-badge,
    .timeline-item:hover .timeline-location {
        background: rgba(102, 126, 234, 0.08);
        border-color: rgba(102, 126, 234, 0.15);
    }
}

/* Legacy About Section */
.about {
    padding: 100px 0;
    padding-top: 172px;
    background: white;
    min-height: 600px;
    contain: layout style paint;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.7;
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expertise-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.expertise-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.expertise-item p {
    color: #4a5568;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    min-height: 280px;
}

.about-side {
    display: grid;
    gap: 30px;
}

.about-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    min-height: 300px;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 20px 0 10px;
}

.about-list {
    list-style: none;
    color: #4a5568;
}

.about-list li {
    padding-left: 28px;
    position: relative;
    margin: 10px 0;
}

.about-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    font-weight: 700;
}

/* Timeline */
.timeline {
    padding: 100px 0;
    background: #f8fafc;
    contain: layout style paint;
}

.timeline-list {
    position: relative;
    margin-left: 20px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
    min-height: 80px;
    transition: transform 0.3s ease;
    cursor: default;
}

.timeline-marker {
    position: absolute;
    left: 5px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.timeline-content ul {
    color: #4a5568;
    padding-left: 18px;
}

.timeline-content li {
    margin: 6px 0;
}

/* Enhanced Timeline Styles */
.timeline-duration-bar {
    position: absolute;
    left: -15px;
    top: 6px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0.3;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.timeline-date-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.08);
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.timeline-location {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.08);
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.timeline-continuation {
    display: block;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 6px;
    opacity: 0.8;
}

/* Position Progression Styles */
.position-progression {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.position-block {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
}

.position-block:first-child {
    border-left-color: rgba(102, 126, 234, 0.4);
}

.position-block:hover {
    border-left-color: #667eea;
    padding-left: 24px;
}

.position-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 6px 0;
}

.position-dates {
    display: inline-block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.06);
    border-radius: 4px;
}

.position-block ul {
    margin-top: 10px;
}

/* Position Block Interactive Layout */
.position-block.timeline-interactive {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.position-block.timeline-interactive .timeline-main {
    width: 100%;
}

.position-block.timeline-interactive .timeline-skills {
    width: 100%;
}

.timeline-duration-text {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(118, 75, 162, 0.08);
    color: #764ba2;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
    margin-top: 6px;
}

.timeline-item:hover {
    transform: translateY(-3px);
}

.timeline-item:hover .timeline-duration-bar {
    opacity: 0.8;
    box-shadow: 0 0 8px 1px rgba(102, 126, 234, 0.4);
}

.timeline-item:hover .timeline-duration-text {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.25);
}

.timeline-item:hover .timeline-date-badge,
.timeline-item:hover .timeline-location {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Interactive Timeline Styles */
.timeline-interactive {
    cursor: pointer;
}

.timeline-interactive .timeline-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-main {
    width: 100%;
}

.timeline-skills {
    width: 100%;
}

.timeline-summary {
    color: #4a5568;
    padding-left: 18px;
    margin-bottom: 12px;
}

.timeline-summary li {
    margin: 6px 0;
}

.hover-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-size: 0.85rem;
    margin-top: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hover-indicator i {
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

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

.timeline-details {
    max-height: none;
    overflow: visible;
    margin-top: 12px;
}

.timeline-details h4 {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-interactive .hover-indicator {
    display: none;
}

.timeline-interactive .timeline-summary {
    display: none;
}

.timeline-interactive {
    cursor: default;
}

.responsibilities-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.responsibilities-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #4a5568;
    line-height: 1.6;
}

.responsibilities-list li:before {
    content: "▸";
    position: absolute;
    left: 8px;
    color: #667eea;
    font-weight: bold;
}

.responsibilities-list li:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hover-indicator span {
        font-size: 0.8rem;
    }
}

/* Skills Breakdown Visualization */
.skills-breakdown-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
}

.skills-breakdown-section h4 {
    font-size: 0.85rem;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stacked Horizontal Skill Bar - Single bar with colored segments */
.skills-individual-bars {
    margin-top: 16px;
}

.skill-bar-stacked {
    display: flex;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    transition: all 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.skill-segment:last-child {
    border-right: none;
}

.skill-segment:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
    z-index: 1;
}

.skill-segment span {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile Interactive Timeline */
@media (max-width: 768px) {
    .timeline-interactive .timeline-content {
        flex-direction: column;
    }

    .position-block.timeline-interactive {
        flex-direction: column;
    }

    .timeline-skills,
    .position-block.timeline-interactive .timeline-skills {
        width: 100%;
        margin-top: 16px;
    }

    .skills-breakdown-section {
        padding: 12px;
    }

    /* Simplified mobile skill display - vertical list instead of horizontal bar */
    .skill-bar-stacked {
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: auto;
        background: transparent;
        box-shadow: none;
    }

    .skill-segment {
        width: 100%;
        height: 36px;
        border-radius: 6px;
        padding: 0 12px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .skill-segment span {
        font-size: 0.85rem;
        text-align: left;
    }

    /* Disable hover transform on mobile (touch devices) */
    .skill-segment:hover {
        transform: none;
        filter: brightness(1.05);
    }
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 3.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

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

.service-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 30px;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.services-cta {
    text-align: center;
    margin-top: 60px;
}

/* Legacy Services Section */
.services {
    padding: 100px 0;
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.premium {
    border-color: #764ba2;
    background: linear-gradient(180deg, rgba(118,75,162,0.02), white 30%);
}

.service-card.enterprise {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245,158,11,0.02), white 30%);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-pricing {
    text-align: right;
}

.price-range {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.price-note {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.service-description {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1rem;
}

.service-cta {
    margin-top: auto;
    text-align: center;
}

.cta-note {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Pricing Transparency */
.pricing-transparency {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pricing-transparency h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2d3748;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.pricing-label {
    font-weight: 500;
    color: #4a5568;
}

.pricing-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    padding-top: 172px;
    background: #f8fafc;
}

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

.portfolio-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.portfolio-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.portfolio-item p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.portfolio-results {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-tag {
    background: #f1f5f9;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.portfolio-cta {
    text-align: center;
    margin-top: 60px;
}

/* Legacy Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.02);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
}

.portfolio-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-visual {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-visual {
    transform: scale(1.1);
}

.yale-protest {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.georgetown-coding {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.oxford-sentiment {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.portfolio-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 700;
}

.portfolio-context,
.portfolio-solution,
.portfolio-results {
    margin-bottom: 25px;
}

.portfolio-context h4,
.portfolio-solution h4,
.portfolio-results h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portfolio-context h4::before {
    content: '🎯';
    font-size: 1.2rem;
}

.portfolio-solution h4::before {
    content: '💡';
    font-size: 1.2rem;
}

.portfolio-results h4::before {
    content: '📈';
    font-size: 1.2rem;
}

.portfolio-context p,
.portfolio-solution p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-metric {
    text-align: center;
    padding: 15px 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.result-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Research Tools Section */
.research-tools {
    padding: 100px 0;
    background: white;
}

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

.tools-intro {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tools-intro h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.tools-intro p {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.tool-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tool-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.tool-card p {
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #764ba2;
}

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

.tools-note {
    margin-top: 15px;
    color: #64748b;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-primary:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-section .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    padding-top: 172px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-header .section-title {
    margin-bottom: 20px;
}

.contact-intro {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.contact-urgency {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.urgency-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #4a5568;
}

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

.urgency-item i {
    color: #667eea;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-method:hover::before {
    opacity: 1;
}

.contact-method i {
    font-size: 1.6rem;
    color: white;
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-method:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.contact-method > div {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-method h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}

.contact-method p {
    color: #4a5568;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #764ba2;
    gap: 8px;
}

.contact-link::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.contact-link:hover::after {
    transform: translateX(2px);
}

.contact-note {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section li {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-blue-light);
}

.footer-cta {
    margin-top: var(--spacing-lg);
}

.footer-cta p {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--gray-400);
}

.contact-quick {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(30, 64, 175, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.contact-quick p {
    margin: var(--spacing-xs) 0;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.contact-quick p:first-child {
    color: var(--primary-blue-light);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-700);
}

.social-links a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-badges {
    display: flex;
    gap: var(--spacing-md);
}

.badge {
    background: var(--primary-blue);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
        border-top: 1px solid var(--gray-200);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: var(--spacing-sm) 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-image-container {
        width: 280px;
        height: 280px;
    }

    .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-header .section-title {
        font-size: 2rem;
    }

    .contact-intro {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CV Navigation - Mobile optimized 2x2 grid */
    .cv-intro {
        padding: 60px 0 40px;
        padding-top: 132px;
    }

    .cv-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .cv-nav-link {
        padding: 16px 12px;
        min-width: auto;
        gap: 6px;
    }

    .cv-nav-link i {
        font-size: 1.3rem;
    }

    .cv-nav-link span {
        font-size: 0.85rem;
    }

    /* Ensure download button matches other buttons on mobile */
    .cv-nav-download {
        padding: 16px 12px !important;
        min-width: auto !important;
        width: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .cv-nav-download:hover {
        transform: translateY(-3px) scale(1) !important;
    }

    .cv-nav-download i {
        font-size: 1.3rem;
    }

    .cv-nav-download span {
        font-size: 0.85rem;
    }

    .cv-intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Better icon sizing for mobile */
    .capability-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto var(--spacing-md);
    }

    .capability-icon i {
        font-size: 1.8rem;
    }

    .capability-item {
        text-align: center;
        padding: var(--spacing-lg);
    }

    .capability-item h3 {
        font-size: 1.3rem;
    }

    .capability-item p {
        font-size: 0.95rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-image-container {
        width: 200px;
        height: 200px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .impact-number {
        font-size: 1.8rem;
    }

    .impact-icon {
        font-size: 2.5rem;
    }

    .portfolio-content h3 {
        font-size: 1.4rem;
    }

    .result-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

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

    .expertise-areas {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Ensure hero image fills container properly */
    .hero-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* CV Navigation - Extra compact for small screens */
    .cv-nav {
        gap: 10px;
        max-width: 100%;
    }

    .cv-nav-link {
        padding: 14px 10px;
        gap: 4px;
    }

    .cv-nav-link i {
        font-size: 1.2rem;
    }

    .cv-nav-link span {
        font-size: 0.8rem;
    }

    /* Ensure download button matches other buttons */
    .cv-nav-download {
        padding: 14px 10px !important;
        min-width: auto !important;
        width: auto;
        box-sizing: border-box;
        gap: 4px;
    }

    .cv-nav-download:hover {
        transform: translateY(-3px) scale(1) !important;
    }

    .cv-nav-download i {
        font-size: 1.2rem;
    }

    .cv-nav-download span {
        font-size: 0.8rem;
    }

    .cv-intro-text {
        font-size: 0.95rem;
    }

    /* Smaller icons for very small screens */
    .capability-icon {
        width: 50px;
        height: 50px;
    }

    .capability-icon i {
        font-size: 1.5rem;
    }

    .capability-item h3 {
        font-size: 1.2rem;
    }

    .capability-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Initial state for elements that will animate */
.expertise-item,
.service-card,
.project-card,
.stat-item:not(.about-stats .stat-item),
.contact-method {
    opacity: 0;
}

.fade-in-up {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Prevent animation on CV page stats to avoid CLS */
.about-stats .stat-item {
    opacity: 1;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background: white;
    contain: layout style paint;
}

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

.skills-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.skill-category {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 180px;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: white;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
}

.skill-category-header i {
    color: #667eea;
    font-size: 1.2rem;
}

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

.skill-tag {
    background: white;
    color: #667eea;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-category:hover .skill-tag {
    border-color: #667eea;
    background: #f1f5f9;
}

/* Language Tag Special Styling */
.language-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    min-width: 120px;
}

.language-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.language-level {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Languages Section */
.languages-section {
    padding: 100px 0;
    background: #f8fafc;
    contain: layout style paint;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 80px;
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.language-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.language-level {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 15px;
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* University Logos Section */
.collaborations-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: -2rem;
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
}

.university-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.university-logo {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.university-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.university-logo:hover::before {
    transform: scaleX(1);
}

.university-logo:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.university-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto var(--spacing-md);
    filter: grayscale(80%) opacity(0.7);
    transition: all 0.3s ease;
}

.university-logo:hover .university-logo-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.logo-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 500;
}

/* Logo Marquee Animation */
.logo-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--bg-white);
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
    position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-logo {
    height: 120px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.marquee-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
    .logo-marquee-track {
        gap: 60px;
        animation-duration: 25s;
    }

    .marquee-logo {
        height: 80px;
        max-width: 200px;
    }

    .logo-marquee::before,
    .logo-marquee::after {
        width: 50px;
    }
}

/* Academic Color Refinements */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
}

/* More subdued accent color for academic context */
.capability-icon,
.service-icon,
.tool-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.nav-link:hover,
.nav-link.active {
    color: #4f46e5;
}

.nav-link::after {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.section-title::after {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.highlight-item i {
    color: #4f46e5;
}

.stat-item {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.skill-tag {
    color: #4f46e5;
    border-color: #4f46e5;
}

.skill-category:hover .skill-tag {
    border-color: #4f46e5;
}

.language-level {
    color: #4f46e5;
}

.result-tag {
    color: #4f46e5;
}

.timeline-marker {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Portfolio item hover */
.portfolio-item:hover,
.capability-item:hover,
.service-card:hover {
    border-color: #4f46e5;
}

.badge {
    background: #4f46e5;
}

/* CTA section refinement */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

/* ===============================================
   PROJECT SHOWCASE LAYOUT - HERO & CARDS
   =============================================== */

/* Project Hero Section */
.project-hero {
    padding: 120px 0 80px;
    background: #f8fafc;
    position: relative;
}

.project-hero-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.project-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 20px;
}

.project-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.project-hero-badge i {
    color: #ffd700;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.project-hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 900px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Project Hero Stats */
.project-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.project-stat i {
    font-size: 2rem;
    opacity: 0.9;
}

.project-stat div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Project Hero Features */
.project-hero-features {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.project-hero-features h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    flex-shrink: 0;
    opacity: 0.9;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Project Hero CTA */
.project-hero-cta {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    color: #667eea;
    border: none;
    transition: all 0.3s ease;
}

.btn-large:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cta-note {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Project Tech Stack */
.project-tech-stack {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.project-tech-stack h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Other Projects Section */
.other-projects-section {
    padding: 100px 0;
    background: #f8fafc;
}

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

/* Project Card */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.project-card-header {
    margin-bottom: 20px;
}

.project-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-card-badge.proof-of-concept {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.project-card-title {
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-card-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Project Card Highlights */
.project-card-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
    font-size: 0.95rem;
}

.highlight-item i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

/* Project Card Tech */
.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.project-card-tech .tech-badge {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.project-card-tech .tech-badge:hover {
    background: #667eea;
    color: white;
}

/* Project Card Note */
.project-card-note {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.project-card-note i {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.project-card-note p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   RESPONSIVE DESIGN - PROJECT SHOWCASE
   =============================================== */

@media (max-width: 768px) {
    .project-hero {
        padding: 100px 0 60px;
    }

    .project-hero-content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .project-hero-title {
        font-size: 2rem;
    }

    .project-hero-description {
        font-size: 1rem;
    }

    .project-hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        padding: 25px;
    }

    .project-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .project-hero-title {
        font-size: 1.75rem;
    }

    .project-hero-description {
        font-size: 0.95rem;
    }

    .tech-badges {
        gap: 8px;
    }

    .tech-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
