/* Main Styles for Portfolio Website */

:root {
  --primary-color: #4f46e5;
  --secondary-color: #06b6d4;
  --accent-color: #ec4899;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-dark: #1F2937;
  --text-light: #F3F4F6;
  --bg-light: #FFFFFF;
  --bg-dark: #111827;
  --background: #FFFFFF;
  --text-color: #1F2937;
  --card-bg: #FFFFFF;
  --border-color: #E5E7EB;
}

[data-theme="dark"] {
  --background: #1E1E1E;
  --text-color: #F3F4F6;
  --card-bg: #2D2D2D;
  --border-color: #4B5563;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Gradient Styles */
.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
}

/* Animation Effects */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.animated-border:hover::after {
  width: 100%;
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* Project Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease-in-out;
}

.project-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.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);
}

/* Skill Pill Animation */
.skill-pill {
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Tech Icon Styles */
.tech-icon {
  transition: all 0.3s ease;
  filter: grayscale(30%);
}

.tech-icon:hover {
  filter: grayscale(0%);
  transform: scale(1.2);
}

/* Timeline Styles */
.timeline-container {
  position: relative;
}

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

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

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 10px;
  }
  
  .timeline-dot {
    left: 10px;
    transform: none;
  }
  
  .timeline-content {
    padding-left: 30px;
  }
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

/* Button Styles */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 10px 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 50px;
  padding: 10px 30px;
}

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

/* Section Styles */
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

section {
  padding: 6rem 0;
}

section.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Card Hover Effects */
.feature-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
}

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

.feature-card:hover .feature-icon {
  transform: scale(1.2);
}

/* Contact Form Styles */
.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

/* Footer Styles */
.social-icon {
  transition: all 0.3s ease;
}

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