/* ==================== VARIABLES & RESET ==================== */
:root {
    /* Premium Color Palette */
    --primary-color: #1e5a96;
    --primary-light: #2e7cb8;
    --primary-dark: #0f3a5f;
    
    --secondary-color: #00a8a8;
    --secondary-light: #20c9c9;
    --secondary-dark: #008080;
    
    --accent-color: #00d4d4;
    --accent-warm: #ff6b35;
    
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --dark-bg: #0f1419;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    
    --text-dark: #1a2332;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-dark: #d1d5db;
    
    --shadow: 0 4px 15px rgba(30, 90, 150, 0.08);
    --shadow-md: 0 8px 25px rgba(30, 90, 150, 0.12);
    --shadow-lg: 0 15px 40px rgba(30, 90, 150, 0.15);
    --shadow-xl: 0 20px 60px rgba(30, 90, 150, 0.2);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --white: #1a202c;
    --light-bg: #2d3748;
    --text-dark: #f7fafc;
    --text-light: #e2e8f0;
    --text-lighter: #cbd5e0;
    --border-color: #4a5568;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

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

/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.water-loader {
    display: flex;
    gap: 10px;
}

.water-drop {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: waterDrop 1.4s infinite ease-in-out;
}

.water-drop:nth-child(1) {
    animation-delay: -0.32s;
}

.water-drop:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes waterDrop {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-screen p {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==================== READING PROGRESS BAR ==================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==================== WATER PARTICLE BACKGROUND ==================== */
#waterParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.theme-toggle i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

body.dark-mode .theme-toggle i:before {
    content: "\f185";
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    font-size: 1.2rem;
}

.scroll-top-btn.show {
    display: flex;
    animation: slideInRight 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(30, 90, 150, 0.06);
    z-index: 1000;
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: rgba(26, 32, 44, 0.98);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: var(--transition);
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-cv-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 70px;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e0eaf5 50%, #d0dff0 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
}

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

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 90, 150, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 168, 168, 0.1);
    color: var(--secondary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 168, 168, 0.2);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -1px;
    min-height: 4rem;
}

.typewriter {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  margin-bottom: 2.5rem;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }

  .stat-plus {
    font-size: 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero-stats {
    gap: 1.5rem;
  }

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

  .stat-plus {
    font-size: 1.2rem;
  }

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

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 20px rgba(30, 90, 150, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 90, 150, 0.35);
}

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

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

/* Ripple Effect */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

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

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
}

/* ==================== HERO IMAGE ==================== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

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

.image-decoration {
    position: absolute;
    border-radius: 20px;
    z-index: 1;
}

.decoration-1 {
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.decoration-2 {
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--accent-warm);
    opacity: 0.3;
    animation: float 5s ease-in-out infinite reverse;
}

.decoration-3 {
    top: 50%;
    right: -30px;
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    opacity: 0.3;
    animation: float 3.5s ease-in-out infinite;
}

/* ==================== WAVE DIVIDER ==================== */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider path {
    fill: var(--white);
}

