/*=======================
  Global Styles
========================*/
/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/*=============== VARIABLES ===============*/
:root {
  /* Colors */
  --primary-color: #4285F4; /* Google AI Blue */
  --primary-color-light: #6ea8ff;
  --secondary-color: #34A853; /* Green accent */
  --tertiary-color: #FBBC05; /* Yellow accent */
  --accent-color: #EA4335; /* Red accent */
  
  /* Light Theme */
  --text-color: #202124;
  --text-color-light: #5F6368;
  --bg-color: #FFFFFF;
  --bg-alt-color: #F8F9FA;
  --border-color: #DADCE0;
  --highlight-color: #4285F4;
  --success-color: #34A853;
  --error-color: #EA4335;
  --warning-color: #FBBC05;
  
  /* Dark Mode Colors */
  --dark-bg-color: #202124;
  --dark-bg-alt-color: #303134;
  --dark-text-color: #E8EAED;
  --dark-text-color-light: #9AA0A6;
  --dark-border-color: #3C4043;
  
  /* Font Family */
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Poppins', sans-serif;
  --mono-font: 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --font-xxs: 0.75rem;    /* 12px */
  --font-xs: 0.875rem;    /* 14px */
  --font-sm: 1rem;        /* 16px */
  --font-md: 1.125rem;    /* 18px */
  --font-lg: 1.25rem;     /* 20px */
  --font-xl: 1.5rem;      /* 24px */
  --font-xxl: 2rem;       /* 32px */
  --font-huge: 2.5rem;    /* 40px */
  --font-jumbo: 3rem;     /* 48px */
  
  /* Spacing */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-xxl: 3rem;      /* 48px */
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-round: 50%;
  
  /* Box Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index levels */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-alt-color);
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-sm);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--border-radius-md);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-jumbo);
}

h2 {
  font-size: var(--font-xxl);
}

h3 {
  font-size: var(--font-xl);
}

h4 {
  font-size: var(--font-lg);
}

h5 {
  font-size: var(--font-md);
}

h6 {
  font-size: var(--font-sm);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-color-light);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

img {
  max-width: 100%;
  height: auto;
}

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xxl) 0;
}

.bg-alt {
  background-color: var(--bg-alt-color);
}

.highlight {
  color: var(--highlight-color);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.section-line {
  height: 3px;
  width: 60px;
  background-color: var(--primary-color);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--bg-alt-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/*=======================
  Buttons
========================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

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

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

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

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: var(--font-xs);
}

.btn-icon {
  margin-left: var(--space-xs);
}

.btn-text {
  margin-right: var(--space-xs);
}

/*=======================
  Header & Navigation
========================*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(32, 33, 36, 0.9); /* Darkened for better visibility */
  transition: all var(--transition-normal);
  padding: var(--space-md) 0;
  backdrop-filter: blur(10px);
}

#header.scrolled {
  background-color: var(--dark-bg-color);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  flex: 0 0 auto;
  min-width: 60px;
  margin-right: var(--space-xl);
}

.header-right {
  flex: 0 0 auto;
  margin-left: var(--space-md);
}

.logo {
  font-size: var(--font-xl);
  font-weight: 700;
  z-index: var(--z-fixed);
}

.logo a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo span {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: var(--border-radius-sm);
}

#nav {
  display: flex;
  flex: 1;
  justify-content: center;
  overflow-x: visible;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  margin: 0 var(--space-xl);
  min-width: 0; /* Enable proper flexbox shrinking */
}

#nav::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0; /* Enable proper flexbox shrinking */
}

.mobile-menu-header {
  display: none;
  width: 100%;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.close-mobile-menu {
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-mobile-menu:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: white; /* Always white text */
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add text shadow for better visibility */
}

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

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-color-light); /* Lighter color for better visibility */
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  z-index: var(--z-fixed);
  margin-left: var(--space-sm);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white; /* Make hamburger menu white */
  position: absolute;
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

.theme-toggle {
  cursor: pointer;
  margin-left: var(--space-md);
  font-size: var(--font-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-round);
  background-color: var(--bg-alt-color);
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border-color);
}

/*=======================
  Hero Section
========================*/
.hero {
  position: relative;
  padding: 180px 0 120px 0;
  background-color: var(--bg-color);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xxl);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: var(--font-jumbo);
  margin-bottom: var(--space-sm);
}

.hero-text h2 {
  font-size: var(--font-xxl);
  margin-bottom: var(--space-lg);
}

/* Hidden by default - only displayed on mobile */
.hero-text .mobile-profile-img {
  display: none;
}

.hero-text .mobile-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.title-container {
  height: 3rem;
}

.title-animation {
  color: var(--primary-color);
  position: relative;
}

.title-animation::after {
  content: '|';
  position: absolute;
  right: -5px;
  animation: blink 0.8s infinite;
}

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

