/*==================================================
    PORTFOLIO CSS
    Author: Ayooluwa Joshua Babatunde
===================================================*/

/*=========================
    GOOGLE FONT
=========================*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*=========================
    RESET
=========================*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font-family: inherit;
}

section {
  padding: 100px 0;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/*=========================
    VARIABLES
=========================*/

:root {
  --primary: #2563eb;

  --secondary: #1e293b;

  --accent: #06b6d4;

  --dark: #0f172a;

  --light: #f8fafc;

  --text: #cbd5e1;

  --white: #ffffff;

  --border: rgba(255, 255, 255, 0.08);

  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

  --radius: 18px;

  --transition: 0.35s ease;
}

/*=========================
    TYPOGRAPHY
=========================*/

h1,
h2,
h3,
h4,
h5 {
  color: var(--white);

  line-height: 1.2;

  margin-bottom: 15px;
}

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 2.6rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text);

  margin-bottom: 10px;
}

header {
  margin-bottom: 60px;

  text-align: center;
}

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

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  padding: 15px 35px;

  border-radius: 50px;

  background: var(--primary);

  color: #fff;

  font-weight: 600;

  transition: var(--transition);

  cursor: pointer;

  border: none;
}

.button:hover {
  background: var(--accent);

  transform: translateY(-4px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.button.small {
  padding: 12px 22px;

  font-size: 0.9rem;
}

/*=========================
    HEADER
=========================*/

#header {
  position: fixed;

  left: auto;

  top: auto;

  width: 280px;

  height: 100vh;

  background: #111827;

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

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  /* Hide scrollbar */
  scrollbar-width: none;

  -ms-overflow-style: none;

  z-index: 1000;

  overflow-y: auto;
}
#header::-webkit-scrollbar {
  display: none;
}
/* Scrollbar width */
::-webkit-scrollbar {
  width: 12px;
}

/* Scrollbar track/background */
::-webkit-scrollbar-track {
  background: #0f172a;
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
  background: #078a9b;
  border-radius: 10px;
  display: none;
}

/* Scrollbar thumb when hovered */
::-webkit-scrollbar-thumb:hover {
  background: #078a9b;
}

#logo {
  text-align: center;

  padding: 40px 20px;
}

#logo img {
  width: 100px;

  height: 100px;

  object-fit: cover;

  border-radius: 50%;

  margin: auto;

  border: 4px solid var(--primary);

  margin-bottom: 5px;
}

#title {
  font-size: 1.4rem;

  margin-bottom: 5px;
}

#logo p {
  font-size: 0.95rem;

  color: var(--accent);
  margin-bottom: 5px;
}
.menu-toggle {
  display: none;
  /* position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  z-index: 2000; */
}

/*=========================
    NAVIGATION
=========================*/

#nav {
  width: 100%;
}

#nav ul {
  display: flex;

  flex-direction: column;
}

#nav li {
  width: 100%;
}

#nav a {
  display: flex;

  align-items: center;

  gap: 5px;

  /* padding: 18px 35px; */

  padding: 12px 15px;
  color: #cbd5e1;

  transition: var(--transition);

  border-left: 1px solid transparent;
}

#nav a:hover {
  background: #1e293b;

  color: #fff;

  border-left: 4px solid var(--primary);
}

#nav a.active {
  background: var(--primary);

  color: #fff;
}

.icons {
  display: flex;

  justify-content: center;

  gap: 18px;

  padding: 30px;
}

.icons a {
  width: 45px;

  height: 45px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #1e293b;

  transition: var(--transition);
}

.icons a:hover {
  background: var(--primary);

  transform: translateY(-5px);
}

/*=========================
    MAIN CONTENT
=========================*/

#main {
  margin-left: 280px;
}

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

#home {
  min-height: 100vh;

  display: flex;

  align-items: center;

  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
    url("../images/banner.jpg") center/cover no-repeat;
}

.hero-content {
  max-width: 700px;
}

.hero-content h4 {
  color: var(--accent);

  font-size: 1.2rem;
}

.hero-content h2 {
  font-size: 4rem;

  margin: 15px 0;
}

