/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Skills Section */
.skill-bar {
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 5px;
  position: relative;
  animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

/* Project Cards */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Contact Form */
.error-text {
  display: block;
  margin-top: 0.25rem;
}

.form-success {
  color: #10b981;
  background-color: #d1fae5;
  padding: 1rem;
  border-radius: 0.5rem;
}

.form-error {
  color: #ef4444;
  background-color: #fee2e2;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Footer */
footer {
  background: #1f2937;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }
  
  .hero-text {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-image {
    margin: 0 auto;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #667eea;
}

.timeline-item:after {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 1.5rem;
  width: 0.125rem;
  height: 100%;
  background-color: #e0e0e0;
}

.timeline-item:last-child:after {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #667eea;
  color: white;
}

.btn-primary:hover {
  background-color: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  background-color: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background-color: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Section Titles */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 0.25rem;
}

/* Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  color: #4b5563;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #667eea;
  color: white;
  transform: translateY(-3px);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .md\:text-center {
    text-align: center;
  }
  
  .md\:flex-col {
    flex-direction: column;
  }
  
  .md\:w-full {
    width: 100%;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #667eea;
}