/* ==================== SECTION STYLES ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 80px 0;
    background: var(--white);
}

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

.about-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(30, 90, 150, 0.05);
    position: relative;
    overflow: hidden;
}

.card-hover-effect {
    transform: translateZ(0);
}

.card-hover-effect:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.card-progress {
    width: 100%;
    height: 4px;
    background: rgba(30, 90, 150, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 2px;
}

/* ==================== EXPERIENCE MAP ==================== */
.experience-map {
    padding: 80px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.experience-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 168, 168, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.impact-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.location-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.location-card:hover::before {
    opacity: 0.05;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.location-card:hover .location-icon {
    transform: scale(1.1) rotate(5deg);
}

.location-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.location-role {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.location-org {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.location-period {
    display: inline-block;
    background: rgba(0, 168, 168, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-mini-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.world-map-visual {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.world-map-visual svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-marker {
    cursor: pointer;
    transition: var(--transition);
}

.map-marker:hover {
    transform: scale(1.1);
}

body.dark-mode .world-map-visual svg rect {
    fill: #2d3748;
}

body.dark-mode .location-card {
    background: var(--light-bg);
}

@media (max-width: 768px) {
    .impact-locations {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        padding: 1.5rem;
    }
    
    .world-map-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .location-stats {
        gap: 1rem;
    }
    
    .stat-mini-number {
        font-size: 1.3rem;
    }
    
    .stat-mini-label {
        font-size: 0.7rem;
    }
}

/* ==================== TIMELINE ==================== */
.education {
    padding: 80px 0;
    background: var(--light-bg);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: height 1s ease;
}

.timeline-line.animated {
    height: 100%;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-slow);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-marker i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.2) rotate(360deg);
    background: var(--primary-color);
}

.timeline-item:hover .timeline-marker i {
    color: white;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.expandable-card {
    cursor: pointer;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 5px;
}

.expand-btn:hover {
    transform: scale(1.2);
}

.expandable-card.expanded .expand-btn i {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-card.expanded .expandable-content {
    max-height: 500px;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

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

.institution {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

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

.highlights li {
    color: var(--text-light);
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience {
    padding: 80px 0;
    background: var(--white);
}

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

.experience-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.exp-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.exp-header {
    margin-bottom: 1rem;
}

.exp-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.exp-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.exp-company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.exp-location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.exp-highlights {
    list-style: none;
    margin-bottom: 1rem;
}

.exp-highlights li {
    color: var(--text-light);
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.exp-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: white;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* ==================== PUBLICATIONS SECTION ==================== */
.publications {
    padding: 80px 0;
    background: var(--light-bg);
}

.publication-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 90, 150, 0.1);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid var(--secondary-color);
    opacity: 1;
    transform: scale(1);
}

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

.pub-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.pub-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pub-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.pub-card:hover .pub-icon {
    transform: scale(1.1) rotate(5deg);
}

.pub-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 700;
}

.pub-authors {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.pub-journal {
    font-style: italic;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pub-tag {
    background: rgba(0, 168, 168, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 168, 168, 0.2);
}

.pub-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.pub-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pub-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.cite-btn {
    background: rgba(0, 168, 168, 0.1);
    border: none;
    color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.cite-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 80px 0;
    background: var(--white);
}

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--secondary-color);
    width: 320px;
    flex-shrink: 0;
    min-height: 400px;
}

.skill-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.skill-header span:first-child {
    color: var(--text-dark);
    font-weight: 600;
}

.skill-percent {
    color: var(--secondary-color);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 90, 150, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 4px;
    position: relative;
}

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

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

/* ==================== AWARDS SECTION ==================== */
.awards {
    padding: 80px 0;
    background: var(--light-bg);
}

.award-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    width: 280px;
    flex-shrink: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.award-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.award-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.award-item:hover .award-icon {
    transform: scale(1.2) rotate(10deg);
}

.award-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.award-item p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.award-org {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.8rem !important;
}

.award-date {
    color: var(--text-lighter);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== BLOG SECTION ==================== */
.blog {
    padding: 80px 0;
    background: var(--light-bg);
}

.blog-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--secondary-color);
    width: 320px;
    flex-shrink: 0;
    min-height: 400px;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.blog-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.blog-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

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

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-slow);
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(5deg);
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.contact-item p {
    opacity: 0.95;
    font-size: 0.95rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    opacity: 0.7;
}

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

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.form-input::placeholder {
    color: var(--text-lighter);
}

.form-input:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), white);
    transition: width 0.3s ease;
}

.form-input:focus + .form-line {
    width: 100%;
}

.contact-form .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.contact-form .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.9); }
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideInDown 0.3s ease;
    box-shadow: var(--shadow-xl);
}

body.dark-mode .modal-content {
    background: var(--light-bg);
    color: var(--text-dark);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.citation-text {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.copy-citation-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.copy-citation-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== SCROLL CONTAINER ==================== */
.scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scroll-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.scroll-grid {
    display: flex;
    gap: 2rem;
    scroll-behavior: smooth;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: max-content;
}

.scroll-nav-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    z-index: 10;
}

.scroll-nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.scroll-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.scroll-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.scroll-indicator {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 30px;
    border-radius: 5px;
}

.scroll-indicator:hover {
    background: var(--secondary-color);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

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

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .download-cv-btn {
        display: none;
    }

    .hero {
        padding: 60px 0 80px;
    }

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

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

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

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

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-marker {
        left: 0;
        transform: none;
    }

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

    .publication-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .theme-toggle {
        top: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .skill-category,
    .blog-card {
        width: 300px;
    }

    .award-item {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .hero {
        margin-top: 60px;
        padding: 40px 0 60px;
    }

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

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

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

    .hero-stats {
        gap: 1.5rem;
    }

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

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

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    .image-placeholder {
        font-size: 60px;
    }

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

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

    .about-card,
    .experience-card,
    .pub-card,
    .award-item,
    .skill-category {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .scroll-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .skill-category,
    .blog-card {
        width: 280px;
        min-height: auto;
    }

    .award-item {
        width: 240px;
        min-height: auto;
    }

    .scroll-indicators {
        gap: 0.6rem;
    }

    .scroll-indicator {
        width: 8px;
        height: 8px;
    }

    .scroll-indicator.active {
        width: 24px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .image-wrapper {
        width: 180px;
        height: 180px;
    }

    .image-placeholder {
        font-size: 50px;
    }

    .skill-category,
    .blog-card {
        width: 260px;
    }

    .award-item {
        width: 220px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number,
    .stat-plus {
        font-size: 1.6rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .nav-link::after {
        height: 3px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-top-btn,
    .theme-toggle,
    .reading-progress,
    .hamburger,
    .download-cv-btn,
    .scroll-nav-btn,
    .scroll-indicators,
    #waterParticles {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        margin-top: 0;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    visibility: visible !important;
    opacity: 1 !important;
}

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

.slide-up {
    animation: fadeInUp 0.6s ease;
}

.slide-down {
    animation: fadeInDown 0.6s ease;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-bg);
}

/* ==================== SELECTION STYLES ==================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ==================== LOADING ANIMATIONS ==================== */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--light-bg) 25%,
        var(--border-color) 50%,
        var(--light-bg) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== TOOLTIPS ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--dark-bg);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    margin-bottom: 5px;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-bg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==================== NOTIFICATION STYLES ==================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    max-width: 90%;
    word-wrap: break-word;
    animation: slideInRight 0.3s ease;
    font-weight: 500;
}

.notification-success {
    background: var(--success-color);
    color: white;
}

.notification-error {
    background: var(--danger-color);
    color: white;
}

.notification-info {
    background: var(--primary-color);
    color: white;
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== GLASS MORPHISM ==================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ==================== NOISE TEXTURE ==================== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* ==================== TIMELINE BY YEAR SECTION - STANDALONE ==================== */

/* Section Container */
.timeline-by-year {
  padding: 80px 0 !important;
  background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.timeline-by-year::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  right: -10% !important;
  width: 500px !important;
  height: 500px !important;
  background: radial-gradient(circle, rgba(0, 168, 168, 0.05) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  animation: float 6s ease-in-out infinite !important;
}

/* Year Timeline Container */
.year-timeline-container {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 3rem !important;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
}

.year-timeline-wrapper {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: visible !important;
  border-radius: 12px !important;
  background: white !important;
  padding: 2rem 0 !important;
  box-shadow: 0 8px 25px rgba(30, 90, 150, 0.12) !important;
}

.year-timeline {
  display: flex !important;
  gap: 1.5rem !important;
  padding: 0 1.5rem !important;
  scroll-behavior: smooth !important;
  width: max-content !important;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  align-items: center !important;
}

/* Timeline Connector Line */
.timeline-connector {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #1e5a96 0%, #00a8a8 50%, #1e5a96 100%) !important;
  z-index: 0 !important;
  transform: translateY(-50%) !important;
}

/* Year Bubbles */
.year-bubble {
  min-width: 110px !important;
  width: 110px !important;
  height: 110px !important;
  background: white !important;
  border: 3px solid #e5e7eb !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  flex-shrink: 0 !important;
  z-index: 2 !important;
  box-shadow: 0 2px 8px rgba(30, 90, 150, 0.08) !important;
}

.year-bubble:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 40px rgba(30, 90, 150, 0.15) !important;
  border-color: #00a8a8 !important;
}

.year-bubble.active {
  background: linear-gradient(135deg, #1e5a96, #00a8a8) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: 0 15px 40px rgba(30, 90, 150, 0.4) !important;
  transform: scale(1.25) translateY(-15px) !important;
  min-width: 130px !important;
  width: 130px !important;
  height: 130px !important;
}

.year-text {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e5a96 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.year-bubble.active .year-text {
  color: white !important;
  font-size: 1.8rem !important;
}

/* Scroll Buttons */
.year-scroll-btn {
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, #1e5a96, #00a8a8) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 25px rgba(30, 90, 150, 0.12) !important;
  flex-shrink: 0 !important;
  z-index: 10 !important;
  position: relative !important;
}

.year-scroll-btn:hover:not(:disabled) {
  transform: scale(1.1) !important;
  box-shadow: 0 15px 40px rgba(30, 90, 150, 0.15) !important;
}

.year-scroll-btn:active:not(:disabled) {
  transform: scale(0.95) !important;
}

.year-scroll-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.year-scroll-prev {
  order: -1 !important;
}

.year-scroll-next {
  order: 3 !important;
}

/* Year Content Display */
.year-content-display {
  background: white !important;
  border-radius: 16px !important;
  padding: 3rem !important;
  min-height: 400px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 15px 40px rgba(30, 90, 150, 0.15) !important;
  border: 1px solid #e5e7eb !important;
}

.year-content {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  padding: 3rem !important;
  pointer-events: none !important;
  top: 0 !important;
  left: 0 !important;
}

.year-content.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
  position: relative !important;
  pointer-events: auto !important;
}

/* Year Header */
.year-header {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
  padding-bottom: 1.5rem !important;
  border-bottom: 2px solid #e5e7eb !important;
}

.year-header h3 {
  font-size: 2.2rem !important;
  color: #1e5a96 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.year-status {
  display: inline-block !important;
  background: linear-gradient(135deg, #1e5a96, #00a8a8) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}

/* Year Achievements */
.year-achievements {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.8rem !important;
}

.achievement-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
}

.achievement-group h4 {
  font-size: 1.1rem !important;
  color: #1e5a96 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  margin: 0 !important;
}

.achievement-group h4 i {
  font-size: 1.2rem !important;
  color: #00a8a8 !important;
}

.achievement-group ul {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.7rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.achievement-group li {
  color: #1a2332 !important;
  padding-left: 1.8rem !important;
  position: relative !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

.achievement-group li::before {
  content: '▸' !important;
  position: absolute !important;
  left: 0 !important;
  color: #00a8a8 !important;
  font-weight: bold !important;
  font-size: 1.2rem !important;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .year-content-display {
    padding: 2rem !important;
    min-height: 350px !important;
  }

  .year-content {
    padding: 2rem !important;
  }

  .year-header h3 {
    font-size: 1.8rem !important;
  }

  .achievement-group h4 {
    font-size: 1rem !important;
  }

  .achievement-group li {
    font-size: 0.9rem !important;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .timeline-by-year {
    padding: 60px 0 !important;
  }

  .year-timeline-container {
    gap: 0.8rem !important;
  }

  .year-bubble {
    min-width: 95px !important;
    width: 95px !important;
    height: 95px !important;
  }

  .year-text {
    font-size: 1.3rem !important;
  }

  .year-bubble.active {
    transform: scale(1.2) translateY(-12px) !important;
    min-width: 110px !important;
    width: 110px !important;
    height: 110px !important;
  }

  .year-bubble.active .year-text {
    font-size: 1.5rem !important;
  }

  .year-timeline-wrapper {
    padding: 1.5rem 0 !important;
  }

  .year-timeline {
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  .year-scroll-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1rem !important;
  }

  .year-content-display {
    padding: 1.5rem !important;
    min-height: 300px !important;
  }

  .year-content {
    padding: 1.5rem !important;
  }

  .year-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
  }

  .year-header h3 {
    font-size: 1.5rem !important;
  }

  .year-status {
    padding: 0.4rem 1rem !important;
    font-size: 0.75rem !important;
  }

  .achievement-group h4 {
    font-size: 0.95rem !important;
  }

  .achievement-group li {
    font-size: 0.85rem !important;
    padding-left: 1.5rem !important;
  }

  .year-achievements {
    gap: 1.2rem !important;
  }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
  .timeline-by-year {
    padding: 40px 0 !important;
  }

  .year-timeline-container {
    gap: 0.6rem !important;
  }

  .year-bubble {
    min-width: 80px !important;
    width: 80px !important;
    height: 80px !important;
  }

  .year-text {
    font-size: 1.1rem !important;
  }

  .year-bubble:hover {
    transform: translateY(-6px) !important;
  }

  .year-bubble.active {
    transform: scale(1.15) translateY(-10px) !important;
    min-width: 90px !important;
    width: 90px !important;
    height: 90px !important;
  }

  .year-bubble.active .year-text {
    font-size: 1.3rem !important;
  }

  .year-timeline-wrapper {
    padding: 1.5rem 0 !important;
  }

  .year-timeline {
    gap: 1rem !important;
    padding: 0 0.8rem !important;
  }

  .year-scroll-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }

  .year-content-display {
    padding: 1rem !important;
    min-height: 250px !important;
  }

  .year-content {
    padding: 1rem !important;
  }

  .year-header {
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .year-header h3 {
    font-size: 1.3rem !important;
  }

  .year-status {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.7rem !important;
  }

  .achievement-group h4 {
    font-size: 0.9rem !important;
  }

  .achievement-group h4 i {
    font-size: 1rem !important;
  }

  .achievement-group li {
    font-size: 0.8rem !important;
    padding-left: 1.3rem !important;
  }

  .achievement-group {
    gap: 0.6rem !important;
  }

  .year-achievements {
    gap: 1rem !important;
  }
}

/* Responsive Design - Extra Small */
@media (max-width: 360px) {
  .year-timeline-container {
    gap: 0.4rem !important;
  }

  .year-bubble {
    min-width: 70px !important;
    width: 70px !important;
    height: 70px !important;
  }

  .year-text {
    font-size: 1rem !important;
  }

  .year-bubble.active {
    min-width: 80px !important;
    width: 80px !important;
    height: 80px !important;
  }

  .year-bubble.active .year-text {
    font-size: 1.2rem !important;
  }

  .year-scroll-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
  }

  .year-header h3 {
    font-size: 1.1rem !important;
  }

  .achievement-group h4 {
    font-size: 0.85rem !important;
  }

  .achievement-group li {
    font-size: 0.75rem !important;
  }
}

/* Dark Mode Support */
body.dark-mode .timeline-by-year {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
}

body.dark-mode .year-timeline-wrapper,
body.dark-mode .year-content-display {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

body.dark-mode .year-bubble {
  background: #2d3748 !important;
  border-color: #4a5568 !important;
}

body.dark-mode .year-text {
  color: #f7fafc !important;
}

body.dark-mode .year-header {
  border-bottom-color: #4a5568 !important;
}

body.dark-mode .year-header h3,
body.dark-mode .achievement-group h4 {
  color: #e2e8f0 !important;
}

body.dark-mode .achievement-group li {
  color: #cbd5e0 !important;
}

/* Animation Keyframe */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ==================== END OF STYLESHEET ==================== */