*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root {
  --nav-height: 70px;
}

body {
  background-image: linear-gradient(to top, #5f72bd 0%, #90b1bc 100%);
  font-family: "Work Sans", sans-serif;
}

a {
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: "Days One", sans-serif;
}

/* NAVIGATION */
nav {
  display: flex;
  background-color: #647a6b;
  justify-content: center;
  position: fixed;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 10000;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 0 10%;
  list-style: none;
  margin: 0;
}

nav ul li a {
  font-size: 16px;
  padding: 0 15px;
  color: white;
  transition: 0.2s;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: #52c5ff;
}

.nav-toggle {
  display: none;
}

/* GENERAL CONTAINER */
.container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* HERO */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
}

.hero img {
  border-radius: 25px;
  margin: 0 auto;
  max-width: 440px;
  width: 100%;
  display: block;
}

h1 {
  color: black;
  text-align: center;
  font-size: 24px;
  margin: 30px 0 100px;
}

/* ABOUT */
.aboutme {
  width: 90%;
  max-width: 1100px;
  background-color: white;
  text-align: center;
  padding: 40px 50px 70px;
  margin: 0 auto;
  box-shadow:
    10px 10px 0px rgb(0 0 0 / 40%),
    -10px -10px 0px rgb(255 114 114 / 80%);
}

.aboutme-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.aboutme-image {
  width: 400px;
  max-width: 100%;
  height: 600px;
  background-image: url("images/mi.jpg");
  background-size: cover;
  background-position: center;
}

.aboutme-text {
  width: 40%;
  min-width: 300px;
  margin-left: 40px;
  text-align: left;
}

/* PROJECTS */
#projects {
  padding: 5px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* PROJECT GRID */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 440px);
  column-gap: 80px;
  justify-content: center;
  align-items: stretch;
}

/* PROJECT CARDS */
.ipo,
.organic-products,
.Perfume,
.ecom,
.leadflow,
.gadget,
.ngo,
.movie-app,
.site,
.responsive-Page,
.real-estate,
.real-estate2 {
  width: 400px;
  max-width: 100%;
  height: 400px;
  background: white;
  position: relative;
  border-radius: 10px;
  margin: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) {
  .ipo:hover,
  .organic-products:hover,
  .Perfume:hover,
  .ecom:hover,
  .leadflow:hover,
  .gadget:hover,
  .ngo:hover,
  .movie-app:hover,
  .site:hover,
  .responsive-Page:hover,
  .real-estate:hover,
  .real-estate2:hover {
    transform: translateY(-5px);
  }
}

/* PROJECT BACKGROUNDS */
.ipo {
  background-image: url("images/dangote-refinery.jpg");
}

.organic-products {
  background-image: url("images/responsive frontend.jpg");
}

.Perfume {
  background-image: url("images/perfumes.jpg");
}

.ecom {
  background-image: url("images/IMG-20250902-WA0006.jpg");
}

.leadflow {
  background-image: url("images/job-seeker-tech.gif");
}

.gadget {
  background-image: url("images/task.png");
}

.site {
  background-image: url("images/image.png");
}

.responsive-Page {
  background-image: url("images/ai-refund-assessment.png");
}

.ngo {
  background-image: url("images/flaas.jpeg");
}

.movie-app {
  background-image: url("images/Screenshot (215).png");
}

.real-estate {
  background-image: url("images/forum.webp");
}

.real-estate2 {
  background-image: url("images/Hotel 8.jpg");
}

/* PROJECT CARD CONTENT */
.text {
  position: absolute;
  height: 65px;
  width: 100%;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgb(8 22 38 / 98%) 0%,
    rgb(15 43 66 / 97%) 50%,
    rgb(19 61 82 / 97%) 100%
  );
  color: white;
  overflow: hidden;
  transition:
    height 0.2s ease,
    background 0.2s ease;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgb(105 210 255 / 35%);
  box-shadow:
    0 -10px 30px rgb(0 0 0 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 8%);
}

.text:hover {
  height: 190px;
  background: linear-gradient(
    135deg,
    rgb(7 20 36 / 99%) 0%,
    rgb(12 48 73 / 98%) 50%,
    rgb(17 70 94 / 98%) 100%
  );
}

.text h3 {
  color: white;
  margin-top: 3px;
  margin-bottom: 14px;
}