.hero-text p {
  font-size: var(--font-md);
  color: var(--text-color-light);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt-color);
  color: var(--text-color);
  border-radius: var(--border-radius-round);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  position: relative;
  max-width: 500px;
}

.profile-img-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--color-bg-alt);
  z-index: 1;
}

.profile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.floating-shape {
  position: absolute;
  border-radius: var(--border-radius-round);
  z-index: var(--z-back);
  opacity: 0.7;
}

.shape-1 {
  background-color: var(--primary-color);
  width: 80px;
  height: 80px;
  top: -20px;
  left: -20px;
  animation: float1 5s ease-in-out infinite;
}

.shape-2 {
  background-color: var(--secondary-color);
  width: 60px;
  height: 60px;
  bottom: -15px;
  right: -15px;
  animation: float2 5s ease-in-out infinite;
}

.shape-3 {
  background-color: var(--warning-color);
  width: 40px;
  height: 40px;
  bottom: 50px;
  left: -15px;
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, 10px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, -5px) rotate(-5deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5px, 10px) rotate(10deg); }
  66% { transform: translate(-5px, 5px) rotate(-10deg); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave img {
  width: 100%;
  height: auto;
}

/*=======================
  About Section
========================*/
.about-content {
  display: flex;
  align-items: center;
  gap: var(--space-xxl);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-md);
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.info-item h4 {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--space-xs);
}

.info-item p {
  color: var(--text-color-light);
  margin-bottom: 0;
}



.about-stats {
  flex: 1;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat-item {
  background-color: var(--bg-color);
  padding: var(--space-xl);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-fast);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: var(--font-xxl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.stat-item p {
  font-size: var(--font-xs);
  margin-bottom: 0;
}

/*=======================
  Skills Section
========================*/
.skills-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.skill-category h3 {
  margin-bottom: var(--space-lg);
  font-size: var(--font-lg);
  text-align: center;
  position: relative;
  padding-bottom: var(--space-sm);
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-lg);
}

.skill-item {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.skill-icon {
  font-size: var(--font-xl);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.skill-item h4 {
  font-size: var(--font-xs);
  margin-bottom: var(--space-xs);
}

.skill-level {
  display: inline-block;
  font-size: var(--font-xxs);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 5px;
}

.basic {
  background-color: rgba(255, 193, 7, 0.2);
  color: #f1a500;
}

.intermediate {
  background-color: rgba(23, 162, 184, 0.2);
  color: #138496;
}

.advanced {
  background-color: rgba(40, 167, 69, 0.2);
  color: #1e7e34;
}

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

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

.timeline-item {
  position: relative;
  padding: 0 0 var(--space-xl) 50px;
}

.timeline-marker {
  position: absolute;
  top: 5px;
  left: 0;
  width: 35px;
  height: 35px;
  border-radius: var(--border-radius-round);
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: white;
  border-radius: var(--border-radius-round);
}

.timeline-content {
  background-color: var(--bg-color);
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-content h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-xs);
}

.timeline-content h4 {
  font-size: var(--font-md);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.timeline-date {
  display: inline-block;
  font-size: var(--font-xs);
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
}

.timeline-duties {
  margin-bottom: 0;
}

.timeline-duties li {
  margin-bottom: var(--space-xs);
}

.timeline-duties li:last-child {
  margin-bottom: 0;
}

/*=======================
  Projects Section
========================*/
.projects-filter {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

#project-search {
  width: 100%;
  padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  transition: all var(--transition-fast);
}

#project-search:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 46, 255, 0.2);
}

.search-container i {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-light);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-jumbo);
  color: white;
}

.ai-bg {
  background: linear-gradient(135deg, #2e2eff, #1ab394);
}

.nlp-bg {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.data-bg {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.research-bg {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.project-content {
  padding: var(--space-lg);
}

.project-content h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-sm);
}

.project-content p {
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
  font-size: var(--font-xs);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.project-tech span {
  font-size: var(--font-xxs);
  padding: 2px 8px;
  background-color: var(--bg-alt-color);
  border-radius: 10px;
}

.project-links {
  display: flex;
  gap: var(--space-sm);
}

/*=======================
  Services Section
========================*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: var(--font-xxl);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  display: inline-block;
  position: relative;
}

.service-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: rgba(46, 46, 255, 0.1);
  border-radius: var(--border-radius-round);
  top: -5px;
  left: -5px;
  z-index: var(--z-back);
}

.service-card h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
  font-size: var(--font-xs);
}

.service-list {
  padding-left: var(--space-lg);
  margin-bottom: 0;
}

.service-list li {
  font-size: var(--font-xs);
  margin-bottom: var(--space-xs);
}

.service-list li:last-child {
  margin-bottom: 0;
}

/*=======================
  Publications Section
========================*/
.publications-list {
  max-width: 900px;
  margin: 0 auto;
}

.publication-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

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

.publication-year {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary-color);
  min-width: 80px;
  padding-top: var(--space-xs);
}

.publication-content h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-xs);
}

