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

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Dark Theme */
[data-theme="dark"] {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #111827;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --glow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
        --glow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    button, a, .nav-link, .accordion-header {
        min-height: 44px;
        min-width: 44px;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .navbar {
        background: rgba(17, 24, 39, 0.95);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

[data-theme="dark"] .nav-menu {
    background: rgba(17, 24, 39, 0.95);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-menu {
        background: rgba(17, 24, 39, 0.95);
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.sun-icon,
.moon-icon {
    font-size: 1.5rem;
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .sun-icon,
:root:not([data-theme="light"]) .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon,
:root:not([data-theme="light"]) .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Only apply dark moon icon if system prefers dark and no explicit theme is set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .sun-icon {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    
    :root:not([data-theme]) .moon-icon {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero {
        background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

[data-theme="dark"] .hero::before {
    opacity: 0.1;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero::before {
        opacity: 0.1;
    }
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s infinite ease-in-out;
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero::after {
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.name {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #fff 0%, #f0f0f0 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-primary {
        background: var(--bg-white);
        color: var(--primary-color);
    }
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), var(--glow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    filter: blur(8px);
    opacity: 0.6;
}

/* About Section */
.about {
    background: var(--bg-light);
}

[data-theme="dark"] .about {
    background: var(--bg-white);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .about {
        background: var(--bg-white);
    }
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    animation: fadeInLeft 0.6s ease-out;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 4px var(--bg-light), 0 0 10px rgba(99, 102, 241, 0.3);
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

[data-theme="dark"] .timeline-content {
    border-color: rgba(99, 102, 241, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .timeline-content {
        border-color: rgba(99, 102, 241, 0.2);
    }
}

.timeline-content:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), var(--bg-white));
}

[data-theme="dark"] .timeline-content:hover {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), var(--bg-light));
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .timeline-content:hover {
        background: linear-gradient(to right, rgba(99, 102, 241, 0.1), var(--bg-light));
    }
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-company {
    font-weight: 600;
    margin: 0.5rem 0;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.timeline-content li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

[data-theme="dark"] .skills {
    background: var(--bg-white);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .skills {
        background: var(--bg-white);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

[data-theme="dark"] .skill-card {
    border-color: rgba(99, 102, 241, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .skill-card {
        border-color: rgba(99, 102, 241, 0.2);
    }
}

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

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

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-light);
}

/* Certifications */
.certifications {
    margin-top: 4rem;
    text-align: center;
}

.cert-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-badge::before {
    content: '✓';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
}

.cert-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), var(--glow);
    background-position: 100% 50%;
    padding-left: 2.5rem;
}

.cert-badge:hover::before {
    left: 1rem;
    opacity: 1;
}

/* Publications Section */
.publications {
    background: var(--bg-light);
}

[data-theme="dark"] .publications {
    background: var(--bg-white);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .publications {
        background: var(--bg-white);
    }
}

.publications-content {
    max-width: 1100px;
    margin: 0 auto;
}

.publications-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.publications-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Publication Stats */
.pub-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-width: 150px;
    transition: var(--transition);
}

[data-theme="dark"] .stat-item {
    background: var(--bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .stat-item {
        background: var(--bg-light);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Accordion */
.pub-accordion {
    max-width: 1000px;
    margin: 2rem auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .accordion-item {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .accordion-item {
        background: var(--bg-light);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.15);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.accordion-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.accordion-icon {
    font-size: 2rem;
}

.accordion-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.accordion-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.accordion-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 2rem;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    padding: 0 2rem 1.5rem 2rem;
    transition: max-height 0.6s ease-in, padding 0.4s ease-in;
}

.publication-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .publication-category {
    background: var(--bg-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .publication-category {
        background: var(--bg-light);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.category-icon {
    font-size: 2rem;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border-left: 4px solid transparent;
    gap: 1rem;
}

.publication-item:hover {
    background: var(--bg-white);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .publication-item:hover {
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .publication-item:hover {
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }
}

.pub-title {
    flex: 1;
    font-weight: 500;
    line-height: 1.5;
}

.pub-type {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

[data-theme="dark"] .achievements {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .achievements {
        background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
    }
}

[data-theme="dark"] .achievements {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .achievements {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    }
}

.achievements .section-title {
    color: white;
}

.achievements .section-title::after {
    background: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.achievement-card:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s;
    z-index: -1;
}

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

.contact-item:hover {
    color: white;
    transform: translateX(10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--glow);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem;
}

[data-theme="dark"] .footer {
    background: #0f172a;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .footer {
        background: #0f172a;
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

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

/* Mobile devices */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        width: 45px;
        height: 45px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }

    [data-theme="dark"] .nav-menu {
        background: var(--bg-light);
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .nav-menu {
            background: var(--bg-light);
        }
    }

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

    .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: 2rem 1rem;
    }

    .name {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

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

    /* About Section */
    .about-text p {
        font-size: 1rem;
    }

    /* Timeline */
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
        width: 18px;
        height: 18px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content ul {
        font-size: 0.9rem;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

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

    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cert-badge {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    /* Publications */
    .publications-intro p {
        font-size: 1rem;
    }

    .pub-stats {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 100px;
        padding: 1rem 1.5rem;
        flex: 1;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .accordion-header {
        padding: 1rem 1rem;
    }

    .accordion-title {
        gap: 0.8rem;
    }

    .accordion-icon {
        font-size: 1.5rem;
    }

    .accordion-text {
        font-size: 1rem;
    }

    .accordion-count {
        display: none;
    }

    .accordion-content {
        padding: 0 1rem;
    }

    .accordion-item.active .accordion-content {
        padding: 0 1rem 1rem 1rem;
    }

    .publication-category {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }

    .publication-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }

    .pub-title {
        font-size: 0.95rem;
    }

    .pub-type {
        align-self: flex-start;
        font-size: 0.8rem;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .achievement-card {
        padding: 1.5rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

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

    .contact-item {
        padding: 1.2rem;
        font-size: 0.95rem;
    }

    .contact-icon {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

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

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

    .stat-item {
        min-width: 90px;
        padding: 0.8rem 1rem;
    }

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

    .accordion-text {
        font-size: 0.9rem;
    }

    .pub-title {
        font-size: 0.9rem;
    }

    .achievement-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