.hero-content h3 {
  min-height: 55px;

  color: var(--primary);

  font-size: 2rem;
}

.hero-content p {
  font-size: 1.05rem;

  max-width: 620px;
}

.hero-buttons {
  display: flex;

  gap: 20px;

  margin-top: 40px;

  flex-wrap: wrap;
}

/*=========================
    SIMPLE FADE ANIMATION
=========================*/

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(40px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeUp 1s ease;
}
/*==================================================
    CHUNK 2 - ABOUT, TIMELINE, SKILLS & STATS
===================================================*/

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

#about {
  background: #111827;
}

.about-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 25px;
  box-shadow: var(--shadow);
  border: 4px solid var(--primary);
}

.about-text h3 {
  color: var(--accent);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.about-info div {
  background: var(--secondary);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.about-info div:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.about-info strong {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
}

.about-info span {
  color: var(--text);
}

/*=========================
    TIMELINE
=========================*/

.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  background: var(--secondary);
  margin-bottom: 35px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 35px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--dark);
}

.timeline-item span {
  color: var(--accent);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 12px;
}

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

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-card {
  background: var(--secondary);
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.skill-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.skill-card h3 {
  margin-bottom: 25px;
}

/*=========================
    PROGRESS BARS
=========================*/

.progress {
  width: 100%;
  height: 12px;
  background: #0f172a;
  border-radius: 30px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-bar.html {
  width: 95%;
}

.progress-bar.css {
  width: 90%;
}

.progress-bar.js {
  width: 90%;
}

.progress-bar.react {
  width: 80%;
}

.progress-bar.node {
  width: 92%;
}

.progress-bar.express {
  width: 90%;
}

.progress-bar.mongo {
  width: 88%;
}

.progress-bar.git {
  width: 85%;
}

/*=========================
    STATISTICS
=========================*/

.stats {
  background: #111827;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-box {
  background: var(--secondary);
  text-align: center;
  padding: 40px 25px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.stat-box h2 {
  color: var(--primary);
  font-size: 3rem;
  margin-bottom: 10px;
}

.stat-box p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

/*=========================
    SECTION ANIMATION
=========================*/

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
/*==================================================
    CHUNK 3 - PROJECTS, SERVICES & TESTIMONIALS
===================================================*/

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

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.project-card {
  background: var(--secondary);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: 0.5s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  margin-bottom: 15px;
  color: var(--white);
}

.project-content p {
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/*=========================
    TECH STACK
=========================*/

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-stack span {
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.tech-stack span:hover {
  background: var(--primary);
  color: #fff;
}

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

.project-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-buttons .button {
  flex: 1;
  justify-content: center;
}

/*=========================
    SERVICES
=========================*/

#services {
  background: #111827;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--secondary);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-card i {
  width: 85px;
  height: 85px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 25px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  margin: 0;
}

/*=========================
    TESTIMONIALS
=========================*/

.seven {
  background: var(--dark);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.testimonial-card {
  background: var(--secondary);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.testimonial-card::before {
  content: "❝";
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 4rem;
  color: rgba(37, 99, 235, 0.2);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 25px;
}

.testimonial-card h4 {
  margin-bottom: 5px;
  color: var(--white);
}

.testimonial-card span {
  color: var(--accent);
  font-size: 0.9rem;
}

/*=========================
    IMAGE OVERLAY EFFECT
=========================*/

.project-card {
  position: relative;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent);
  pointer-events: none;
}

/*=========================
    CARD HOVER GLOW
=========================*/

.project-card:hover,
.service-card:hover,
.testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
}

/*=========================
    SECTION TITLES
=========================*/

#projects header h2,
#services header h2,
.seven header h2 {
  margin-bottom: 15px;
}

#projects header p,
#services header p {
  max-width: 700px;
  margin: auto;
}
/*==================================================
    CHUNK 4 - CONTACT, FOOTER, ANIMATIONS & RESPONSIVE
===================================================*/

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

#contact {
  background: #111827;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  background: var(--secondary);
  padding: 25px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.contact-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-form {
  background: var(--secondary);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  outline: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  border: 1px solid transparent;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
}

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

#footer {
  background: #020617;
  width: 100%;
  padding: 60px;
  text-align: center;
}

.footer-content h3 {
  margin-bottom: 10px;
}

.footer-content p {
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-icons a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-6px);
}

.copyright {
  color: #94a3b8;
  font-size: 0.9rem;
}

/*=========================
    SCROLL TO TOP
=========================*/

#scrollTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 999;
}

