/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Navigation ===== */
.navbar {
    position: relative;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.nav-chibi {
    margin-left: 2rem;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.chibi-image {
    height: 70px;
    width: auto;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
}

.chibi-image:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    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%;
}

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

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

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 60px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
    animation: fadeInRight 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.scroll-down {
    text-align: center;
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-down p {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.scroll-down i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ===== Skills Section ===== */
.skills {
    padding: 80px 20px;
    background-color: var(--bg-color);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.skill-category h3 {
    color: white;
    margin-bottom: 0;
    font-size: 1.3rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-weight: 600;
}

.skill-category .skill-list {
    padding: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--light-text);
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 20px;
}

/* ===== Experience Section ===== */
.experience {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.timeline {
    max-width: 1200px;
    margin: 3rem auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    z-index: 1;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 2;
}

/* Left positioned items */
.timeline-item-left .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
}

/* Right positioned items */
.timeline-item-right .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.experience-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.experience-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

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

.timeline-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.timeline-date .location {
    margin-left: 10px;
}

.experience-list {
    list-style: none;
    margin-top: 1rem;
}

.experience-list li {
    padding: 0.5rem 0;
    padding-left: 25px;
    position: relative;
    color: var(--light-text);
    line-height: 1.6;
}

.experience-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== Statistics Section ===== */
.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.stats .section-title,
.stats .section-subtitle {
    color: white;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

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

.stat-detail {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: normal;
    margin-top: 0.25rem;
}

/* ===== Projects Section ===== */
.projects {
    padding: 80px 20px;
    background-color: var(--bg-color);
}

.projects-carousel-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: center;
    opacity: 0.6;
    transform: scale(0.9);
    border: 3px solid transparent;
}

.project-card.active {
    opacity: 1;
    transform: scale(1);
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.4);
}

.project-card:hover {
    transform: scale(0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card.active:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.project-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-type {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-goal {
    color: var(--text-color);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(74, 144, 226, 0.1), transparent);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.project-goal strong {
    color: var(--primary-color);
    font-weight: 700;
}

.project-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

.more-projects {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
}

.more-projects-text {
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

/* ===== Education Section ===== */
.education {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.education-image {
    width: 100%;
    max-width: 350px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.education-card:hover .education-image img {
    transform: scale(1.05);
}

.education-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.education-location {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gpa {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    display: inline-block;
}

.gpa-label {
    color: var(--light-text);
    margin-right: 0.5rem;
}

.gpa-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.coursework {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 1rem;
}

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

.certifications-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

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

.certification-badge {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

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

a.certification-badge {
    color: inherit;
}

.certification-badge .cert-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.certification-badge p {
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== Publications Section ===== */
.publications {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.publications-carousel-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

.publications-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.publications-carousel::-webkit-scrollbar {
    height: 8px;
}

.publications-carousel::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.publications-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.publication-card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    scroll-snap-align: center;
    opacity: 1;
    transform: scale(1);
    border: 1px solid transparent;
}

.publication-card.active {
    opacity: 1;
    transform: scale(1);
    border: 1px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.publication-card:hover {
    transform: scale(0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.publication-card.active:hover {
    transform: scale(1.02);
}

.publication-content {
    padding: 2rem;
}

.publication-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.publication-content h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.publication-authors {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.publication-venue {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.publication-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: var(--transition);
}

.impact-badge:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(118, 75, 162, 0.2));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.impact-badge i {
    font-size: 0.75rem;
}

.publication-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

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

.publication-link:hover {
    color: var(--secondary-color);
}

.view-more-publications {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Contact Section ===== */
.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-details h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-details p {
    color: var(--light-text);
    margin: 0;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-form-container h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

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

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 20px 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ===== Animations ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* ===== Responsive Design ===== */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-chibi {
        display: none;
    }

    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-social-links {
        justify-content: flex-start;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item::before {
        left: 11px;
        transform: none;
    }
    
    .timeline-item-left .timeline-content,
    .timeline-item-right .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

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

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

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .hero-image img {
        width: 250px;
        height: 250px;
    }

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

    .publication-card,
    .project-card {
        min-width: 280px;
        max-width: 280px;
    }

    .publications-carousel-container,
    .projects-carousel-container {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

