/* =========================================================
   PORTFOLIO — MAIN STYLESHEET
   Okeke Chukwuebuka
   ========================================================= */

/* =========================================================
   ROOT
   ========================================================= */

:root {
  --primary: #111827;
  --secondary: #4b5563;
  --muted: #6b7280;
  --light: #f8fafc;
  --lighter: #f1f5f9;
  --border: #e5e7eb;
  --white: #ffffff;
  --dark: #0f172a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  font-family: "Inter", sans-serif;

  color: var(--primary);
  background: var(--white);

  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;

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

a:hover {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

section {
  position: relative;
}


/* =========================================================
   UTILITY
   ========================================================= */

.text-uppercase {
  letter-spacing: 0.12em;
}

.font-weight-bold {
  font-weight: 700 !important;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  min-height: 90vh;

  display: flex;
  align-items: center;

  padding: 100px 0;

  background:
    linear-gradient(135deg,
      #f8fafc 0%,
      #ffffff 55%,
      #f1f5f9 100%);

  border-bottom: 1px solid var(--border);
}

.hero-section h1 {
  max-width: 760px;

  margin: 0;

  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;

  letter-spacing: -0.045em;

  color: var(--dark);
}

.hero-section .lead {
  max-width: 680px;

  font-size: 1.15rem;
  line-height: 1.8;

  color: var(--secondary);
}


/* Hero label */

.hero-section>.container>.row>.col-lg-7>p:first-child {
  display: inline-block;

  padding: 8px 14px;

  margin-bottom: 20px;

  border: 1px solid var(--border);
  border-radius: 50px;

  background: var(--white);

  color: var(--secondary);

  font-size: 0.75rem;
}


/* Hero image */

.hero-section img {
  width: 340px;
  height: 340px;

  object-fit: cover;

  border: 10px solid var(--white);

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  border-radius: 8px;

  padding: 11px 22px;

  font-weight: 600;

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--dark);
  border-color: var(--dark);
}

.btn-primary:hover {
  background: #000000;
  border-color: #000000;

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.15);
}

.btn-outline-dark {
  border-color: #cbd5e1;
  color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.social-links a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--white);

  color: var(--secondary);

  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.social-links a:hover {
  background: var(--dark);
  border-color: var(--dark);

  color: var(--white);

  transform: translateY(-3px);
}


/* =========================================================
   SECTION DEFAULTS
   ========================================================= */

section {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

section:nth-of-type(even) {
  background: var(--light);
}

section .text-uppercase {
  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 700;
}

section h2 {
  margin-bottom: 0;

  font-size: clamp(2rem, 4vw, 3rem);

  letter-spacing: -0.035em;
}

section h2+p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   ABOUT
   ========================================================= */

#about {
  background: var(--white);
}

#about .col-lg-8 {
  max-width: 900px;
}

#about h2 {
  margin-top: 10px;
  margin-bottom: 28px;
}

#about p {
  font-size: 1.05rem;
  line-height: 1.9;
}

#about p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   SERVICES / WHAT I BUILD
   ========================================================= */

#services {
  background: var(--light);
}

.service-card {
  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);

  border-color: #cbd5e1;

  box-shadow: var(--shadow-hover);
}

.service-card i {
  color: var(--dark);
}

.service-card h4 {
  margin-bottom: 14px;

  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 0;

  font-size: 0.95rem;
}


/* =========================================================
   SKILLS
   ========================================================= */

#skills {
  background: var(--white);
}

#skills h5 {
  margin-bottom: 18px;

  font-size: 1rem;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-list {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.skill-list span {
  display: inline-block;

  padding: 7px 12px;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: var(--light);

  color: var(--secondary);

  font-size: 0.85rem;
  font-weight: 500;
}


/* =========================================================
   PROJECTS
   ========================================================= */

#projects {
  background: var(--light);
}

.project-card {
  overflow: hidden;

  height: 100%;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

  border-color: #cbd5e1;

  box-shadow: var(--shadow-hover);
}

.project-card-body {
  display: flex;

  flex-direction: column;
}

.project-card-body>p:first-child {
  margin-bottom: 10px;

  color: var(--muted);

  font-size: 0.7rem;

  letter-spacing: 0.12em;
}

.project-card h3 {
  margin-bottom: 18px;

  font-size: 1.55rem;

  letter-spacing: -0.02em;
}

.project-card p {
  font-size: 0.94rem;
  line-height: 1.75;
}

.project-tech {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: auto;
  padding-top: 15px;
}

.project-tech span {
  padding: 5px 9px;

  border-radius: 5px;

  background: var(--dark);

  color: var(--white);

  font-size: 0.72rem;
  font-weight: 600;
}

.project-card .btn {
  align-self: flex-start;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

#experience {
  background: var(--white);
}

.experience-list {
  max-width: 950px;

  margin: 0 auto;
}

.experience-item {
  position: relative;

  padding-bottom: 35px;

  border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
  padding-bottom: 0;

  border-bottom: 0;
}

.experience-item .col-md-3 p {
  margin-bottom: 8px;

  color: var(--muted);

  font-size: 0.9rem;
}

.experience-item h4 {
  margin-bottom: 5px;

  font-size: 1.25rem;
}

.experience-item h6 {
  margin-bottom: 15px;

  color: var(--secondary);

  font-size: 0.9rem;
  font-weight: 600;
}

.experience-item p {
  margin-bottom: 0;
}


/* =========================================================
   GRAPHIC DESIGN
   ========================================================= */

#design {
  background: var(--light);
}

.design-card {
  overflow: hidden;

  height: 100%;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.design-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-hover);
}

.design-card img {
  display: block;

  width: 100%;
  height: 260px;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.design-card:hover img {
  transform: scale(1.03);
}

.design-card h5 {
  margin-bottom: 6px;

  font-size: 1rem;
}

.design-card p {
  font-size: 0.9rem;
}


/* =========================================================
   CONTACT
   ========================================================= */

#contact {
  background: var(--white);
}

.contact-item {
  height: 100%;

  padding: 30px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--light);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-item:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow);
}

.contact-item i {
  color: var(--dark);
}

.contact-item h5 {
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--secondary);
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--dark);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: var(--dark);
}

footer p {
  color: #cbd5e1;

  font-size: 0.85rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991.98px) {

  .hero-section {
    min-height: auto;

    padding: 70px;
  }

  .hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-section img {
    width: 280px;
    height: 280px;
  }

  section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

  body {
    font-size: 15px;
  }

  .hero-section {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 2.45rem;

    letter-spacing: -0.04em;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .hero-section img {
    width: 230px;
    height: 230px;
  }

  section {
    padding-top: 65px !important;
    padding-bottom: 65px !important;
  }

  section h2 {
    font-size: 2rem;
  }

  .experience-item .col-md-3 {
    margin-bottom: 8px;
  }

  .experience-item {
    padding-bottom: 30px;
  }

  .design-card img {
    height: 230px;
  }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 2.1rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .hero-section img {
    width: 200px;
    height: 200px;

    border-width: 7px;
  }

  .btn {
    width: 100%;

    margin-bottom: 10px;
  }

  .social-links {
    margin-top: 20px !important;
  }

  .service-card,
  .project-card,
  .contact-item {
    padding: 24px !important;
  }

  .project-card-body {
    padding: 0 !important;
  }

  .design-card img {
    height: 250px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #94a3b8;
  outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

}