.text p {
  color: rgb(255 255 255 / 88%);
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

/* INDIVIDUAL PROJECT EXPANSION HEIGHTS */
.ipo .text:hover {
  height: 242px;
}

.site .text:hover {
  height: 266px;
}

.movie-app .text:hover {
  height: 212px;
}

.organic-products .text:hover {
  height: 188px;
}

.Perfume .text:hover {
  height: 187px;
}

.ecom .text:hover {
  height: 210px;
}

.leadflow .text:hover {
  height: 230px;
}

.gadget .text:hover {
  height: 200px;
}

.responsive-Page .text:hover {
  height: 235px;
}

.ngo .text:hover {
  height: 210px;
}

/* REAL ESTATE CARD */
.real-estate .text:hover {
  height: 259px;
  padding-bottom: 20px;
}

.real-estate2 .text:hover {
  height: 259px;
  padding-bottom: 20px;
}

.ipo > .text,
.site > .text {
  padding-bottom: 35px;
}

.ipo > .text > h3,
.site > .text > h3 {
  margin-top: 3px;
  margin-bottom: 20px;
  transform: translateY(-7px);
}

.ipo .text p,
.site .text p {
  margin-bottom: 0;
}

/* PROJECT BUTTON */
.text .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 48px;
  padding: 0;

  /* ONLY BUTTON SPACING: description -> button */
  margin: 24px auto 0;

  border: 2px solid #69d2ff;
  border-radius: 10px;

  background: linear-gradient(
    135deg,
    rgb(105 210 255 / 12%),
    rgb(105 210 255 / 5%)
  );

  color: white;
  text-align: center;
  font-weight: 600;

  box-shadow:
    0 5px 18px rgb(0 0 0 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 12%);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.text .button:hover {
  background: #69d2ff;
  color: #06131f;
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgb(105 210 255 / 30%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
}

.content {
  color: black;
}

/* CONTACT */
.contact {
  width: 100%;
  padding: 86px 20px 64px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 12%, rgb(82 197 255 / 28%), transparent 30%),
    radial-gradient(circle at 88% 76%, rgb(82 197 255 / 18%), transparent 28%),
    linear-gradient(135deg, #102236, #173b4a 52%, #162537);
}

.contact > p {
  width: 100%;
  max-width: 620px;
  margin: 0 auto 50px;
}

.contact h2,
.contact p {
  color: white;
}

.contact-form {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 18px;
  background: rgb(7 18 31 / 72%);
  box-shadow: 0 24px 60px rgb(0 0 0 / 28%);
  color: white;
  backdrop-filter: blur(14px);
}

.contact-details,
.message {
  width: 100%;
  min-width: 0;
}

.contact-details input,
.message textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgb(255 255 255 / 9%);
  color: white;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.contact-details input {
  margin-bottom: 8px;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgb(255 255 255 / 56%);
}

.contact label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  text-align: left;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #69d2ff;
  background: rgb(255 255 255 / 15%);
  box-shadow: 0 0 0 4px rgb(105 210 255 / 18%);
}

.message button:focus-visible,
.direct-contact a:focus-visible,
.social-media a:focus-visible {
  outline: 4px solid #ffd166;
  outline-offset: 3px;
}

.contact input[aria-invalid="true"],
.contact textarea[aria-invalid="true"] {
  border: 3px solid #ff595e;
}

.error {
  display: block;
  min-height: 24px;
  margin-bottom: 10px;
  color: #ffd7d7;
  font-weight: 700;
  text-align: left;
}

.message {
  display: flex;
  flex-direction: column;
}

.message textarea {
  min-height: 220px;
  resize: vertical;
}

.message button {
  align-self: flex-end;
  color: #06131f;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #87dcff, #4fb9ed);
  width: 172px;
  min-height: 48px;
  margin-top: 18px;
  box-shadow: 0 10px 24px rgb(24 160 216 / 28%);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.message button:hover {
  background: linear-gradient(135deg, #c1efff, #67c8f3);
  color: #06131f;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgb(24 160 216 / 38%);
}

.form-status {
  width: 100%;
  min-height: 24px;
  margin: 14px 0 0;
  color: white;
  font-weight: 700;
  text-align: right;
}

/* DIRECT CONTACT */
.direct-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1100px;
  margin: 34px auto 0;
}

.direct-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid lightblue;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgb(255 255 255 / 12%);
  color: white;
  font-weight: 700;
  text-align: center;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.direct-contact a:hover {
  background: lightblue;
  color: #1d3d5f;
}

/* FOOTER */
footer {
  min-height: 90px;
  background-color: #1f2027;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  height: auto;
  gap: 20px;
}

.social-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 200%;
  margin-left: auto;
}

.social-media a i {
  color: white;
}

.social-media a i:hover {
  color: lightblue;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: white;
  border-radius: 6px;
}

.social-text-link {
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  vertical-align: middle;
}

.social-media a:hover {
  color: lightblue;
}

.stud {
  color: white;
}

/* TABLET / TOUCH */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .hero {
    padding-top: calc(var(--nav-height) + 40px);
  }

  nav ul {
    padding: 8px 10px;
  }

  nav ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 9px;
    font-size: 13px;
  }

  .aboutme-text {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .contact {
    padding: 70px 20px 55px;
  }

  .contact > p {
    margin-bottom: 35px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .contact-details,
  .message {
    width: 100%;
    min-width: 0;
  }

  .message textarea {
    min-height: 200px;
  }

  .form-status {
    text-align: left;
  }

  .direct-contact {
    width: 100%;
    padding: 0 4px;
    margin-top: 28px;
  }

  .direct-contact a {
    flex: 1 1 auto;
  }

  footer {
    min-height: 100px;
  }

  footer .container {
    min-height: 100px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 18px;
    text-align: center;
  }

  .stud {
    width: 100%;
    text-align: center;
  }

  .social-media {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  /* PROJECT CARDS ON TABLET / MOBILE */
  .projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 30px;
  }

  .ipo,
  .organic-products,
  .Perfume,
  .ecom,
  .grad,
  .gadget,
  .ngo,
  .movie-app,
  .site,
  .responsive-Page,
  .real-estate,
  .real-estate2 {
    display: flex;
    flex-direction: column;
    width: 92%;
    max-width: 400px;
    height: auto;
    margin: 0;
    background-position: top;
  }

  .ipo::before,
  .organic-products::before,
  .Perfume::before,
  .ecom::before,
  .grad::before,
  .gadget::before,
  .ngo::before,
  .movie-app::before,
  .site::before,
  .responsive-Page::before,
  .real-estate::before,
  .real-estate2::before {
    content: "";
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    display: block;
  }

  .text {
    position: static;
    width: 100%;
    height: auto;
    min-height: 180px;
    overflow: visible;
    padding: 20px;
  }

  .text:hover {
    height: auto;
  }

  .text h3 {
    color: white;
    margin-top: 3px;
    margin-bottom: 14px;
  }

  .text p {
    color: rgb(255 255 255 / 88%);
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
  }

  .text .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 48px;

    /* Same description -> button spacing on mobile */
    margin: 24px auto 0;
  }

  .ipo .text:hover,
  .site .text:hover,
  .movie-app .text:hover,
  .organic-products .text:hover,
  .Perfume .text:hover,
  .ecom .text:hover,
  .leadflow .text:hover,
  .gadget .text:hover,
  .responsive-Page .text:hover,
  .ngo .text:hover,
  .real-estate .text:hover,
  .real-estate2 .text:hover {
    height: auto;
  }
}

