/* Modern Portfolio - Optimized CSS */

:root {
    /* Colors */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #1a1a1a;
    --text-light: #556678;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    
    /* Spacing */
    --space-xs: 0.4rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4.5rem;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.2s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

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

/* Mobile menu overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

body.menu-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                max-width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border-radius 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                border 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                backdrop-filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 0;
    will-change: top, max-width, border-radius;
}

/* Floating pill header when scrolled */
header.scrolled {
    top: 1.25rem;
    max-width: min(600px, 90%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(150%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(150%) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 
                0 2px 8px rgba(0, 0, 0, 0.03),
                inset 0 1px 0 rgba(255, 255, 255, 0.7),
                inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 60px;
}

header.scrolled nav {
    padding: 0.55rem 1rem;
    max-width: none;
    justify-content: center;
    gap: 0;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    transition: padding 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                gap 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                justify-content 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                margin 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                font-size 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    opacity: 1;
    overflow: hidden;
    flex-shrink: 0;
}

header.scrolled .logo {
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    transform: scale(0);
    position: absolute;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    transition: gap 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

header.scrolled .nav-links {
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                font-size 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                font-weight 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

header.scrolled .nav-links a {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
}

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

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

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.burger:hover {
    opacity: 0.7;
}

.burger div {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile fluid toggle in menu - hidden by default */
.mobile-fluid-toggle-item {
    display: none;
}

.mobile-fluid-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-sm);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.mobile-fluid-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border-color: var(--accent);
}

.mobile-fluid-toggle:active {
    transform: scale(0.98);
}

.mobile-fluid-toggle.disabled {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-lighter);
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-fluid-toggle i {
    font-size: 1.2rem;
}

/* Burger animation when active */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
    transform: translateX(10px);
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main content above fluid */
main {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Add extra spacing between major sections */
#work,
#impact,
#recognition,
#skills,
#leadership {
    padding-top: calc(var(--space-2xl) + var(--space-lg));
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #8b5cf6);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: lineShine 3s ease-in-out infinite;
}

@keyframes lineShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Hero */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-left {
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-right {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent), #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
    position: relative;
    z-index: 10;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content h2 {
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 10;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: nowrap;
    position: relative;
    z-index: 10;
}

.stat {
    text-align: left;
    position: relative;
    z-index: 10;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    line-height: 1;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-top: var(--space-xs);
    position: relative;
    z-index: 10;
}

.hero-btns {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn.secondary {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

.btn.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

/* Intro */
#intro {
    background: transparent;
    padding: var(--space-xl) var(--space-lg);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    z-index: 10;
}

.intro-text strong {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.intro-text strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    opacity: 0.3;
}

/* Work Section */
#work {
    background: transparent;
    position: relative;
}

.work-grid {
    display: grid;
    gap: var(--space-xl);
}

.work-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    transition: left 0.5s ease;
}

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

.work-item:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.2);
}

.work-item.featured {
    border: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.02), white);
}

.work-item.featured:hover {
    border: 2px solid var(--accent);
}

/* Work item header with logo */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.work-header-content {
    flex: 1;
}

.work-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.work-item:hover .work-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.work-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.08));
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.work-item h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.work-company {
    font-size: 1rem;
    color: var(--text-lighter);
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.work-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-size: 1rem;
}

/* Show/hide descriptions based on screen size */
.desc-mobile {
    display: none;
}

.desc-full {
    display: inline;
}

.work-impact {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.impact-item {
    font-size: 0.95rem;
    color: var(--text-light);
}

.impact-item strong {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.05em;
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-badge {
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.work-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.work-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.work-link:hover {
    color: var(--accent-hover);
    transform: translateX(2px);
}

/* Core Impact Section */
#impact {
    background: transparent;
    position: relative;
}

/* Impact Cards */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.impact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.impact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.impact-card:hover::after {
    transform: scaleX(1);
}

.impact-card:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.2);
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-card:hover .impact-icon {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.impact-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

.impact-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Additional Projects */
#other-projects {
    background: transparent;
    position: relative;
    margin-top: var(--space-xl);
}

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

.small-project {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.small-project::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.small-project:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
    transform: translateY(-6px);
}

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

.small-project h3 {
    font-size: 1.4rem;
    color: var(--primary);
    flex: 1;
    font-weight: 700;
    line-height: 1.3;
}

.project-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    color: #6366f1;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.small-project > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex: 1;
    font-size: 0.95rem;
}

.project-tech-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: auto;
}

