/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  overflow-x: hidden;
}

/* Navigation Styles */
.nav-link {
  position: relative;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6;
  background-color: #f3f4f6;
}

.nav-link.active {
  color: #3b82f6;
  background-color: #eff6ff;
}

/* Mobile Menu Styles */
.hamburger {
  display: flex;
  flex-direction: column;
  width: 20px;
  height: 16px;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background-color: #6b7280;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
  max-height: 400px;
}

.mobile-nav-link {
  display: block;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #3b82f6;
  background-color: #f3f4f6;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1f2937;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  border-radius: 2px;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: transparent;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid #3b82f6;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.3);
}

/* Icon Fonts - Add to HTML head */
/* <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> */

/* Social Links with Font Awesome Icons */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #6b7280;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.3);
}

/* CSS Icon Alternatives (if not using Font Awesome) */
.social-link.github::before {
  content: "⚡";
  font-size: 1.2rem;
}

.social-link.linkedin::before {
  content: "💼";
  font-size: 1.2rem;
}

.social-link.email::before {
  content: "✉";
  font-size: 1.2rem;
}

.social-link.twitter::before {
  content: "🐦";
  font-size: 1.2rem;
}

/* Scroll Indicator */
@keyframes scroll-bounce {

  0%,
  20% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }

  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Project Cards */
.project-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(6, 182, 212, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Project Link Icons */
.project-link.view::before {
  content: "👁";
  font-size: 1.1rem;
}

.project-link.code::before {
  content: "<>";
  font-size: 0.9rem;
  font-weight: bold;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #eff6ff;
  color: #3b82f6;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1.5rem;
  background: #f9fafb;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  border-color: transparent;
}

/* Skills Section */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  border-radius: 9999px;
  width: 0;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(20px);
    opacity: 0;
  }
}

/* Timeline Styles */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-left: 4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #06b6d4);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  z-index: 1;
}

.timeline-icon.education {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.timeline-icon.education::before {
  content: "🎓";
  font-size: 1.2rem;
}

.timeline-icon.experience {
  background: linear-gradient(135deg, #059669, #047857);
}

.timeline-icon.experience::before {
  content: "💼";
  font-size: 1.1rem;
}

.timeline-icon.leadership {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.timeline-icon.leadership::before {
  content: "👑";
  font-size: 1.1rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  width: 100%;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: #3b82f6;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Contact Section */
.contact-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Contact Icons - Default fallback */
.contact-icon::before {
  content: "📞";
  font-size: 1.8rem;
}

.contact-icon.email::before {
  content: "📧";
  font-size: 1.8rem;
}

.contact-icon.phone::before {
  content: "📱";
  font-size: 1.8rem;
}

.contact-icon.location::before {
  content: "📍";
  font-size: 1.8rem;
}

.contact-icon.linkedin::before {
  content: "💼";
  font-size: 1.8rem;
}

.contact-icon.github::before {
  content: "⚡";
  font-size: 1.8rem;
}

.contact-icon.website::before {
  content: "🌐";
  font-size: 1.8rem;
}

.contact-icon.resume::before {
  content: "📄";
  font-size: 1.8rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.back-to-top::before {
  content: "↑";
  font-size: 1.2rem;
  font-weight: bold;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Dark Theme Styles */
.dark body {
  background-color: #111827;
  color: #f9fafb;
}

.dark .nav-link {
  color: #d1d5db;
}

.dark .nav-link:hover,
.dark .nav-link.active {
  color: #60a5fa;
  background-color: #374151;
}

.dark .mobile-nav-link {
  color: #d1d5db;
}

.dark .mobile-nav-link:hover {
  color: #60a5fa;
  background-color: #374151;
}

.dark .section-title {
  color: #f9fafb;
}

.dark .project-card {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .timeline-content {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .contact-item {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .skill-bar-container {
  background-color: #374151;
}

.dark .filter-btn {
  background-color: #1f2937;
  color: #d1d5db;
  border-color: #374151;
}

.dark .filter-btn:hover {
  background-color: #374151;
  color: #f9fafb;
}

.dark .social-link {
  background-color: #1f2937;
  color: #d1d5db;
}

.dark .tech-tag {
  background-color: #1e3a8a;
  color: #93c5fd;
  border-color: #1e40af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 640px) {

  .btn-primary,
  .btn-secondary {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .social-link {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.counter {
  animation: countUp 0.8s ease-out;
}

/* 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.2), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  100% {
    left: 100%;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}