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

:root {
  --primary-color: #7c3aed;
  --secondary-color: #5b21b6;
  --accent-color: #a78bfa;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-light: #faf5ff;
  --bg-dark: #1e1b4b;
  --border-color: #e9d5ff;
  --success-color: #10b981;
  --shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.1),
    0 2px 4px -1px rgba(124, 58, 237, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.1),
    0 4px 6px -2px rgba(124, 58, 237, 0.05);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--bg-dark);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.logo p {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #93c5fd;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #dbeafe;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-links a {
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: #93c5fd;
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1rem;
}

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

/* About Section */
.about {
  background-color: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.5rem 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
}

.skill-category li:last-child {
  border-bottom: none;
}

.skill-category li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Projects Section */
.projects {
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.project-header i {
  font-size: 2rem;
  color: var(--primary-color);
}

.project-header h3 {
  font-size: 1.3rem;
  color: var(--text-color);
}

.project-header .badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3);
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.project-highlights h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.project-highlights ul {
  list-style: none;
}

.project-highlights li {
  color: var(--text-light);
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.project-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.project-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: rgba(124, 58, 237, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.project-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-stats .stat-item strong {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.project-stats .stat-item span {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.project-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-links .btn i {
  font-size: 1rem;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
}

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

.timeline-date {
  width: 130px;
  text-align: right;
  padding-right: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  flex-shrink: 0;
}

.timeline-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-left: 2rem;
  flex: 1;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 2rem;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 4px solid white;
}

.timeline-content h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.timeline-content h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  color: var(--text-light);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-light);
  text-align: center;
}

.contact-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-date {
    width: 100%;
    text-align: left;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .timeline-content {
    margin-left: 0;
  }

  .timeline-content::before {
    left: -30px;
  }

  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
  }
}
