@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap");

/* HEADER */

.header {
  background-color: var(--primary-blue-light);
  font-size: 1.8rem;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
    0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
  height: 8rem;
  padding: 0 4.8rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

/* NAV */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.navbar-name {
  font-size: 2.4rem;
  font-weight: 700;
}

.navbar-links-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: auto;
  height: 100%;
  gap: 1.4rem;
}

.main-navbar-link:link,
.main-navbar-link:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
  line-height: 1.2;
  vertical-align: middle;
}

.main-navbar-link:hover,
.main-navbar-link:active {
  color: var(--primary-blue);
  background-color: rgba(29, 42, 93, 0.1);
  transform: translateY(-1px);
}

/* FIXED NAVIGATION COMPENSATION */

body {
  padding-top: 8rem;
}

/* HERO */

.section-hero {
  margin-top: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100vw;
  height: 95vh;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  z-index: 998;
  position: absolute;
  top: 0;
  left: 0;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  /* LCP optimization */
  content-visibility: auto;
  contain-intrinsic-size: 100vw 100vh;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.name {
  display: flex;
  margin-top: 8rem;
}

.name-text {
  font-size: 3.6rem;
  font-weight: 600;
}

.name-text span {
  color: var(--primary-blue);
  font-weight: 700;
}

.typing-section {
  font-size: 2rem;
  display: flex;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.typed-text {
  color: var(--primary-blue);
  font-weight: 700;
}

.cursor {
  display: inline-block;
  width: 0.2rem;
  margin-left: 0.4rem;
  background: var(--text-primary);
}

.cursor.blink {
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    background: var(--text-primary);
  }
  40%,
  50% {
    background: transparent;
  }
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.hero-btn:hover {
  color: var(--primary-blue);
}

/* ABOUT ME SECTION */

.section-about {
  padding: 4.8rem 0 9.6rem 0;
}

.about-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4rem;
}

.about-description p {
  margin-bottom: 1.5rem;
}

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

.verafin {
  color: var(--accent-red);
  text-decoration: none;
}

.verafin:hover,
.verafin:active {
  color: var(--accent-red-dark);
}

.profile-photo {
  height: 50rem;
  width: 50rem;
  border-radius: 50%;
}

.IT-skills {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 2rem;
  font-weight: 600;
}

.IT-skill {
  height: 13rem;
  width: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.IT-skill:hover {
  transform: scale(1.1);
}

.IT-skill-text {
  margin-top: 1.2rem;
}

.IT-skills-flex {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.flex-IT-skills {
  display: flex;
  gap: 12rem;
  align-items: center;
  justify-content: center;
}

/* EDUCATION SECTION */

.section-education {
  background-color: var(--primary-blue-light);
  padding: 4.8rem 0 9.6rem 0;
}

.education-logo {
  height: 18rem;
  width: auto;
  max-width: 18rem;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}

.certifications img {
  transition: transform 0.5s ease;
}

.certifications img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.certifications {
  display: flex;
  gap: 6.4rem;
  width: 100vw;
  flex-direction: row;
  margin: 0 auto;
  max-width: 50%;
  justify-content: center;
  align-items: center;
}

.cert-row {
  max-width: 700px;
  width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.inner-cert-row {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin: auto;
  gap: 2rem;
}

.cert {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.2rem;
  color: var(--text-primary);
}

.cert h2 {
  font-size: 3.2rem;
  font-weight: 500;
}

.cert p {
  font-size: 2.4rem;
  font-weight: 400;
}

/* PROJECTS SECTION */

.section-projects {
  padding: 4.8rem 0 9.6rem 0;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.projects-inner-container {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.project-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 8px;
  width: 100%;
  background-color: var(--primary-blue-light);
  padding: 1.6rem;
  margin-bottom: 3.2rem;
  transition: transform 0.5s ease;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.project-box:hover {
  transform: scale(1.05);
}

.fitfresh-preview {
  height: 50rem;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  object-position: center;
  display: block;
}

.channel-link {
  text-decoration: none;
}

.channel-link:focus {
  border-radius: 6px;
  box-shadow: 0 0 0 0.3rem rgba(29, 42, 93, 0.4),
    0 0 0 0.6rem rgba(220, 225, 244, 0.6);
}

.channel-container {
  border-radius: 8px;
  background-color: var(--primary-blue-light);
  color: var(--text-primary);
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s ease;
}

.channel-container:hover {
  transform: scale(1.05);
}

.channel-inner-container {
  padding: 1.6rem;
}

.channel-box {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  background-color: var(--primary-blue);
  padding: 1rem;
}

.channel-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.6rem 0rem;
}

.channel-name {
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: 0.75;
  margin: 2rem;
}

.channel-view {
  text-align: center;
  margin-top: 4.8rem;
}

.description-item {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.video-container {
  height: 10rem;
  width: 10rem;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

.youtube-channel-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* FOOTER */

.footer {
  padding: 2.8rem 0;
  background-color: var(--bg-dark);
}

.heading-footer {
  display: flex;
  justify-content: center;
  font-size: 3.6rem;
  line-height: 1.05;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.5px;
  margin-bottom: 3.2rem;
}

.email {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  line-height: 1.05;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: -0.5px;
  margin-bottom: 3.2rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 2.2rem;
  color: var(--text-light);
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: var(--text-muted);
}

.footer-icon {
  height: 5.5rem;
  width: 5.5rem;
  fill: var(--text-light);
  transition: all 0.3s;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.footer-icon:link,
.footer-icon:visited {
  text-decoration: none;
  font-size: 1.6rem;
  fill: var(--text-light);
}

.footer-icon:hover,
.footer-icon:active {
  fill: var(--text-muted);
}

/* COPYRIGHT */

.copyright {
  display: flex;
  justify-content: center;
  color: var(--text-light);
  background-color: var(--bg-dark);
  padding: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.6;
}

/* GLOBAL LAYOUT FIXES */

/* Prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Fix for very wide elements */
* {
  max-width: 100%;
}

/* Fix container overflow */
.container {
  max-width: 100%;
  box-sizing: border-box;
}

/* Fix grid/flex overflow */
.grid,
.flex-container {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ensure flex children don't overflow */
.grid > *,
.flex-container > * {
  min-width: 0;
  box-sizing: border-box;
}

/* Ensure buttons don't overflow */
.btn {
  max-width: 100%;
  word-wrap: break-word;
}
