/* Basic reset & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
  line-height: 1.5;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAV */
.nav-main {
  background: #0b1220;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}

.logo a {
  font-weight: 700;
  color: #fff;
  font-size: 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu li a {
  color: #cbd5e1;
  padding: 8px 10px;
  display: inline-block;
}

.media-icons a {
  color: #cbd5e1;
  margin-left: 10px;
  font-size: 18px;
}

.menu-btn {
  display: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Home */
.home {
  padding: 70px 16px;
  background: linear-gradient(180deg, #071226 0%, #0b1220 100%);
  color: white;
  text-align: center;
}

.home .text-one {
  font-size: 20px;
  opacity: 0.85;
}

.home .text-two {
  font-size: 36px;
  font-weight: 700;
  margin-top: 6px;
}

.home .text-three {
  font-size: 18px;
  margin-top: 8px;
  opacity: 0.9;
}

/* Content wrapper */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* Sections */
.title span {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.about-details {
  display: flex;
  gap: 20px;
  align-items: center;
}

.about-details .left img {
  width: 220px;
  border-radius: 10px;
  object-fit: cover;
}

.about-details .right p {
  color: #333;
}

/* Skills & boxes */
.skills .boxes {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.box {
  background: #f3f4f6;
  padding: 12px;
  border-radius: 8px;
  min-width: 120px;
  text-align: center;
}

/* Experience */
.experience .boxes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.experience .box {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
}

/* Projects grid */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 24, 40, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-info h3 {
  font-size: 18px;
}

.button {
  margin-top: auto;
}

.btn-primary {
  background: #0b84ff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-success {
  background: #16a34a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Gallery (inside modals) */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.image-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.06);
}

/* Footer */
footer {
  padding: 18px 16px;
  background: #0b1220;
  color: #fff;
  margin-top: 30px;
}

footer .text a {
  color: #9fbffb;
}

/* Responsive */
@media (max-width:900px) {
  .about-details {
    flex-direction: column;
    text-align: center;
  }

  .menu {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}