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

:root {
    --white: #ffffff;
    --near-white: #fafafa;
    --light-gray: #f5f5f7;
    --mid-gray: #86868b;
    --dark-gray: #1d1d1f;
    --black: #000000;

    /* Primary Colors - Apple Inspired 3-Color Palette */
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --accent: #0071e3; /* Single accent color for consistency */

    /* Shadows */
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

/* Dark mode colors */
[data-theme="dark"] {
    --white: #000000;
    --near-white: #0a0a0a;
    --light-gray: #1a1a1a;
    --mid-gray: #a1a1a6;
    --dark-gray: #f5f5f7;
    --black: #ffffff;
    --shadow: rgba(255, 255, 255, 0.08);
    --shadow-hover: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    background: color-mix(in srgb, var(--white) 80%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] nav {
    background: color-mix(in srgb, var(--white) 80%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    background: var(--white);
    background: color-mix(in srgb, var(--white) 95%, transparent);
    box-shadow: 0 2px 8px var(--shadow);
}

[data-theme="dark"] nav.scrolled {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--blue);
    z-index: 1001;
    transform-origin: left;
    transition: transform 0.1s ease-out;
}

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

nav .logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--dark-gray);
    letter-spacing: -0.03em;
    transition: opacity 0.2s;
}

nav .logo:hover {
    opacity: 0.7;
}

nav .nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

nav .nav-links li {
    display: flex;
    align-items: center;
    height: 40px; /* Ensure consistent height */
}

/* Language toggle alignment */
nav .nav-links li:has(.lang-toggle) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Theme toggle alignment */
nav .nav-links li:has(.theme-toggle) {
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.2s;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
}

/* Language Toggle - Apple Style */
.lang-toggle {
    display: flex;
    gap: 4px;
    background: var(--light-gray);
    padding: 2px;
    border-radius: 12px;
}

.lang-btn {
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--dark-gray);
    cursor: pointer;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 11px;
}

.lang-btn.active {
    background: var(--white);
    box-shadow: 0 1px 3px var(--shadow);
}

/* Intro Mode Toggle in Hero Section */
.intro-mode-toggle {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    position: relative;
    z-index: 1;
}

.intro-mode-toggle .intro-toggle {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-mode-toggle .intro-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--mid-gray);
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 12px;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.intro-mode-toggle .intro-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark-gray);
}

.intro-mode-toggle .intro-btn.active {
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode styles for intro toggle */
[data-theme="dark"] .intro-mode-toggle .intro-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .intro-mode-toggle .intro-btn {
    color: var(--light-gray);
}

[data-theme="dark"] .intro-mode-toggle .intro-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

[data-theme="dark"] .intro-mode-toggle .intro-btn.active {
    background: var(--dark-gray);
    color: var(--blue);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 18px;
}

.theme-toggle:hover {
    background: var(--mid-gray);
    transform: scale(1.1);
}

.theme-icon {
    transition: transform 0.3s;
    color: var(--dark-gray);
}

[data-theme="dark"] .theme-icon {
    color: var(--dark-gray);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    position: relative;
    overflow: hidden;
}

/* Gradient Mesh Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .particle-canvas {
    opacity: 0.35;
}

/* Floating particles background */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

/* Portrait */
.portrait-container {
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 1;
}

.portrait-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.25);
}

.hero h1 {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--mid-gray);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    position: relative;
    z-index: 1;
}

.hero .tagline {
    font-size: 21px;
    font-weight: 400;
    color: var(--mid-gray);
    max-width: 1000px;
    margin: 0 auto 48px;
    line-height: 1.381;
    text-align: justify;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 17px;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}

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

.btn-secondary:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Sections */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: var(--dark-gray);
    letter-spacing: -0.015em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: var(--mid-gray);
    margin-bottom: 60px;
    letter-spacing: -0.01em;
}

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

.skill-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px var(--shadow);
    opacity: 0;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.2);
}

.skill-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-gray);
    letter-spacing: -0.01em;
}

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