/* MOBILE NAVIGATION */
@media (max-width: 640px) {
  nav {
    justify-content: flex-start;
    min-height: var(--nav-height);
  }

  nav .nav-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  nav .nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 68px 16px 12px;
  }

  nav.is-open ul {
    display: flex;
  }

  nav ul li a {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  nav.is-open .nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  nav.is-open .nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact {
    padding: 58px 12px 45px;
  }

  .contact > p {
    width: 100%;
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .contact-form {
    width: 100%;
    gap: 20px;
    padding: 18px;
    border-radius: 14px;
  }

  .contact-details input,
  .message textarea {
    width: 100%;
    font-size: 16px;
  }

  .message textarea {
    min-height: 180px;
  }

  .message button {
    width: 100%;
    max-width: 172px;
    align-self: center;
  }

  .form-status {
    text-align: center;
  }

  .direct-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 0;
  }

  .direct-contact a {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
  }

  footer {
    min-height: 150px;
  }

  footer .container {
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 15px;
  }

  .stud {
    width: 100%;
    line-height: 1.5;
    text-align: center;
  }

  .social-media {
    width: 100%;
    justify-content: center;
    gap: 5px;
    font-size: 170%;
    margin: 0;
  }

  .social-media a {
    min-width: 42px;
    min-height: 42px;
  }

  .social-text-link {
    padding: 0 5px;
    font-size: 0.8rem;
  }
}

/* VERY SMALL SCREENS */
@media (max-width: 380px) {
  .contact {
    padding-left: 8px;
    padding-right: 8px;
  }

  .contact-form {
    padding: 15px;
  }

  .message button {
    width: 100%;
    max-width: none;
  }

  .social-media {
    gap: 2px;
    font-size: 150%;
  }

  .social-media a {
    min-width: 38px;
    min-height: 38px;
  }

  .social-text-link {
    font-size: 0.75rem;
    padding: 0 3px;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  nav .nav-toggle span {
    transition: none;
  }
}
