/* Connie Yang Portfolio - Main Stylesheet */

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

:root {
    --primary: #5e72e4;
    --secondary: #825ee4;
    --accent: #f5365c;
    --dark: #0b1929;
    --darker: #050d18;
    --light: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --card-bg: rgba(15, 23, 42, 0.6);
    --border: rgba(148, 163, 184, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-mesh: linear-gradient(135deg, #5e72e4 0%, #825ee4 50%, #f5365c 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated gradient mesh background */
.mesh-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: linear-gradient(180deg, #0b1929 0%, #050d18 100%);
}

.mesh-gradient::before,
.mesh-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.mesh-gradient::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.mesh-gradient::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, -50px) scale(1.1); }
    50% { transform: translate(50px, -100px) scale(0.9); }
    75% { transform: translate(-50px, 50px) scale(1.05); }
}

/* Glass morphism effect */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(5, 13, 24, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s ease;
}

.hero-image {
    animation: slideInRight 1s ease;
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.profile-image-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(94, 114, 228, 0.3);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #8B5CF6, #5E72E4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(94, 114, 228, 0.1));
    padding: 2px 6px;
    border-radius: 4px;
}

/* Simplified Hero Section - Large Clean Centered Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.02) 0%, transparent 70%);
    animation: heroGlow 20s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.hero-center {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 1;
}

/* Profile Circle - Larger */
.profile-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(94, 114, 228, 0.08));
    border: 2px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-circle:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1.02);
}

.profile-inner {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #5E72E4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Title - Larger */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding-bottom: 0.2rem;
}

