@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --accent-color: #2563eb;
  --light-bg: #f0f9ff;
  --white: #ffffff;
  --dark-text: #1e293b;
  --light-text: #64748b;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Dark mode variables */
:root.dark {
  --primary-color: #60a5fa;
  --secondary-color: #3b82f6;
  --accent-color: #2563eb;
  --light-bg: #1f2937;
  --white: #111827;
  --dark-text: #f9fafb;
  --light-text: #d1d5db;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--white);
  color: var(--dark-text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gradient-text {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-gradient {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  transition: all 0.3s ease;
  background-size: 200% auto;
}

.btn-gradient:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.section-title {
  position: relative;
  display: inline-block;
  font-weight: 800;
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 12px;
  background: rgba(59, 130, 246, 0.2);
  z-index: -1;
  transform: skew(-15deg);
}

.card {
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.skill-card {
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .skill-card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-icon {
  transition: all 0.3s ease;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
}

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

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-image {
  transition: all 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.4),
    rgba(96, 165, 250, 0.2)
  );
  animation: float 8s infinite ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
  animation-delay: 2s;
  background: linear-gradient(
    45deg,
    rgba(14, 165, 233, 0.3),
    rgba(56, 189, 248, 0.2)
  );
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -100px;
  animation-delay: 4s;
  background: linear-gradient(
    45deg,
    rgba(96, 165, 250, 0.3),
    rgba(59, 130, 246, 0.2)
  );
}

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

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 0.3s ease;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  color: #3b82f6;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  z-index: 1;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  width: 2px;
  height: calc(100% + 34px);
  background: #e2e8f0;
}

.timeline-item:last-child::after {
  display: none;
}

.animated-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animated-element.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  width: 0;
  transition: width 1.5s ease;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.testimonial-card {
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .testimonial-card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  color: rgba(59, 130, 246, 0.1);
}

.service-card {
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dark .service-card {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
  transition: all 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact-form-container {
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .contact-form-container {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.2rem;
}

.animated-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: currentColor;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

.hero-image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  50% {
    border-radius: 30% 70% 70% 30% / 70% 30% 70% 30%;
  }
  75% {
    border-radius: 70% 30% 30% 70% / 30% 70% 30% 70%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.hero-image-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  top: 20px;
  left: 20px;
  z-index: -1;
  animation: morph 8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.hero-badge {
  position: absolute;
  padding: 8px 16px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.badge-1 {
  top: 10%;
  left: -15%;
}

.badge-2 {
  bottom: 10%;
  right: -15%;
}

.badge-3 {
  top: 40%;
  right: -15%;
}

.badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

.stat-item {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.dark .stat-item {
  background: #1f2937;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Dark mode specific styles */
.dark .filter-btn {
  background: #374151;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .filter-btn:hover,
.dark .filter-btn.active {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: white;
}

.dark .social-icon {
  background: #374151;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .social-icon:hover {
  background: #4b5563;
  color: #60a5fa;
}

.dark .back-to-top {
  background: #374151;
  color: #60a5fa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .back-to-top:hover {
  background: #4b5563;
}

.dark .scroll-down-icon {
  background: #374151;
  color: #60a5fa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .hero-badge {
  background: #1f2937;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .contact-input {
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1d5db;
}

.dark .contact-input:focus {
  border-color: #60a5fa;
  background: #4b5563;
}

.dark .contact-input::placeholder {
  color: #9ca3af;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--light-text);
  font-weight: 500;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

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

.scroll-down-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #3b82f6;
}

.color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.dot-blue {
  background-color: #3b82f6;
}
.dot-cyan {
  background-color: #0ea5e9;
}
.dot-purple {
  background-color: #8b5cf6;
}
.dot-pink {
  background-color: #ec4899;
}
.dot-orange {
  background-color: #f97316;
}
.dot-green {
  background-color: #10b981;
}

.color-palette {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #3b82f6;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Colorful elements */
.gradient-bg-blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.gradient-bg-cyan {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.gradient-bg-purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.gradient-bg-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.gradient-bg-orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.gradient-bg-green {
  background: linear-gradient(135deg, #10b981, #34d399);
}

/* Animated background */
.animated-gradient {
  background: linear-gradient(-45deg, #3b82f6, #60a5fa, #0ea5e9, #38bdf8);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Colorful cards */
.color-card-blue {
  border-top: 5px solid #3b82f6;
}

.color-card-cyan {
  border-top: 5px solid #0ea5e9;
}

.color-card-purple {
  border-top: 5px solid #8b5cf6;
}

.color-card-pink {
  border-top: 5px solid #ec4899;
}

.color-card-orange {
  border-top: 5px solid #f97316;
}

.color-card-green {
  border-top: 5px solid #10b981;
}