.tag {
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Experience Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 80px;
    background: var(--white);
    padding: 48px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover {
    box-shadow: 0 20px 40px var(--shadow-hover);
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 113, 227, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.company-logo {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    gap: 10px;
}

.company-logo img {
    width: 50%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-logo img:only-child {
    width: 100%;
    padding: 16px;
}

.timeline-item:hover .company-logo {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.2);
}

.timeline-item:hover .company-logo img {
    transform: scale(1.05);
}

.timeline-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 4px;
    letter-spacing: -0.015em;
}

.timeline-item .role {
    font-size: 19px;
    color: var(--mid-gray);
    margin-bottom: 8px;
    font-weight: 400;
}

.timeline-item .date-location {
    color: var(--mid-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.timeline-item .description {
    color: var(--dark-gray);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 17px;
}

.timeline-item ul {
    list-style: none;
    margin-left: 0;
}

.timeline-item li {
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
    color: var(--dark-gray);
    font-size: 17px;
    line-height: 1.47059;
}

.timeline-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.5);
}

/* Enhanced stats counter */
.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 60px auto;
    padding: 40px 60px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    width: 100%;
    max-width: 1000px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--blue);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Education & Certifications */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.15);
}

.info-card h3 {
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.info-card .subtitle-text {
    color: var(--mid-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.info-card .institution {
    color: var(--dark-gray);
    font-weight: 400;
    font-size: 17px;
}

/* Certifications List */
.cert-list {
    display: grid;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.cert-item {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px var(--shadow);
}

.cert-item:hover {
    box-shadow: 0 12px 24px var(--shadow-hover);
    transform: translateY(-4px) translateX(4px);
    border-color: rgba(0, 113, 227, 0.2);
}

.cert-name {
    color: var(--dark-gray);
    font-weight: 500;
    flex: 1;
    font-size: 17px;
}

.cert-id {
    color: var(--mid-gray);
    font-family: "SF Mono", Monaco, monospace;
    font-size: 14px;
}

/* Languages Section */
.languages-section {
    width: 100%;
    padding-top: 48px;
    margin-top: 48px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .languages-section {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.languages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

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

.language-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

.language-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.2);
}

.language-item .language-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

.language-item .language-level {
    display: inline-block;
    color: var(--mid-gray);
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    background: transparent;
    border: none;
    width: fit-content;
    margin-top: 4px;
    text-align: center;
}

/* Interests */
.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.interest-tag {
    padding: 12px 24px;
    background: var(--light-gray);
    border-radius: 980px;
    color: var(--dark-gray);
    font-size: 17px;
    transition: all 0.2s;
}

.interest-tag:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.2);
}

.interest-tag:hover::before {
    transform: translateY(0);
}

.interest-tag:hover span {
    color: white;
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.contact-methods {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 40px;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 200px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: var(--dark-gray);
    box-shadow: 0 4px 6px var(--shadow);
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.3);
}

.contact-item:hover .contact-icon {
    animation: float 2s ease-in-out infinite;
}

.contact-icon {
    font-size: 32px;
    font-weight: 300;
    font-family: 'Inter', -apple-system, sans-serif;
}

.contact-text {
    font-size: 17px;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-gray);
    color: var(--mid-gray);
    font-size: 12px;
}

footer p {
    margin: 4px 0;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border: none;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.5);
}

.scroll-top:active {
    transform: scale(1.05);
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue) 0%, rgba(0, 113, 227, 0.3) 100%);
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--dark-gray);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-size: 48px;
    font-weight: 700;
    background: var(--blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--dark-gray);
    transition: all 0.3s;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

/* Language visibility */
.lang-fr, .lang-en {
    display: none;
}

[data-lang="fr"] .lang-fr {
    display: block;
}

[data-lang="en"] .lang-en {
    display: block;
}

[data-lang="fr"] .lang-fr-inline,
[data-lang="en"] .lang-en-inline {
    display: inline;
}

.lang-fr-inline, .lang-en-inline {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-container {
        max-width: 90%;
        padding: 35px 40px;
    }
}

