/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

/* Header */
.header {
  background: #0f172a;
  padding: 15px 0;
}

.header__container {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: auto;
  color: white;
}

.nav a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
}

/* Hero */
.hero {
  height: 90vh;
  background: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429") center/cover;
  position: relative;
}

.hero__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,0.6);
}

.hero__content {
  position: relative;
  text-align: center;
  color: white;
  top: 50%;
  transform: translateY(-50%);
}

.hero__profile {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.btn {
  background: #3b82f6;
  border: none;
  padding: 10px 20px;
  color: white;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #2563eb;
}

/* About */
.about {
  padding: 60px 10%;
}

.about__container {
  display: flex;
  gap: 30px;
  align-items: center;
}

.about__img {
  width: 40%;
  border-radius: 10px;
}

/* Portfolio */
.portfolio {
  padding: 60px 10%;
  text-align: center;
}

.portfolio__grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 300px;
  transition: 0.3s;
}

.card img {
  width: 100%;
  border-radius: 10px;
}

.card:hover {
  transform: translateY(-8px);
}

/* Skills */
.skills {
  padding: 60px 10%;
  text-align: center;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

/* Gallery */
.gallery {
  padding: 60px 10%;
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact {
  padding: 60px 10%;
  text-align: center;
}

/* Footer */
.footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .about__container {
    flex-direction: column;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}