.publication-venue {
  font-size: var(--font-xs);
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.publication-description {
  margin-bottom: var(--space-md);
  font-size: var(--font-xs);
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.publication-tags span {
  font-size: var(--font-xxs);
  padding: 2px 8px;
  background-color: rgba(46, 46, 255, 0.1);
  color: var(--primary-color);
  border-radius: 10px;
}

/*=======================
  Testimonials Section
========================*/
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

.testimonial-item {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.testimonial-text i {
  position: absolute;
  left: 0;
  top: 0;
  font-size: var(--font-xl);
  color: var(--primary-color);
  opacity: 0.5;
}

.testimonial-text p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-round);
  overflow: hidden;
  background-color: var(--bg-alt-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  color: var(--text-color-light);
}

.author-info h4 {
  font-size: var(--font-md);
  margin-bottom: 0;
}

.author-info p {
  font-size: var(--font-xs);
  color: var(--text-color-light);
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.testimonial-prev, .testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-round);
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.testimonial-prev:hover, .testimonial-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-dots {
  display: flex;
  gap: var(--space-sm);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--border-radius-round);
  background-color: var(--bg-alt-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background-color: var(--primary-color);
  width: 30px;
}

/*=======================
  Contact Section
========================*/
.contact-content {
  display: flex;
  gap: var(--space-xxl);
}

.contact-info, .contact-form-container {
  flex: 1;
}

.contact-info h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-md);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-round);
  background-color: rgba(46, 46, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-md);
  color: var(--primary-color);
}

.contact-detail h4 {
  font-size: var(--font-md);
  margin-bottom: var(--space-xs);
}

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

.social-links-large {
  display: flex;
  gap: var(--space-md);
}

.social-links-large a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt-color);
  color: var(--text-color);
  border-radius: var(--border-radius-round);
  font-size: var(--font-lg);
  transition: all var(--transition-fast);
}

.social-links-large a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--bg-color);
  padding: var(--space-xl);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.form-header {
  margin-bottom: var(--space-lg);
}

.form-header h3 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-xs);
}

.form-header p {
  color: var(--text-color-light);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--bg-color);
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 46, 255, 0.1);
}

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

.btn-submit {
  width: 100%;
}

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  display: block;
}

.form-status.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
  display: block;
}

/*=======================
  Footer
========================*/
.footer {
  background-color: var(--bg-alt-color);
  padding: var(--space-xxl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xxl);
}

.footer-logo {
  max-width: 300px;
}

.footer-logo a {
  font-size: var(--font-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer-logo p {
  font-size: var(--font-xs);
  color: var(--text-color-light);
}

.footer-links {
  display: flex;
  gap: var(--space-xxl);
}

.footer-nav h3, .footer-social h3 {
  font-size: var(--font-md);
  margin-bottom: var(--space-md);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: var(--space-xs);
}

.footer-nav ul li a {
  color: var(--text-color-light);
  transition: color var(--transition-fast);
}

.footer-nav ul li a:hover {
  color: var(--primary-color);
}

.footer-social-links {
  display: flex;
  gap: var(--space-md);
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: var(--border-radius-round);
  transition: all var(--transition-fast);
}

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

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

.footer-bottom p {
  color: var(--text-color-light);
  font-size: var(--font-xs);
  margin-bottom: 0;
}

/*=======================
  Back To Top Button
========================*/
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-round);
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-fixed);
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--primary-color-light);
  transform: translateY(-5px);
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

body.dark-mode .nav-links .nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode #header {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
}

body.dark-mode #header.scrolled {
  background-color: var(--dark-bg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bg-alt {
  background-color: var(--dark-bg-alt-color);
}

body.dark-mode .nav-link {
  color: var(--dark-text-color);
}

body.dark-mode .nav-link:hover, 
body.dark-mode .nav-link.active {
  color: var(--primary-color);
}

body.dark-mode .hamburger span {
  background-color: var(--dark-text-color);
}

body.dark-mode .theme-toggle {
  background-color: var(--dark-bg-alt-color);
  color: #f8f8f8;
}

body.dark-mode .skill-item,
body.dark-mode .stat-item,
body.dark-mode .timeline-content,
body.dark-mode .project-card,
body.dark-mode .service-card,
body.dark-mode .testimonial-content,
body.dark-mode .contact-form,
body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .testimonial-prev,
body.dark-mode .testimonial-next {
  background-color: var(--dark-bg-alt-color);
}

body.dark-mode .project-tech span {
  background-color: var(--dark-bg-color);
}

body.dark-mode .social-links a,
body.dark-mode .contact-icon,
body.dark-mode .footer-social-links a {
  background-color: var(--dark-bg-alt-color);
  color: var(--dark-text-color);
}

body.dark-mode .footer {
  background-color: var(--dark-bg-alt-color);
}

body.dark-mode .footer-bottom {
  border-top: 1px solid var(--dark-border-color);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: var(--dark-bg-alt-color);
}