@media (max-width: 768px) {
    .portrait-image {
        width: 140px;
        height: 140px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero .subtitle {
        font-size: 21px;
    }

    .hero .tagline {
        font-size: 17px;
    }

    .section-title {
        font-size: 40px;
        margin-bottom: 48px;
    }

    .section-subtitle {
        font-size: 19px;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        max-width: 100%;
        margin: 40px 20px;
    }
    
    .stat-item {
        min-width: auto;
        max-width: none;
        flex: none;
    }

    .stat-number {
        font-size: 48px;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    nav .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .timeline-item {
        padding: 32px 24px;
    }

    .skills-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        width: 100%;
    }

    .contact-item {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .particle-canvas,
    nav,
    .scroll-top,
    .cta-buttons,
    .page-loader,
    .progress-bar,
    button,
    .badge {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        background: white !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
        padding: 30px 0 !important;
    }

    .portrait-image {
        border: 2px solid #ddd !important;
        box-shadow: none !important;
    }

    .timeline-item,
    .skill-card,
    .info-card,
    .cert-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .section-title {
        color: #000 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }

    a {
        color: #0071e3 !important;
        text-decoration: underline !important;
    }

    .stat-number {
        color: #0071e3 !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 16px 40px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

/* ========== NEW ENHANCEMENTS ========== */

/* Section Numbers */
.section-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--mid-gray);
    opacity: 0.5;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-align: center;
    font-family: "SF Mono", Monaco, monospace;
}

/* Enhanced Skills with Proficiency Bars */
.skill-card {
    position: relative;
}

.skill-with-level {
    margin-bottom: 20px;
}

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

.skill-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
}

.skill-level {
    font-size: 13px;
    color: var(--mid-gray);
    font-weight: 500;
    padding: 0;
    background: transparent;
    border: none;
}

.skill-progress-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue-hover));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

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

/* Projects Grid - Modern Timeline Style */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    padding-left: 6px;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 4px 0 0 4px;
}

.project-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 149, 0, 0.3);
}

.project-card.featured::before {
    width: 6px;
    background: var(--accent);
}

.project-header {
    padding: 28px 32px 20px 32px;
    background: var(--white);
}

.project-client {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.project-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--dark-gray);
}

.project-period {
    font-size: 14px;
    color: var(--mid-gray);
    font-weight: 500;
}

.project-body {
    padding: 0 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-description {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 15px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--blue);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 113, 227, 0.12);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(0, 113, 227, 0.12);
    border-color: rgba(0, 113, 227, 0.2);
}

.project-metrics {
    padding: 12px 16px;
    background: var(--light-gray);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-achievements ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-achievements li {
    padding-left: 24px;
    position: relative;
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.5;
}

.project-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.8;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--accent);
}

.testimonial-text {
    color: var(--dark-gray);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--mid-gray);
    margin-bottom: 2px;
}

.testimonial-company {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.testimonial-rating {
    margin-top: 16px;
    color: #FFD60A;
    font-size: 18px;
    letter-spacing: 4px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.article-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-hover);
    border-color: var(--accent);
}

.article-header {
    padding: 24px;
    background: var(--accent);
    color: white;
}

.article-platform {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.8;
}

.article-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-description {
    color: var(--mid-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    padding: 4px 12px;
    background: rgba(191, 90, 242, 0.1);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 4px 6px var(--shadow);
}

.contact-form-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 24px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

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

.form-status {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.3);
    display: block;
}

.form-status.error {
    background: rgba(255, 45, 85, 0.1);
    color: #FF2D55;
    border: 1px solid rgba(255, 45, 85, 0.3);
    display: block;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Contact Methods Wrapper */
.contact-methods-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 40px;
}

/* QR Code Container */
.qr-code-container {
    background: var(--white);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 4px 6px var(--shadow);
    text-align: center;
}

.qr-code-container h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qr-code canvas,
.qr-code img {
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particle-canvas {
        display: none !important;
    }
}

/* Accessibility: Focus Visible */
*:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* Skip to Content Link for Screen Readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 10px;
}

/* Responsive Updates for New Sections */
@media (max-width: 1024px) {
    .contact-methods-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .download-buttons .btn {
        width: 100%;
    }

    .project-card {
        padding-left: 4px;
    }

    .project-header,
    .project-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

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

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

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

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

/* Parallax scroll effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Badge effect */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    position: relative;
    z-index: 1;
}

/* Enhanced interest tags with icons */
.interest-tag {
    padding: 12px 24px;
    background: var(--light-gray);
    border-radius: 980px;
    color: var(--dark-gray);
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interest-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, rgba(0, 113, 227, 0.8) 100%);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.interest-tag span {
    position: relative;
    z-index: 1;
}