#scrollTop:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

#scrollTop.show {
  display: flex;
}

/*=========================
    UTILITIES
=========================*/

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

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mt-4 {
  margin-top: 40px;
}
.mt-5 {
  margin-top: 50px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
.mb-4 {
  margin-bottom: 40px;
}
.mb-5 {
  margin-bottom: 50px;
}

/*=========================
    ANIMATIONS
=========================*/

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.about-image img {
  animation: float 5s ease-in-out infinite;
}

.button.primary {
  animation: pulse 3s infinite;
}

/*=========================
    RESPONSIVE - 1024px
=========================*/

@media (max-width: 1024px) {
  #header {
    width: 230px;
  }

  #main {
    margin-left: 230px;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 350px;
    margin: auto;
  }
}

/*=========================
    RESPONSIVE - 768px
=========================*/

@media (max-width: 768px) {
  /* Hamburger button */
  #menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 20px;
    right: 20px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: var(--primary);
    color: #fff;

    cursor: pointer;
    z-index: 2000;
  }

  /* Sidebar hidden by default */
  #header {
    position: fixed;
    top: 0;
    left: 0;

    width: 280px;
    height: 100vh;

    transform: translateX(-100%);
    transition: transform 0.4s ease;

    z-index: 1500;
  }

  /* Sidebar visible */
  #header.show {
    transform: translateX(0);
  }

  /* Main content */
  #main {
    margin-left: 0;
    width: 100%;
  }

  /* #menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 2000;
    cursor: pointer;
  } */

  /* #header {
    transform: translateX(-100%);
    transition: 0.4s;
  } */

  /* #header.show {
    transform: translateX(0);
    left: 0;
  }
  #header {
    position: relative;
    width: 100%;
    height: auto;
    transform: translateX(-100%);
    transition: 0.4s;
  } */
  /* #home {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 80px 0;
  } */
  #home {
    min-height: calc(100vh - 70px);
    align-items: flex-start;
    padding-top: 150px;
    padding-bottom: 80px;
  }

  #nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  #nav a {
    padding: 15px;
    border-left: none;
  }

  /* .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
    width: 100%;
  } */
  .hero-content {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .services-grid,
  .testimonial-grid,
  .skills-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/*=========================
    RESPONSIVE - 640px
=========================*/
/* 
@media (max-width: 640px) {
  section {
    padding: 70px 0;
  }

  .container {
    width: 92%;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 25px;
  }
} */
@media (max-width: 640px) {
  section {
    padding: 70px 0;
  }

  #home {
    min-height: calc(100vh - 70px);
    padding: 100px 0 70px;
    align-items: flex-start;
  }

  .container {
    width: 92%;
  }

  .hero-content {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    justify-content: center;
  }

  .button {
    width: 100%;
  }
}
/*=========================
    RESPONSIVE - 480px
=========================*/

@media (max-width: 480px) {
  #logo img {
    width: 90px;
    height: 90px;
  }

  #title {
    font-size: 1.2rem;
  }

  .project-content,
  .service-card,
  .testimonial-card,
  .contact-card {
    padding: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
  }
}
/* Progress Bar */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  z-index: 9999;
}

/* Theme Button */

.theme-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.theme-btn:hover {
  transform: rotate(180deg);
}

body.light-mode {
  background: #f8fafc;
  color: #1e293b;
}

body.light-mode #header {
  background: #ffffff;
}

body.light-mode .project-card,
body.light-mode .service-card,
body.light-mode .testimonial-card,
body.light-mode .skill-card,
body.light-mode .contact-card,
body.light-mode .contact-form,
body.light-mode .stat-box,
body.light-mode .timeline-item {
  background: #ffffff;
  color: #1e293b;
}
