/* Modern B2B SaaS Portfolio - Complete Black Theme */
/* =============================================== */

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

:root {
    /* Black Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-elevated: #1a1a1a;
    
    /* Accent Colors */
    --accent-primary: #ffffff;
    --accent-secondary: #a0a0a0;
    --accent-tertiary: #606060;
    --accent-glow: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --gradient-orb-1: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(160,160,160,0.1) 0%, transparent 70%);
    
    /* Borders */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.8);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--accent-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== */
/* Navigation */
/* ==================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-primary);
    text-decoration: none;
}

.logo-initial {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-base);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 3vw, 2rem);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-orb-1);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-2);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-orb-1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    /* remove center mask that created a mid-page band */
    mask-image: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(min(320px, 100%), 380px) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    width: 100%;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
}

.hero-profile-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(0.875rem, 1.5vw, 1.25rem);
    width: 100%;
}

.hero-profile-image {
    position: relative;
    width: clamp(220px, 22vw, 360px);
    height: clamp(220px, 22vw, 360px);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    flex-shrink: 0;
}

.hero-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-profile-image:hover img {
    transform: scale(1.05);
}

.profile-glow {
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    transition: var(--transition-base);
}

.hero-profile-image:hover .profile-glow {
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 750px;
    padding-top: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(8px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(0.975rem, 1vw + 0.2rem, 1.125rem);
    color: var(--accent-secondary);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
}

.hero-education-badges {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 0.8vw, 0.5rem);
    margin-top: clamp(0.75rem, 1.5vw, 1rem);
}

.education-badge {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw, 0.5rem);
    padding: clamp(0.4rem, 0.8vw, 0.5rem) clamp(0.6rem, 1.2vw, 0.75rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-primary);
    border-radius: 8px;
    transition: var(--transition-base);
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Golden border for Master's degree */
.education-badge-masters {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.education-badge-masters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
}

.education-badge-masters svg {
    color: #FFD700;
}

.education-badge-masters:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

/* Bronze border for Bachelor's degree */
.education-badge-bachelors {
    border-color: rgba(205, 127, 50, 0.4);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.1);
}

.education-badge-bachelors::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(205, 127, 50, 0.6), transparent);
}

.education-badge-bachelors svg {
    color: #CD7F32;
}

.education-badge-bachelors:hover {
    border-color: rgba(205, 127, 50, 0.6);
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 24px rgba(205, 127, 50, 0.2);
    transform: translateY(-3px);
}

.education-badge svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    width: clamp(14px, 1.2vw, 16px);
    height: clamp(14px, 1.2vw, 16px);
}

.education-badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.education-badge-degree {
    font-size: clamp(0.75rem, 0.8vw + 0.15rem, 0.85rem);
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1.3;
}

.education-badge-school {
    font-size: clamp(0.65rem, 0.7vw + 0.1rem, 0.75rem);
    color: var(--accent-secondary);
    line-height: 1.3;
}

.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 1vw, 0.75rem);
}

.highlight-item {
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: clamp(0.825rem, 0.8vw + 0.2rem, 0.925rem);
    color: var(--accent-secondary);
    line-height: 1.6;
    transition: var(--transition-base);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.highlight-item strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 100%;
}

.hero-profile-section .hero-cta {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

.hero-profile-section .hero-cta .btn {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--accent-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-primary);
}

/* Quick Links */
.quick-links {
    position: relative;
    z-index: 1;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.quick-links h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--accent-primary);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--accent-secondary);
    transition: var(--transition-base);
    text-align: center;
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quick-link-card svg {
    transition: var(--transition-base);
}

.quick-link-card:hover svg {
    transform: scale(1.1);
}

.quick-link-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.btn-text {
    background: transparent;
    color: var(--accent-secondary);
    padding: 0.875rem 1rem;
}

.btn-text:hover {
    color: var(--accent-primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================== */
/* Sections */
/* ==================== */

.section {
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

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

/* ==================== */
/* About Section */
/* ==================== */

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-text p {
    color: var(--accent-secondary);
    line-height: 1.8;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--accent-secondary);
    transition: var(--transition-base);
}

.detail-item:hover {
    color: var(--accent-primary);
}

.detail-item svg {
    flex-shrink: 0;
}

.detail-item a {
    color: inherit;
    text-decoration: none;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-elevated);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-tertiary);
}

