/* CSS Variables */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #06b6d4;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --background-dark: #0f172a;
  --background-card: #1e293b;
  --background-secondary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #475569;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --border-radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.nav-brand h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--primary-color);
}

.nav-toggle {
  display: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-card) 50%, var(--background-secondary) 100%);
}

.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.geometric-shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
}

.shape-2 {
  top: 60%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  transform: rotate(45deg);
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--accent-color), var(--warning-color));
  border-radius: 30%;
}

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

.hero-content {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stats-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  transform: translateY(-4px);
}

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

.stats-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1;
}

.stats-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #1d4ed8, #0e7490);
  transform: translateY(-2px);
}

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

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

.btn-full {
  width: 100%;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 64rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: rgba(30, 41, 59, 0.5);
}

.about-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.card-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.badge-blue { background: var(--primary-color); }
.badge-cyan { background: var(--secondary-color); }
.badge-green { background: var(--accent-color); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.expertise-column h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.expertise-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expertise-column li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  position: relative;
  padding-left: 1rem;
}

.expertise-column li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Skills Section */
.skills-section {
  margin-top: 4rem;
}

.skills-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.skill-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 12rem;
  background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
  position: relative;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.project-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
}

.project-status {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.project-title {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.project-location {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.project-content {
  padding: 1.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-type {
  color: var(--primary-color);
  font-weight: 600;
}

.project-value {
  color: var(--accent-color);
  font-weight: 700;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--background-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: rgba(30, 41, 59, 0.5);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features i {
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-card {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.contact-info {
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
  width: 1.5rem;
}

.contact-item h4 {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.certifications {
  margin: 1.5rem 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(71, 85, 105, 0.3);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.cert-item i {
  color: var(--warning-color);
  font-size: 2rem;
}

.cert-item h4 {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.cert-item p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Footer */
.footer {
  background: var(--background-dark);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--background-card);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 64rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
}

.scroll-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.scroll-top.show {
  display: block;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 4rem;
    flex-direction: column;
    background-color: var(--background-card);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
  }

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

  .nav-toggle {
    display: block;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 5rem 0 3rem;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .about-section,
  .projects-section,
  .services-section,
  .contact-section {
    padding: 3rem 0;
  }
}



.about-photo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.5);
}



/* Publications Section Styles */
.publications-section {
    padding: 6rem 0 4rem;
    background: var(--background-dark);
}

.publications-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.publication-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.publication-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-lg);
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0;
}

.author-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-details h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.author-details p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.publication-date {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.publication-actions .action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.publication-actions .action-btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.publication-content {
    padding: 1rem 1.5rem;
}

.publication-content h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.publication-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.publication-tags .tag {
    background: var(--background-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.publication-tags .tag:hover {
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}

.publication-image {
    margin: 0 1.5rem 1rem;
}

.publication-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

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

.engagement-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.engagement-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engagement-stats i {
    color: var(--primary-color);
}

.engagement-actions {
    display: flex;
    gap: 1rem;
}

.engagement-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Mobile Responsiveness for Publications */
@media (max-width: 768px) {
    .publications-section {
        padding: 4rem 0 2rem;
    }
    
    .publication-header {
        padding: 1rem 1rem 0;
    }
    
    .publication-content {
        padding: 1rem;
    }
    
    .publication-image {
        margin: 0 1rem 1rem;
    }
    
    .publication-footer {
        padding: 1rem;
    }
    
    .engagement-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .engagement-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}


/* Search Functionality */
.nav-search {
    position: relative;
    margin-left: 2rem;
}

.search-container {
    position: relative;
}

.search-input {
    width: 300px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-type {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Project Filters */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    background: var(--background-card);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Load More Container */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Enhanced Project Cards */
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.project-year {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-role {
    font-size: 0.75rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
    .nav-search {
        display: none;
    }
    
    .project-filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .search-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-filters {
        padding: 1rem;
    }
    
    .filter-select {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile Search (can be added later) */
.mobile-search {
    display: none;
    padding: 1rem;
    background: var(--background-card);
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .mobile-search {
        display: block;
    }
    
    .mobile-search .search-input {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

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

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* Progress Tracker Section */
.progress-tracker-section {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.progress-tracker-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-align: center;
}

#reading-progress {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.progress-stat {
    text-align: center;
    color: white;
}

.progress-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Read More Button */
.read-more-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.read-more-btn:active {
    transform: translateY(0);
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

/* Enhanced Publication Cards */
.publication-card.article-link {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.publication-card.article-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.publication-card.article-link:hover::before {
    opacity: 1;
}

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

/* Enhanced Tooltips */
.custom-tooltip {
    position: absolute;
    background: var(--background-card);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--border-color);
    max-width: 250px;
    text-align: center;
    font-weight: 500;
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-100%) translateY(-10px);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--background-card);
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.achievement-notification.show {
    transform: translateX(0);
}

.achievement-icon {
    font-size: 1.5rem;
    animation: bounce 0.6s ease-in-out;
}

.achievement-message {
    font-weight: 600;
    font-size: 0.875rem;
}

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

/* Skeleton Loading */
.skeleton-card {
    background: var(--background-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
    border: 1px solid var(--border-color);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.skeleton-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    width: 80%;
    height: 1.5rem;
    background: var(--background-secondary);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    background: var(--background-secondary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.skeleton-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Search Suggestions */
.search-suggestion {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-card);
}

.search-suggestion:hover {
    background: var(--background-secondary);
    transform: translateX(5px);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion i {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.search-suggestion:hover i {
    color: var(--primary-color);
}

.search-suggestion span {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-overlay.active {
    opacity: 0.95;
    visibility: visible;
}

.page-transition-overlay::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Card Transitions */
.project-card, .service-card, .about-card, .stats-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.project-card::before, .service-card::before, .about-card::before, .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before, .service-card:hover::before, .about-card:hover::before, .stats-card:hover::before {
    opacity: 1;
}

/* Mobile Responsiveness for Enhanced Features */
@media (max-width: 768px) {
    #reading-progress {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .progress-number {
        font-size: 2rem;
    }
    
    .achievement-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .achievement-notification.show {
        transform: translateY(0);
    }
    
    .custom-tooltip {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .progress-tracker-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .skeleton-image::before,
    .skeleton-title::before,
    .skeleton-text::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    }
}


/* Hero Dynamic Text */
.hero-dynamic-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 1.5rem 0;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.dynamic-role {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    min-width: 300px;
}

.dynamic-role::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: 400;
}

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

/* Enhanced Hero Section */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    line-height: 1.1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-dynamic-text {
        font-size: 1.25rem;
    }
    
    .dynamic-role {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-dynamic-text {
        font-size: 1.1rem;
    }
    
    .dynamic-role {
        min-width: 200px;
    }
}

