/* Portfolio Template by RushSite
  Author: Abdulroqib Oladipo
  Description: Beginner-friendly personal portfolio template
  License: Allowed to be used ONLY if paid for
  */

/* GENERAL STYLING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* COLOR VARIABLES */
:root {
  --accent1: #d4af37; /* Muted gold for elegance */
  --accent2: #4f46e5; /* Deep indigo for professionalism */
  --bg: linear-gradient(
    145deg,
    var(--accent2),
    var(--accent1),
    var(--accent2),
    var(--accent1)
  );
  --text: #e5e7eb; /* Soft light gray text */
  --header-bg: #0f172a; /* Very dark navy header */
  --hero-bg: #0a0f1c; /* Rich dark background for hero */
  --cards-bg: #1e293b; /* Slate gray for cards */
  --footer-bg: #111827; /* Dark footer */
  --sidebar-bg: #0f172a;
  --footer-text: #d1d5db; /* Muted light gray text */
  --link: #d4af37; /* Gold accent links */
  --menu-bar: #e5e7eb; /* Matches text */
  --cancel-bar: #b91c1c; /* Professional deep red */
  --radius: 12px;
}

/* LIGHT MODE VARIABLES */
body.light-mode {
  --bg: #c4c7ce; /* Muted gray background, softer than pure white */
  --text: #030405; /* Dark slate text for readability */
  --header-bg: #d1d5db; /* Subtle gray header */
  --hero-bg: linear-gradient(
    145deg,
    #4f46e5,
    #d4af37
  ); /* Professional accent gradient */
  --sidebar-bg: #e5e7eb;
  --cards-bg: #b6b6b6; /* Gentle off-white cards */
  --footer-bg: #d1d5db; /* Balanced footer background */
  --footer-text: #374151; /* Natural dark gray text */
  --link: #4138f5; /* Indigo links for consistency */
  --menu-bar: #374151; /* Darker gray menu bar */
  --cancel-bar: #b91c1c; /* Deep red for cancel actions */
}

/* HTML STYLE */
html,
body {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  background-repeat: repeat;
  background-size: contain;
  color: var(--text);
  line-height: 1.6;
}
#sidebar-hero-and-certs {
  display: flex;
  flex-direction: column;
}
/* HEADER */
header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  margin: 0 auto;
  background: var(--header-bg);
  z-index: 10;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* MAIN */
main {
  width: 100%;
  margin: 20px auto;
  padding: 12px;
  border-radius: 4px;
}

/* HEADER NAVIGATION STYLE */
nav {
  display: flex;
  gap: 20px;
}

/* HEADER NAVIGATION LINKS STYLE */
nav a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 550;
}

/* HEADER NAVIGATION LINKS STYLE WHEN HOVERED */
nav a:hover {
  color: var(--nav-link-hover);
}

/* HERO SECTION STYLE */
#hero {
  max-width: 600px;
  width: 80%;
  margin: 0 auto;
  background: var(--hero-bg);
  text-align: center;
}
/*User Name Style*/
#user {
  background: linear-gradient(120deg, var(--accent1), var(--accent2));
  padding: 0 8px;
  border-radius: calc(var(--radius));
  color: #07101a;
  font-size: 1.8rem;
  animation: move 2s alternate infinite;
}
/*USER NAME BACKGROUND ANIMATION*/

@keyframes move {
  from {
    background-position-y: -50px;
  }
  to {
    background-position-x: 50px;
  }
}
/*Hero Button Style*/
#hero a.hero-btn {
  background: var(--accent1);
  color: #000000;
  padding: 20px 40px;
  line-height: 7.5;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.hero-btn:hover {
  opacity: 0.7;
}
/* ALL SECTION HEADER */
h2 {
  text-align: center;
  margin-bottom: 15px;
}
h3 {
  text-align: center;
  margin-bottom: 10px;
}
/* ALL SECTION WITH class="card" STYLE */
.cards {
  background-color: var(--cards-bg);
}

