/* Main Styles */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #ec4899;
  --dark-bg: #111827;
  --card-bg: #1f2937;
  --text-color: #f3f4f6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Utilities */
.animate-text {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-text-delay-1 {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.3s forwards;
}

.animate-text-delay-2 {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.6s forwards;
}

.animate-text-delay-3 {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.9s forwards;
}

.animate-text-delay-4 {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 1.2s forwards;
}

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

.text-gradient {
  background-image: linear-gradient(45deg, #3b82f6, #ec4899);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.section-title {
  position: relative;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 1rem;
  color: var(--text-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Navigation Styling */
.nav-link {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s;
}

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

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

/* Button Styling */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--primary-color);
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-color);
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--text-color);
  text-align: center;
}

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

.btn-small {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.btn-small:hover {
  background: #2563eb;
}

.btn-small-outline {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: transparent;
  color: white;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.875rem;
  border: 1px solid white;
}

.btn-small-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Add this to your style.css file */
/* #about img {
  width: 80%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  object-position: cover bottom;
} */

/* About Section - Image Container */
.about-image-container {
  max-width: 500px; /* Adjust based on your layout */
  margin: 0 auto; /* Center the container */
  aspect-ratio: 1 / 1; /* Square ratio (adjust as needed: 4/3, 3/2, etc.) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg); /* Fallback if image doesn't load */
}

/* About Section - Image Styling */
.about-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows full image without cropping */
  object-position: center;
  transition: transform 0.3s ease;
}

/* Hover Effect */
.about-image-container:hover .about-image {
  transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about-image-container {
    max-width: 350px;
    aspect-ratio: 4/3; /* More rectangular on mobile */
  }
}

/* Tech Tags */
.tech-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 9999px;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.tech-tag:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

.tech-tag i {
  margin-right: 0.25rem;
}

/* Skill Cards */
.skill-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: white;
}

.skill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-name {
  width: 100px;
}

.skill-progress {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.skill-percent {
  height: 100%;
  border-radius: 4px;
}

.skill-percent-text {
  font-weight: 500;
}

/* Stat Boxes */
.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 0.5rem;
  min-width: 100px;
  transition: all 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Project Cards */
.project-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
}

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

.project-image {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  height: 100%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--dark-bg);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
}

/* Testimonial Section */
.testimonial-container {
  display: flex;
  overflow-x: hidden;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 0.5rem;
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--primary-color);
}

/* Contact Section */
.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  transition: all 0.3s;
}

.contact-icon:hover {
  background: var(--primary-color);
  color: white;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--text-color);
  transition: all 0.3s;
}

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

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Social Icons */
.social-icon {
  width: 45px;
  height: 45px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.25rem;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.social-icon-sm {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.3s;
}

.social-icon-sm:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .skill-name {
    width: 70px;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.5rem;
  }
}
