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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

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

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #007bff 0%, #00b4d8 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
  opacity: 0.3;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: fadeInDown 0.8s ease;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-links {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
  font-size: 1rem;
  display: inline-block;
}

.resume-btn {
  background-color: #ffd700;
  color: #007bff;
}

.resume-btn:hover {
  background-color: #ffcc00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.projects-btn {
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid white;
}

.projects-btn:hover {
  background-color: white;
  color: #007bff;
  transform: translateY(-3px);
}

.contact-btn {
  background-color: #ff6b6b;
}

.contact-btn:hover {
  background-color: #ff4c4c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* ===== Skills Section ===== */
.skills-section {
  padding: 80px 20px;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #007bff;
  margin: 15px auto 0;
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.skill-category h3 {
  color: #007bff;
  margin-bottom: 20px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3::before {
  content: '▸';
  color: #00b4d8;
  font-size: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: scale(1.05);
}

/* ===== Experience Section ===== */
.experience-section {
  padding: 80px 20px;
  background: #f5f7fa;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #007bff, #00b4d8);
}

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

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: calc(50% - 40px);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #007bff;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
  top: 30px;
}

.job-title {
  color: #007bff;
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.company {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.duration {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-style: italic;
}

.achievements {
  list-style: none;
  padding-left: 0;
}

.achievements li {
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.achievements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00b4d8;
  font-weight: bold;
}

/* ===== Projects Section ===== */
.projects-section {
  padding: 80px 20px;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: white;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00b4d8);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  border-color: #007bff;
}

.project-card h3 {
  color: #007bff;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tech-badge {
  background: #e7f3ff;
  color: #007bff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-description {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #0056b3;
  transform: translateX(3px);
}

/* ===== Contact Section ===== */
.contact-section {
  background: linear-gradient(135deg, #007bff 0%, #00b4d8 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-title::after {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 40px auto 0;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-card a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-card a:hover {
  color: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 60px !important;
  }

  .timeline-dot {
    left: 30px;
  }

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

  .section-title {
    font-size: 2rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