.project-tech-inline span {
    padding: 4px 10px;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.project-link-small {
    margin-top: var(--space-md);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.project-link-small:hover {
    color: var(--accent-hover);
    transform: translateX(2px);
}

/* Recognition */
#recognition {
    background: transparent;
    position: relative;
}

/* Major Awards */
.major-awards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.major-award-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.award-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    filter: grayscale(0);
}

.major-award-card:hover .award-logo {
    transform: scale(1.08);
}

.major-award-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-6px) scale(1.02);
}

.award-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-sm);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.major-award-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    width: 100%;
}

.award-result {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    width: 100%;
}

.award-details {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
}

/* Awards by Category - Enhanced */
.awards-by-category {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
}

.category-awards-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.awards-list-enhanced {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.award-item-enhanced {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.award-item-enhanced::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.award-item-enhanced:hover::before {
    transform: scaleY(1);
}

.award-item-enhanced:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.award-item-enhanced h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.award-item-enhanced p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Skills Section */
#skills {
    background: white;
    position: relative;
}

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

.skill-category {
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, var(--accent), #8b5cf6) left bottom no-repeat;
    background-size: 40px 2px;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 0;
    height: 1px;
    background: var(--border);
}

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

.skill-items span {
    padding: 8px 14px;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-items span::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-items span:hover::before {
    opacity: 1;
}

.skill-items span:hover {
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.skill-items span > * {
    position: relative;
    z-index: 1;
}

/* Leadership Section */
#leadership {
    background: transparent;
    position: relative;
}

/* Leadership - Redesigned */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.leadership-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.leadership-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    border-radius: 4px 0 0 4px;
    transition: height 0.3s ease;
}

.leadership-card:hover::after {
    height: 100%;
}

.leadership-card:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.2);
}

.leadership-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-card:hover .leadership-icon {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.leadership-card-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.leadership-role {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.leadership-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.leadership-details li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: var(--space-md);
    position: relative;
}

.leadership-details li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6rem;
    top: 0.5em;
}

