/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Inter', sans-serif;
  background: #f2f1ef;
  color: #103b59;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(201, 197, 180, 0.171);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Nav */
nav {
  display: flex;
  flex-wrap: wrap;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #e66b13;
  font-size: 15px;
  transition: 0.3s;
}

nav a:hover {
  color: rgb(37, 58, 223);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 9%;
  gap: 60px;
  flex-wrap: wrap;
}

/* LEFT SIDE */
.hero-text {
  flex: 1;
  min-width: 280px;
}

/* RIGHT SIDE */
.hero-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 280px;
}

/* Image FIX */
.hero-img img {
  width: 100%;
  max-width: 400px; /* FIXED (was 600x ❌) */
  height: auto;
  border-radius: 30px;
  object-fit: cover;
}

/* Heading */
.hero h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero p {
  color: #64748b;
  margin-bottom: 25px;
}

/* Button */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: rgb(94, 160, 186);
  color: rgb(219, 225, 235);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
}

.btn:hover {
  background: #f4520c;
}

/* Sections */
section {
  padding: 60px 8%;
}

/* Section Titles */
section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* Grid (Skills) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.grid div {
  padding: 18px;
  background: #e3e3e5;
  border-radius: 14px;
  text-align: center;
  transition: 0.3s;
}

.grid div:hover {
  background: #89c3db;
  transform: translateY(-4px);
}

/* Projects */
.project {
  background: #e3e3e5;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.project:hover {
  transform: translateY(-5px);
  background: #89c3db;
}

/* Footer */
footer {
  text-align: center;
  padding: 25px;
  background: #c6c7c9;
  color: #64748b;
}

/* ========================= */
/* 🔥 MOBILE RESPONSIVE FIX */
/* ========================= */

@media (max-width: 768px) {

  /* Header */
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  nav a {
    margin: 8px;
  }

  /* Hero */
  .hero {
    flex-direction: column; /* stack */
    text-align: center;
    padding: 40px 5%;
  }

  .hero-img {
    justify-content: center; /* center image */
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-img img {
    max-width: 250px;
  }

  section {
    padding: 40px 5%;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