.image-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 16px;
    z-index: -1;
    filter: blur(20px);
    transition: var(--transition-base);
}

.image-container:hover .image-glow {
    opacity: 0.3;
}

/* ==================== */
/* Timeline (Experience) */
/* ==================== */

.timeline {
    position: relative;
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    padding: clamp(10rem, 15vh, 14rem) 2rem clamp(8rem, 10vh, 10rem);
    flex-wrap: nowrap;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-primary) 0%, 
        var(--border-primary) 10%, 
        var(--border-primary) 90%, 
        var(--accent-primary) 100%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 1;
    min-width: clamp(120px, 15vw, 180px);
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item:last-child {
    margin-right: 0;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-primary), 0 0 20px rgba(139, 92, 246, 0.4);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 0 6px var(--accent-primary), 0 0 30px rgba(139, 92, 246, 0.6);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: clamp(0.75rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 2;
    cursor: pointer;
}

/* Odd items - boxes on TOP */
.timeline-item:nth-child(odd) .timeline-content {
    bottom: calc(50% + 1.5rem);
}

/* Even items - boxes on BOTTOM */
.timeline-item:nth-child(even) .timeline-content {
    top: calc(50% + 1.5rem);
}

/* Connecting line from box to rail */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border-primary);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    top: 100%;
    height: 1.5rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
    bottom: 100%;
    height: 1.5rem;
}

/* Arrow pointing to timeline */
.timeline-content::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    bottom: -12px;
    border-top: 12px solid var(--border-primary);
}

.timeline-item:nth-child(even) .timeline-content::after {
    top: -12px;
    border-bottom: 12px solid var(--border-primary);
}

/* Expanded state */
.timeline-item.expanded {
    z-index: 100;
}

.timeline-item.expanded .timeline-content {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: min(600px, 90vw) !important;
    max-width: 600px !important;
    max-height: 80vh !important;
    height: auto !important;
    overflow-y: auto !important;
    background: rgba(0, 0, 0, 0.95) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4) !important;
    padding: clamp(1.5rem, 3vw, 2rem) !important;
    z-index: 101 !important;
    animation: expandCard 0.3s ease-out !important;
}