/* Typing Animation - Larger */
.typing-wrapper {
    height: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.typing-text {
    font-size: 1.5rem;
    color: #8B5CF6;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.cursor {
    font-size: 1.5rem;
    color: #8B5CF6;
    font-weight: 300;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Subtitle - Cleaner */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
}

/* Stats - More spacing */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    font-size: 1rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero-stats span:nth-child(even) {
    opacity: 0.4;
    font-size: 0.875rem;
}

/* Buttons - Larger */
.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main, .btn-outline {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-main {
    background: linear-gradient(135deg, #8B5CF6, #5E72E4);
    color: white;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

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

/* Responsive */
@media (max-width: 768px) {
    .profile-circle {
        width: 100px;
        height: 100px;
    }

    .profile-inner {
        font-size: 2.5rem;
    }

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

    .typing-text, .cursor {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        font-size: 0.875rem;
    }

    .btn-main, .btn-outline {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }
}

.line-1 {
    font-size: 0.5em;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.line-2, .line-3 {
    color: var(--text-primary);
}

/* Typewriter Animation */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.line-1.typewriter {
    width: 0;
    animation:
        typing 1s steps(15, end) forwards,
        fadeIn 0.1s ease forwards;
}

.line-2.typewriter {
    width: 0;
    animation:
        typing 1.5s steps(18, end) 0.8s forwards,
        fadeIn 0.1s ease 0.8s forwards;
}

.line-3.typewriter {
    width: 0;
    animation:
        typing 1.8s steps(25, end) 2s forwards,
        fadeIn 0.1s ease 2s forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.8s ease 4s forwards;
}

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

/* Blinking cursor */
.typewriter::after {
    content: '|';
    display: inline-block;
    animation: blink 1s infinite;
    color: #8B5CF6;
    font-weight: 300;
    margin-left: 2px;
}

.line-3.typewriter::after {
    animation: blink 1s infinite 4s;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.highlight {
    background: linear-gradient(135deg, #8B5CF6, #5E72E4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-bio {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-minimal {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-minimal.primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-minimal.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-minimal.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-minimal.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-meta {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.education-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
    margin-bottom: 2rem;
}

.edu-icon {
    color: #8B5CF6;
    flex-shrink: 0;
}

.edu-text {
    color: #8B5CF6;
    font-weight: 600;
    font-size: 0.9rem;
}

.edu-separator {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.edu-degree {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(94, 114, 228, 0.35);
}

.btn-outline {
    border: 2px solid rgba(94, 114, 228, 0.5);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(94, 114, 228, 0.1);
    border-color: var(--primary);
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Expertise Cards */
.expertise-grid {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.expertise-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.expertise-card:hover::before {
    opacity: 1;
}
.expertise-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.expertise-card:hover .expertise-accent {
    transform: translateX(0);
}
.expertise-card[data-expertise="genai"] .expertise-accent {
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
}
.expertise-card[data-expertise="llmops"] .expertise-accent {
    background: linear-gradient(90deg, transparent, #5E72E4, transparent);
}
.expertise-card[data-expertise="experimentation"] .expertise-accent {
    background: linear-gradient(90deg, transparent, #4FD1C5, transparent);
}
.expertise-card[data-expertise="strategy"] .expertise-accent {
    background: linear-gradient(90deg, transparent, #F687B3, transparent);
}

.expertise-card[data-expertise="entrepreneurship"] .expertise-accent {
    background: linear-gradient(90deg, transparent, #FF6B6B, transparent);
}
.expertise-content {
    padding: 1.5rem;
}
.expertise-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.expertise-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}


.expertise-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.expertise-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.expertise-tags .tag {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.expertise-card:hover .expertise-tags .tag {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--text-secondary);
}

/* Education Section */
.education {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #5E72E4);
}

.education-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 92, 246, 0.2);
}

.education-logo {
    flex-shrink: 0;
}

.cmu-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(94, 114, 228, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
    letter-spacing: 0.05em;
}

.education-details {
    flex: 1;
}

.university-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.degree-info {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-timeline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.education-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.highlight-item svg {
    color: #8B5CF6;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .education-card {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .cmu-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .education-details {
        text-align: left;
    }

    .university-name {
        font-size: 1.5rem;
    }
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.media-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.media-type {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.media-content {
    padding: 1.5rem;
}

.media-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.media-source {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.media-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    font-size: 0.875rem;
    transition: gap 0.2s ease;
}

.media-link:hover {
    gap: 0.75rem;
}

/* Media Section - New Design */
.media-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    justify-content: center;
}

.media-tab {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.media-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Featured Media Item */
.media-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.media-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-type,
.featured-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.featured-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(94, 114, 228, 0.1));
    border-radius: 16px;
    position: relative;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8B5CF6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: white;
}

/* Media Grid - New Design */
.media-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.media-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
}

.media-item:hover::before {
    height: 2px;
}

.media-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.media-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.media-badge.podcast {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.media-badge.article {
    background: rgba(79, 209, 197, 0.1);
    color: #4FD1C5;
}

.media-badge.feature {
    background: rgba(246, 135, 179, 0.1);
    color: #F687B3;
}

.media-badge.technical {
    background: rgba(129, 140, 248, 0.1);
    color: #818CF8;
}

.media-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.media-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.media-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.media-item-title a:hover {
    color: #8B5CF6;
}

.media-item-source {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.media-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.media-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-item-link {
    color: #8B5CF6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.media-item-link:hover {
    transform: translateX(3px);
}

/* Publications & Patents */
.advisory-compact {
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
}

.advisory-title-compact {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.advisory-desc-compact {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.advisory-link-compact {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.advisory-link-compact:hover {
    transform: translateX(3px);
}

.publications-grid {
    display: grid;
    gap: 1.5rem;
}

.publication-item {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.publication-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(94, 114, 228, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.publication-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.publication-title a {
    transition: color 0.3s ease;
}

.publication-title a:hover {
    color: var(--primary);
}

.publication-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Advisory Section */
.advisory-content {
    margin-top: 3rem;
}

.advisory-card {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.advisory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #5E72E4);
}

.advisory-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.advisory-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.advisory-organization {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.advisory-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.advisory-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.advisory-link:hover {
    transform: translateX(5px);
    color: #5E72E4;
}

.advisory-link svg {
    transition: transform 0.3s ease;
}

.advisory-link:hover svg {
    transform: translate(2px, -2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--darker);
    border-radius: 50%;
}

.timeline-content {
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.company-location {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.role-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-achievements {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Compact Education Section */
.education-compact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.education-toggle {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.education-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
}

.education-toggle.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border-radius: 6px;
    font-size: 1.25rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.toggle-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.education-summary {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.education-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 1rem;
}

.education-details.expanded {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.education-details .timeline-item {
    padding-left: 2rem;
    padding-bottom: 0;
}

.education-details .timeline-content {
    background: rgba(139, 92, 246, 0.03);
    border-color: rgba(139, 92, 246, 0.1);
}

@media (max-width: 768px) {
    .education-summary {
        display: none;
    }
}

/* Education Column Styles - Remove these since we're not using columns anymore */
.education-timeline {
    margin-top: 0;
}

.edu-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #5E72E4);
    border-radius: 16px 16px 0 0;
}

.edu-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 92, 246, 0.2);
}

.edu-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.cmu-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(94, 114, 228, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #8B5CF6;
    flex-shrink: 0;
}

.edu-header .university-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.degree-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.edu-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.edu-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.edu-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.point-marker {
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Contact */
.contact-simple {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Email Popup */
.email-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.email-popup-overlay.active {
    display: flex;
}

.email-popup {
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.email-popup h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1440px) {
    .expertise-grid {
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .expertise-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .profile-image-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 13, 24, 0.98);
        padding: 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .contact-simple {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .email-popup {
        width: 95%;
        padding: 2rem;
    }

    .media-featured {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .featured-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

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

    .featured-visual {
        min-height: 200px;
    }

    .media-tabs {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .media-tab {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .media-grid-new {
        grid-template-columns: 1fr;
    }

    .media-item {
        padding: 1.5rem;
    }
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}