:root {
  --service-img-1: url('../images/data-insights.png');
  --service-img-2: url('../images/build-models.png');
  --service-img-3: url('../images/deploy-projects.png');
  --service-img-4: url('../images/ai-automation.png');
  --service-img-5: url('../images/backend-api.png');
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: conic-gradient(#16213e, #0f3460, #533483);
  color: #fff;
  text-align: center;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ========== Header ========== */
header {
  padding: 2rem 1rem;
  background-color: rgba(0,0,0,0.5);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

nav a {
  margin: 0 10px;
  font-weight: 500;
}

/* ========== Sections ========== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ========== Services Section ========== */
#services {
  padding: 60px 20px;
  background: rgba(0,0,0,0.4);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: transparent;
  border-radius: 15px;
  padding: 20px;
  width: 260px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: "";
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 auto 15px auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-card:nth-child(1)::before { background-image: var(--service-img-1); }
.service-card:nth-child(2)::before { background-image: var(--service-img-2); }
.service-card:nth-child(3)::before { background-image: var(--service-img-3); }
.service-card:nth-child(4)::before { background-image: var(--service-img-4); }
.service-card:nth-child(5)::before { background-image: var(--service-img-5); }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: #fff;
}

.service-card:nth-child(3) h3,
.service-card:nth-child(3) p {
  color: #000;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ========== Projects Section ========== */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.1);
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  margin-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-10px);
}

/* ========== Skills Section ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
  padding: 1rem 0;
  font-size: 4rem;
}

/* ========== Contact Section ========== */
#contact p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

#contact i {
  margin-right: 8px;
  color: #ffcc00;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0,0,0,0.5);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .service-card, .project-card {
    width: 90%;
  }

  .service-card::before {
    width: 100px;
    height: 100px;
  }

  .skills-grid {
    font-size: 3rem;
  }
}