/* LIST OF ALL SKILLS CONTAINER STYLE */
#skills-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* LIST OF ALL SKILLS STYLE */
#skills-list div {
  background: var(--accent2);
  margin: 8px;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius);
}

/* LIST OF ALL SKILLS STYLE ON HOVER */
#skills-list div:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}

/* ALL SECTION STYLE */
section {
  margin: 10px auto;
  padding: 22px;
  max-width: 900px;
  border-radius: var(--radius);
}

/*Transition SECTION WITH NO #hero*/
section:not(#hero) {
  position: fixed;
  left: -100%;
  opacity: 0;
  transition: all 1s ease;
}
section:not(#hero).animate {
  opacity: 1;
  position: relative;
  left: 0;
}

/* CONTAINER OF ALL PROJECT */
#projects-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
/*ALL LINKS COLOR*/
a {
  color: var(--link);
}
/* LINKS IN CONTAINER OF ALL PROJECTS */
#projects-container a {
  text-decoration: none;
}

/* INDIVIDUAL PROJECT STYLE */
.project {
  min-width: 240px;
  width: auto;
  border: 2px solid var(--accent2);
  border-radius: var(--radius);
  padding: 15px 10px;
  backdrop-filter: blur(100px) brightness(60%);
}

/* INDIVIDUAL PROJECT STYLE ON HOVER */
.project:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}

/* CONTACT SPAN ELEMENT */
span {
  font-weight: 550;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 10px 0;
  width: 100%;
  margin-top: auto;
}

footer a {
  color: var(--link);
  text-decoration: none;
}

/* Make the sidebar invisible by default */
#sidebar,
#menuIcon {
  display: none;
}

/* RESPONSIVE DESIGN FOR SMALLER SCREEN WIDTH */
@media (max-width: 600px) {
  /* INDIVIDUAL PROJECT STYLE ON SMALLER SCREEN FOR CONSISTENT DESIGN */
  .project {
    width: 90%;
  }
  /* ALL SECTION STYLE */
  section {
    margin: 10px 0;
  }
  /* make the name and menu icon stay beside each other */
  header {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    margin: 0;
  }
  #hero {
    width: 100%;
  }

  /* Make the normal navigation links invisible on smaller screens */
  #normal-navLinks {
    display: none;
  }

  /* STYLE NAV LINKS IN SIDEBAR */
  #sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0 0 30px;
  }

  /* STYLE SIDEBAR */
  #sidebar {
    background: var(--sidebar-bg);
    width: 80vw;
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1000;
    display: none;
  }

  /* ENSURE SIDEBAR SHOWS ON MENU ICON CLICK */
  #sidebar.show {
    display: block;
  }

  /* STYLE SPAN ELEMENT TO LOOK LIKE MENU ICON */
  #menuIcon span,
  #cancelIcon span {
    background-color: var(--menu-bar);
    width: 25px;
    height: 3px;
    margin: 0 3px 5px 5px;
    border-radius: 20px;
  }

  /* STYLE MENU ICON ITSELF */
  #menuIcon,
  #cancelIcon {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-top: 10px;
  }
  #cancelIcon span {
    background-color: var(--cancel-bar);
  }

  /* STYLE CANCEL ICON INSIDE SIDEBAR */
  #cancelIcon {
    margin: 20px;
    position: absolute;
    right: 10px;
  }

  /* MAKE SPAN FOR CANCEL ICON LOOK LIKE AN X SHAPE */
  #middlebar {
    display: none;
  }

  #topbar {
    transform: rotate(45deg) translate(6px);
  }

  #bottombar {
    transform: rotate(-45deg) translate(6px);
  }
}
/* Smooth transition for light/dark mode */
body,
header,
footer,
.project,
.cards,
#hero,
#skills-list div {
  transition: all 0.9s ease;
}

/* You are only allowed to use this template if it was paid for*/
/*Built by Abdulroqib Oladipo*/