@keyframes expandCard {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.timeline-item.expanded .timeline-description {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-top: var(--spacing-md) !important;
    display: flex !important;
    transition-delay: 0.1s !important;
}

.timeline-item.expanded .timeline-tags {
    max-height: 200px !important;
    opacity: 1 !important;
    display: flex !important;
    transition-delay: 0.1s !important;
}

.timeline-item.expanded .timeline-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.timeline-item.expanded .timeline-company {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.timeline-item.expanded .timeline-date {
    font-size: 0.875rem !important;
}

.timeline-item.expanded .timeline-header {
    margin-bottom: var(--spacing-md) !important;
    gap: 0.5rem !important;
}

.timeline-item.expanded .timeline-content::before,
.timeline-item.expanded .timeline-content::after {
    display: none;
}

/* Backdrop blur overlay */
.timeline::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.timeline.has-expanded::after {
    opacity: 1;
    pointer-events: all;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.timeline-content:hover::after {
    border-top-color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    gap: 0.25rem;
}

.timeline-title {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.timeline-company {
    color: var(--accent-secondary);
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--accent-tertiary);
    font-size: clamp(0.65rem, 0.75vw, 0.7rem);
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    width: fit-content;
    font-weight: 500;
}

.timeline-description {
    list-style: none;
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.625rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.timeline-description li {
    color: var(--accent-secondary);
    padding-left: var(--spacing-md);
    position: relative;
    line-height: 1.6;
    font-size: clamp(0.825rem, 0.9vw, 0.9rem);
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Custom scrollbar for horizontal timeline */
.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ==================== */
/* Projects Section */
/* ==================== */

.project-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.project-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.project-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.project-tab:hover::before {
    left: 100%;
}

.project-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.project-tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.project-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    display: none;
}

.project-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.project-card.fade-in {
    animation: projectFadeIn 0.4s ease-out forwards;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
    opacity: 1;
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.project-description {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tag {
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    transition: var(--transition-base);
}

.project-card:hover .tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==================== */
/* Skills Section */
/* ==================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: var(--transition-base);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.skill-category-header svg {
    color: var(--accent-primary);
}

.skill-category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    transition: var(--transition-base);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ==================== */
/* Achievements Section */
/* ==================== */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
}

.achievement-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.achievement-description {
    color: var(--accent-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.achievement-year {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-secondary);
}

/* ==================== */
/* Publications Section */
/* ==================== */

.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.publication-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.publication-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.publication-title {
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.publication-date {
    color: var(--accent-tertiary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.publication-venue {
    color: var(--accent-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.publication-description {
    color: var(--accent-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.publication-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

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

/* ==================== */
/* Education Section */
/* ==================== */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-xl);
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.education-institution {
    font-size: 1.125rem;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-xs);
}

.education-period {
    color: var(--accent-tertiary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.education-description {
    color: var(--accent-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

/* ==================== */
/* Certifications Section */
/* ==================== */

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

.certification-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-xl);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.certification-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
}

.certification-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.certification-issuer {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.certification-date {
    color: var(--accent-tertiary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.certification-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-base);
    margin-top: auto;
}

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

/* ==================== */
/* Photo Gallery Section */
/* ==================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-elevated);
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--accent-tertiary);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-placeholder {
    color: var(--accent-primary);
}

.gallery-placeholder svg {
    transition: var(--transition-base);
}

.gallery-item:hover .gallery-placeholder svg {
    transform: scale(1.1);
}

.gallery-placeholder p {
    font-size: 0.875rem;
    font-weight: 500;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--accent-primary);
    font-weight: 500;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-secondary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.footer {
    border-top: 1px solid var(--border-primary);
    padding: var(--spacing-xl) 0;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-text p {
    color: var(--accent-tertiary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-subtext {
    font-size: 0.75rem;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--accent-secondary);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

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

/* Large screens - prevent oversizing */
@media (min-width: 1600px) {
    .hero-content-wrapper {
        max-width: 1400px;
    }
    
    .hero-profile-image {
        width: 360px;
        height: 360px;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
}

/* Medium-large screens */
@media (min-width: 1200px) and (max-width: 1599px) {
    .hero-profile-image {
        width: clamp(280px, 20vw, 340px);
        height: clamp(280px, 20vw, 340px);
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet breakpoint for hero layout */
@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 4vw, 3rem);
        text-align: center;
    }
    
    .hero-profile-section {
        order: -1;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-badge {
        justify-content: center;
        margin: 0 auto;
    }
    
    .timeline {
        padding: clamp(6rem, 10vh, 8rem) 1rem;
        gap: 0.75rem;
    }
    
    .timeline-item {
        min-width: clamp(100px, 18vw, 150px);
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-base);
        pointer-events: none;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .hero {
        padding: clamp(60px, 10vh, 100px) 0 clamp(40px, 8vh, 60px);
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
        text-align: center;
    }
    
    .hero-profile-section {
        order: -1;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
        margin-top: 0;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-stats {
        gap: var(--spacing-lg);
    }
    
    .stat-divider {
        display: none;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Vertical Timeline for Mobile & Portrait */
    .timeline {
        flex-direction: column;
        padding: var(--spacing-2xl) var(--spacing-lg);
        gap: 0;
        align-items: stretch;
    }
    
    .timeline::before {
        left: 30px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
        transform: none;
        background: linear-gradient(180deg, 
            var(--accent-primary) 0%, 
            var(--border-primary) 10%, 
            var(--border-primary) 90%, 
            var(--accent-primary) 100%);
    }
    
    .timeline-item {
        position: relative;
        min-width: 100%;
        max-width: 100%;
        display: block;
        margin-bottom: var(--spacing-xl);
        padding-left: 60px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .timeline-marker {
        position: absolute;
        top: 0;
        left: 22px;
        transform: none;
        width: 16px;
        height: 16px;
        border-width: 3px;
        box-shadow: 0 0 0 4px var(--accent-primary), 0 0 16px rgba(139, 92, 246, 0.5);
    }
    
    .timeline-item:hover .timeline-marker {
        transform: scale(1.3);
    }
    
    .timeline-content {
        position: static;
        width: 100%;
        padding: var(--spacing-md);
        margin-bottom: 0;
    }
    
    /* Reset all nth-child positioning for vertical layout */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        top: auto;
        bottom: auto;
        left: auto;
    }
    
    /* Remove connecting lines and arrows in vertical layout */
    .timeline-content::before,
    .timeline-content::after {
        display: none;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .timeline-title {
        font-size: 0.95rem;
    }
    
    .timeline-company {
        font-size: 0.8rem;
    }
    
    /* Expanded state adjustments for mobile vertical */
    .timeline-item.expanded .timeline-content {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .project-tabs {
        gap: 0.5rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .project-tab {
        padding: 0.625rem 1rem;
        font-size: 0.825rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .project-card {
        padding: 0;
    }
    
    .project-content {
        padding: var(--spacing-sm);
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .publication-header {
        flex-direction: column;
    }
}

/* Portrait tablets - vertical timeline */
@media (orientation: portrait) and (min-width: 769px) and (max-width: 1024px) {
    /* Vertical Timeline for Portrait Tablets */
    .timeline {
        flex-direction: column;
        padding: var(--spacing-2xl) var(--spacing-lg);
        gap: 0;
        align-items: stretch;
    }
    
    .timeline::before {
        left: 40px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
        transform: none;
        background: linear-gradient(180deg, 
            var(--accent-primary) 0%, 
            var(--border-primary) 10%, 
            var(--border-primary) 90%, 
            var(--accent-primary) 100%);
    }
    
    .timeline-item {
        position: relative;
        min-width: 100%;
        max-width: 100%;
        display: block;
        margin-bottom: var(--spacing-2xl);
        padding-left: 80px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    
    .timeline-marker {
        position: absolute;
        top: 0;
        left: 32px;
        transform: none;
        width: 18px;
        height: 18px;
        border-width: 4px;
    }
    
    .timeline-item:hover .timeline-marker {
        transform: scale(1.3);
    }
    
    .timeline-content {
        position: static;
        width: 100%;
        padding: var(--spacing-lg);
        margin-bottom: 0;
    }
    
    /* Reset all nth-child positioning for vertical layout */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        top: auto;
        bottom: auto;
        left: auto;
    }
    
    /* Remove connecting lines and arrows in vertical layout */
    .timeline-content::before,
    .timeline-content::after {
        display: none;
    }
    
    /* Expanded state adjustments for portrait tablets */
    .timeline-item.expanded .timeline-content {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* ==================== */
/* Animations */
/* ==================== */

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

.hidden {
    display: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==================== */
/* Contact Card Modal */
/* ==================== */

.contact-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.contact-card {
    position: relative;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: var(--spacing-xl);
    max-width: 380px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.contact-card-overlay.active .contact-card {
    transform: scale(1);
    opacity: 1;
}

/* Frosted glass texture */
.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Glass reflection effect */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%
    );
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.contact-card-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.contact-card-close svg {
    width: 18px;
    height: 18px;
}

.contact-card-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.contact-card-subtitle {
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.contact-card-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.contact-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

/* Staggered animation for items */
.contact-card-overlay.active .contact-card-item:nth-child(1) {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

.contact-card-overlay.active .contact-card-item:nth-child(2) {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.contact-card-overlay.active .contact-card-item:nth-child(3) {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.contact-card-overlay.active .contact-card-item:nth-child(4) {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer effect on hover */
.contact-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s;
}

.contact-card-item:hover::before {
    left: 100%;
}

.contact-card-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.contact-card-link:hover .contact-card-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.contact-copy-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--accent-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    position: relative;
}

.contact-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.contact-copy-btn:active {
    transform: scale(0.95);
}

.contact-copy-btn.copied {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.contact-copy-btn.copied::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
    font-weight: bold;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-card-label {
    font-size: 0.65rem;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-card-value {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-card {
        padding: var(--spacing-md);
        max-width: 95%;
        border-radius: 16px;
    }
    
    .contact-card-title {
        font-size: 1.35rem;
    }
    
    .contact-card-subtitle {
        font-size: 0.8rem;
    }
    
    .contact-card-item {
        padding: 0.5rem;
    }
    
    .contact-card-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-copy-btn {
        width: 28px;
        height: 28px;
    }
    
    .contact-copy-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-card-value {
        font-size: 0.8rem;
    }
}