.leadership-details li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Contact */
#contact {
    text-align: center;
    background: transparent;
    position: relative;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.contact-email-text a {
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.contact-email-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-link:hover::before {
    opacity: 0.1;
}

.contact-link:hover {
    color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.contact-link i {
    font-size: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-link:hover i {
    transform: scale(1.1) rotateZ(3deg);
}

.contact-link span {
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: var(--space-lg);
}

.footer-content p {
    opacity: 0.7;
}

/* Hero Visual - Simple Gradient Orb */
.hero-visual {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(139, 92, 246, 0.25) 50%, 
        rgba(236, 72, 153, 0.2) 100%
    );
    filter: blur(40px);
    animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive Design */

/* Tablets & Small Desktops (769px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
    }
    
    nav {
        padding: 1rem var(--space-md);
    }
    
    section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        gap: var(--space-lg);
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .work-header {
        gap: var(--space-md);
    }
    
    .work-logo {
        width: 75px;
        height: 75px;
    }
    
    .work-item h3 {
        font-size: 1.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awards-by-category {
        grid-template-columns: 1fr;
    }
}

/* Mobile/Desktop text toggle */
.mobile-text {
    display: none;
}

.desktop-text {
    display: inline;
}

/* Mobile & Tablets (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --space-sm: 0.65rem;
        --space-md: 1rem;
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --border-radius: 10px;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Show mobile text, hide desktop text */
    .mobile-text {
        display: inline;
    }
    
    .desktop-text {
        display: none;
    }
    
    /* Header & Navigation */
    header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
    }
    
    header.scrolled {
        top: 0.75rem;
        max-width: 95%;
        padding: 0;
    }
    
    header.scrolled nav {
        padding: 0.45rem 0.8rem;
    }
    
    nav {
        padding: 0.75rem var(--space-md);
        gap: var(--space-md);
    }
    
    .logo {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 70%;
        max-width: 300px;
        height: 100vh;
        padding: 100px var(--space-lg) var(--space-xl);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 1001;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        transform: translateX(50px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    
    /* Show mobile fluid toggle */
    .mobile-fluid-toggle-item {
        display: block;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 2px solid rgba(226, 232, 240, 0.5);
    }
    
    .nav-links a {
        display: block;
        padding: var(--space-md) var(--space-sm);
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--primary);
        transition: all 0.2s ease;
        border-radius: 8px;
    }
    
    .nav-links a:active {
        background: rgba(59, 130, 246, 0.1);
        transform: scale(0.98);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .burger {
        display: flex;
        z-index: 1002;
        position: relative;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer;
    }
    
    .burger div {
        width: 26px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--primary) !important;
    }
    
    /* Hero Section */
    #hero {
        min-height: auto;
        padding: 90px var(--space-md) var(--space-xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-right {
        display: none;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        margin-bottom: var(--space-sm);
        line-height: 1.1;
    }
    
    .hero-content h2 {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-stats {
        flex-direction: row;
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .stat {
        text-align: center;
        padding: var(--space-sm) var(--space-md);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        border: 1px solid rgba(59, 130, 246, 0.15);
        flex: 1;
        min-width: calc(50% - var(--space-xs));
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .stat-number {
        font-size: 1.8rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.75rem;
        margin-top: 4px;
        line-height: 1.3;
    }
    
    .hero-btns {
        gap: var(--space-sm);
        flex-direction: row;
    }
    
    .btn {
        flex: 1;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* Sections */
    section {
        padding: var(--space-xl) var(--space-md);
    }
    
    #work,
    #impact,
    #recognition,
    #skills,
    #leadership {
        padding-top: var(--space-xl);
    }
    
    #intro {
        padding: var(--space-lg) var(--space-md);
    }
    
    .section-header {
        margin-bottom: var(--space-md);
    }
    
    .section-header h2 {
        font-size: 1.75rem;
        margin-bottom: var(--space-sm);
    }
    
    /* Intro */
    .intro-text {
        font-size: 1.05rem;
        line-height: 1.65;
    }
    
    /* Work Items */
    .work-grid {
        gap: var(--space-lg);
    }
    
    .work-item {
        padding: var(--space-md);
    }
    
    .work-header {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: flex-start;
        text-align: left;
        margin-bottom: var(--space-md);
    }
    
    .work-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
        padding: 8px;
    }
    
    .work-item h3 {
        font-size: 1.3rem;
        line-height: 1.25;
    }
    
    .work-company {
        font-size: 0.75rem;
    }
    
    .work-description {
        font-size: 0.9rem;
        line-height: 1.65;
        margin-bottom: var(--space-md);
    }
    
    /* Switch to mobile descriptions */
    .desc-full {
        display: none;
    }
    
    .desc-mobile {
        display: inline;
    }
    
    .work-impact {
        flex-direction: column;
        gap: var(--space-xs);
        padding: var(--space-sm) var(--space-md);
    }
    
    .impact-item {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .work-tech {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .tech-badge {
        padding: 4px 9px;
        font-size: 0.75rem;
    }
    
    .work-links {
        justify-content: flex-start;
    }
    
    /* Projects */
    .other-projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .small-project {
        padding: var(--space-md);
    }
    
    .small-project h3 {
        font-size: 1.25rem;
    }
    
    .small-project > p {
        font-size: 0.9rem;
    }
    
    /* Impact Cards */
    .impact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .impact-card {
        padding: var(--space-md);
    }
    
    .impact-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }
    
    .impact-card h3 {
        font-size: 1.3rem;
    }
    
    /* Recognition */
    .major-awards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .major-award-card {
        padding: var(--space-md) var(--space-sm);
    }
    
    .award-logo {
        width: 90px;
        height: 65px;
        margin-bottom: var(--space-sm);
    }
    
    .award-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        margin-bottom: var(--space-xs);
    }
    
    .major-award-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-xs);
    }
    
    .award-result {
        font-size: 0.95rem;
        margin-bottom: var(--space-xs);
    }
    
    .award-details {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .awards-by-category {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .category-awards-section {
        padding: var(--space-md) var(--space-sm);
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    
    .category-header {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .awards-list-enhanced {
        gap: var(--space-sm);
    }
    
    .award-item-enhanced {
        padding: var(--space-sm);
    }
    
    .award-item-enhanced h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .award-item-enhanced p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .skill-category {
        padding: var(--space-md);
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-items span {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    
    /* Leadership */
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .leadership-card {
        padding: var(--space-md) var(--space-sm);
        display: flex;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .leadership-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .leadership-card-content h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }
    
    .leadership-role {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Contact */
    .contact-intro {
        font-size: 1rem;
        margin-bottom: var(--space-md);
        line-height: 1.6;
    }
    
    .contact-email-text {
        font-size: 0.95rem;
        margin-bottom: var(--space-lg);
    }
    
    .contact-links {
        flex-direction: row;
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .contact-link {
        padding: var(--space-md) var(--space-sm);
        flex: 1;
        min-width: 0;
    }
    
    .contact-link i {
        font-size: 1.5rem;
    }
    
    .contact-link span {
        font-size: 0.85rem;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --space-xs: 0.35rem;
        --space-sm: 0.55rem;
        --space-md: 0.85rem;
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --border-radius: 8px;
    }
    
    html {
        font-size: 14px;
    }
    
    header.scrolled {
        max-width: 96%;
    }
    
    .logo {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .burger div {
        width: 24px;
    }
    
    .nav-links {
        width: 85%;
        padding: 70px var(--space-md) var(--space-lg);
    }
    
    .nav-links a {
        font-size: 1.05rem;
        padding: var(--space-md) 0;
    }
    
    #hero {
        padding: 80px var(--space-md) var(--space-lg);
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.1;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 6px;
    }
    
    .stat {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-btns {
        gap: var(--space-xs);
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    section {
        padding: var(--space-lg) var(--space-md);
    }
    
    #work,
    #impact,
    #recognition,
    #skills,
    #leadership {
        padding-top: var(--space-lg);
    }
    
    #intro {
        padding: var(--space-md) var(--space-md);
    }
    
    .section-header {
        margin-bottom: var(--space-md);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }
    
    .section-line {
        width: 45px;
        height: 3px;
    }
    
    .intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .work-grid {
        gap: var(--space-lg);
    }
    
    .work-item {
        padding: var(--space-lg) var(--space-md);
    }
    
    .work-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-bottom: var(--space-md);
    }
    
    .work-header {
        margin-bottom: var(--space-md);
    }
    
    .work-item h3 {
        font-size: 1.25rem;
        margin-bottom: var(--space-sm);
    }
    
    .work-company {
        font-size: 0.75rem;
        margin-bottom: var(--space-md);
    }
    
    .work-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: var(--space-md);
    }
    
    .work-logo {
        width: 70px;
        height: 70px;
        padding: 8px;
        margin-bottom: var(--space-sm);
    }
    
    .work-impact {
        padding: var(--space-md);
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .impact-item {
        font-size: 0.85rem;
        padding: var(--space-xs) 0;
    }
    
    .tech-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .work-link {
        font-size: 0.88rem;
    }
    
    .other-projects-grid {
        gap: var(--space-lg);
    }
    
    .small-project {
        padding: var(--space-lg) var(--space-md);
    }
    
    .project-header {
        margin-bottom: var(--space-md);
    }
    
    .small-project h3 {
        font-size: 1.15rem;
        margin-bottom: var(--space-xs);
    }
    
    .project-tag {
        font-size: 0.7rem;
        padding: 4px 9px;
    }
    
    .small-project > p {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: var(--space-md);
    }
    
    .project-tech-inline span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .project-link-small {
        font-size: 0.85rem;
    }
    
    .major-award-card {
        padding: var(--space-md) var(--space-sm);
    }
    
    .award-logo {
        width: 90px;
        height: 60px;
    }
    
    .award-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .major-award-card h3 {
        font-size: 1.05rem;
    }
    
    .award-result {
        font-size: 0.95rem;
    }
    
    .award-details {
        font-size: 0.85rem;
    }
    
    .category-awards-section {
        padding: var(--space-md) var(--space-sm);
    }
    
    .category-header {
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    
    .category-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .category-header h3 {
        font-size: 1.15rem;
    }
    
    .awards-list-enhanced {
        gap: var(--space-sm);
    }
    
    .award-item-enhanced {
        padding: var(--space-sm);
    }
    
    .award-item-enhanced h4 {
        font-size: 0.95rem;
    }
    
    .award-item-enhanced p {
        font-size: 0.82rem;
    }
    
    .leadership-card {
        padding: var(--space-md) var(--space-sm);
    }
    
    .leadership-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    
    .leadership-card-content h3 {
        font-size: 1.1rem;
    }
    
    .leadership-role {
        font-size: 0.82rem;
    }
    
    .contact-intro {
        font-size: 0.98rem;
    }
    
    .contact-email-text {
        font-size: 0.95rem;
    }
    
    .contact-link {
        padding: var(--space-sm);
    }
    
    .contact-link i {
        font-size: 1.6rem;
    }
    
    .contact-link span {
        font-size: 0.9rem;
    }
    
    footer {
        padding: var(--space-md);
        font-size: 0.88rem;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.45rem;
    }
    
    .work-item h3,
    .small-project h3,
    .leadership-card-content h3 {
        font-size: 1.1rem;
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Staggered animations for grid items */
.work-item,
.small-project,
.impact-card,
.major-award-card,
.leadership-card,
.skill-category {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }

.small-project:nth-child(1) { animation-delay: 0.1s; }
.small-project:nth-child(2) { animation-delay: 0.2s; }
.small-project:nth-child(3) { animation-delay: 0.3s; }

.impact-card:nth-child(1) { animation-delay: 0.1s; }
.impact-card:nth-child(2) { animation-delay: 0.2s; }
.impact-card:nth-child(3) { animation-delay: 0.3s; }

.major-award-card:nth-child(1) { animation-delay: 0.1s; }
.major-award-card:nth-child(2) { animation-delay: 0.2s; }
.major-award-card:nth-child(3) { animation-delay: 0.3s; }

.leadership-card:nth-child(1) { animation-delay: 0.1s; }
.leadership-card:nth-child(2) { animation-delay: 0.2s; }
.leadership-card:nth-child(3) { animation-delay: 0.3s; }

.skill-category:nth-child(1) { animation-delay: 0.05s; }
.skill-category:nth-child(2) { animation-delay: 0.1s; }
.skill-category:nth-child(3) { animation-delay: 0.15s; }
.skill-category:nth-child(4) { animation-delay: 0.2s; }
.skill-category:nth-child(5) { animation-delay: 0.25s; }
.skill-category:nth-child(6) { animation-delay: 0.3s; }

/* Smooth scroll offset for fixed header */
section {
    scroll-margin-top: 80px;
}

/* Fluid Simulation Overlay */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0);
}

#fluid-canvas.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Fluid Toggle Button */
.fluid-toggle {
    position: fixed;
    top: 20px;
    /* Position well outside the nav links - in the right margin beyond the header content */
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    pointer-events: auto;
}

/* Adjust position when header is scrolled (pill mode) */
header.scrolled ~ .fluid-toggle {
    top: 1.25rem;
    /* Position outside the smaller pill header */
    right: max(calc((100vw - 600px) / 2 - 60px), 20px);
}

.fluid-toggle:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.fluid-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.1);
}

.fluid-toggle.disabled {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-lighter);
    border-color: rgba(0, 0, 0, 0.08);
}

.fluid-toggle.disabled:hover {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fluid-toggle i {
    transition: transform 0.3s ease;
}

.fluid-toggle:hover i {
    transform: rotate(180deg);
}

/* Modern Tooltip */
.fluid-toggle::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    right: calc(100% + 12px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.01em;
}

.fluid-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 6px);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent rgba(15, 23, 42, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fluid-toggle:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.fluid-toggle:hover::after {
    opacity: 1;
}

/* Tablet adjustments for toggle */
@media (max-width: 1024px) {
    .fluid-toggle {
        right: 80px;
    }
    
    header.scrolled ~ .fluid-toggle {
        right: 80px;
    }
}

/* Mobile adjustments for toggle */
@media (max-width: 768px) {
    .fluid-toggle {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 70px;
        font-size: 1rem;
    }
    
    header.scrolled ~ .fluid-toggle {
        right: 70px;
        top: 15px;
    }
    
    .fluid-toggle::before,
    .fluid-toggle::after {
        display: none;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .fluid-toggle {
        width: 38px;
        height: 38px;
        top: 13px;
        right: 65px;
    }
    
    header.scrolled ~ .fluid-toggle {
        right: 65px;
        top: 13px;
    }
}

/* Fluid is behind everything (z-index: 0) */
/* All content has default z-index or positive values */

/* ===== Fluid Playground (Easter Egg) ===== */
.fluid-playground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fluid-playground.active {
    opacity: 1;
    visibility: visible;
}

#playground-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.playground-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10001;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.playground-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.playground-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10001;
    max-width: 280px;
    transition: all 0.3s ease;
}

.playground-controls.minimized {
    padding: 12px 16px;
}

.playground-controls.minimized .controls-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
}

.playground-controls.minimized .controls-header {
    margin-bottom: 0;
}

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

.playground-controls h3 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--primary);
    font-weight: 600;
}

.controls-minimize {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.controls-minimize:hover {
    background: rgba(59, 130, 246, 0.1);
}

.playground-controls.minimized .controls-minimize i {
    transform: rotate(180deg);
}

.controls-minimize i {
    transition: transform 0.3s ease;
}

.controls-content {
    max-height: 500px;
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.control-group {
    margin-bottom: 12px;
}

.control-group:last-of-type {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 6px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.2);
}

.playground-reset {
    width: 100%;
    padding: 8px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.playground-reset:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.playground-reset i {
    font-size: 0.75rem;
}

/* Mobile adjustments for playground */
@media (max-width: 768px) {
    .playground-close {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .playground-controls {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 14px;
    }
    
    .playground-controls h3 {
        font-size: 0.9rem;
    }
    
    .control-group {
        margin-bottom: 10px;
    }
    
    .control-group label {
        font-size: 0.7rem;
    }
    
    .playground-reset {
        font-size: 0.75rem;
        padding: 7px;
    }
}
