@import url('/material-design-iconic-font/css/material-design-iconic-font.css');

@font-face {
  font-family: 'Marcellus';
  src: url('Marcellus/Marcellus-Regular.ttf');
}

.Marcellus {
  font-family: 'Marcellus';
}

@font-face {
  font-family: 'Assistant';
  src: url('assistant/Assistant-Regular.otf');
}

.Assistant {
  font-family: 'Assistant';
}

:root {
  --bg: #FEFCFB;
  --bg-shadow: #e5eaf0;
  --accent: #bf9b30;
  --accent-dark: #a67c00;
  --primary: #149ad8;
  --secondary: #001F54;
  --text: #000000;
  --text-secondary: #28282f;
  --border: hsla(0, 0%, 0%, 0.4);
  --shadow: rgba(0, 0, 0, 0.2);
  --slide-amt: 14px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-width: 300px;
  font-family: 'Assistant';
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-shadow: #28282f;
  --accent: #bf9b30;
  --accent-dark: #a67c00;
  --primary: #001F54;
  --secondary: #149ad8;
  --text: #FEFCFB;
  --text-secondary: #e5eaf0;
  --border: rgba(0, 0, 0, 0.4);
  --shadow: rgba(0, 0, 0, 0.2);
}

/* Scrollbar properties */

/* Width */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--primary);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

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

/* ── Dark mode toggle ── */
.toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 22px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-shadow);
  -webkit-transition: .2s;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--accent);
  -webkit-transition: .25s;
  transition: .25s;
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--bg-shadow);
}

input:checked+.slider:before {
  -webkit-transform: translateX(var(--slide-amt));
  -ms-transform: translateX(var(--slide-amt));
  transform: translateX(var(--slide-amt));
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.bg-wrapper {
  position: absolute;
  min-height: 498px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
}

.splash-bg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: 1;
}

.nav-content {
  overflow: visible;
}

.splash-bg {
  background: linear-gradient(315deg, var(--secondary) 3%, var(--primary) 38%, var(--secondary) 68%);
  animation: gradient 10s ease infinite;
  background-size: 150% 150%;
  background-attachment: fixed;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-bg {
    animation: none;
  }
}

/* TODO: Edit CSS */

/* Top Nav */
.top-nav {
  position: sticky;
  top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 900px;
  height: 40px;
  padding: 16px;
  margin: 3px auto;
  background-color: var(--bg);
  border-color: var(--bg-shadow);
  border-width: 2px;
  border-style: solid;
  border-radius: 16px;
  box-shadow: 4px 4px 4px var(--bg-shadow);
}

#left-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

#toggle-nav {
  height: 30px;
  width: 30x;
  border: none;
  background-color: var(--bg);

  svg {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
  }
}

#top-nav-logo {
  display: none;
  border-radius: 3px;
}

#nav-title {
  font-family: 'Marcellus';
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

#right-top-nav {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 8px;
}

#right-top-nav .nav-links {
  display: none;
  justify-content: space-around;
  gap: 8px;
  list-style-type: none;
  padding: 0;
}

a.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
}

#nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: transparent;
  pointer-events: none;
}

#nav-drawer-backdrop.isOpen {
  transition: background-color 500ms ease-in-out;
  background-color: #00000073;
  pointer-events: auto;

  #nav-drawer {
    transform: translateX(0);
  }
}

#nav-drawer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  background: var(--primary);
  border-right: medium none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 40%;
  min-width: 250px;
  min-height: 250px;
  max-width: 400px;
  z-index: 100;
  overflow-x: hidden;
  transition: transform 0.5s ease-in-out;
  transform: translateX(-100%);
}

#nav-drawer::-webkit-scrollbar-track {
  background-color: var(--primary);
}

#nav-drawer::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
}

#drawer-toggle-btn-wrapper {
  display: flex;
  justify-content: flex-end;
}

#drawer-toggle-btn-wrapper .drawer-toggle-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 30px;
  width: 30px;
  padding: 3px 3px 0px 6px;
  background-color: var(--secondary);
  border: none;
  border-radius: 4px;

  svg path {
    stroke: var(--primary);
  }
}

#drawer-toggle-btn-wrapper .drawer-toggle-btn:hover {
  svg path {
    stroke: var(--accent);
    transition: 0.3s ease;
  }
}

#drawer-profile-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: var(--secondary);
}

#img-drawer {
  display: block;
  margin: 4px auto;
  border: 4px solid var(--accent);
  border-radius: 50%;
}

#drawer-name {
  font-family: "Marcellus";
  letter-spacing: 1.5px;
  font-size: 24px;
  color: var(--accent);
  text-transform: capitalize;
  font-weight: 600;
  margin: 11px auto;
}

#drawer-profile-wrap .social-list {
  padding-bottom: 16px;
}

.drawer-navigation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.drawer-navigation li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
}

.drawer-navigation li:hover {
  transition: background-color 350ms ease;
  background-color: var(--secondary);

  .drawer-nav-link {
    transition: color 350ms ease;
    color: var(--accent);
    font-weight: 600;
  }
}

.drawer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  padding: 10px 0;
  text-transform: capitalize;
}

#drawer-footer {
  display: flex;
  justify-content: center;
  color: var(--text)
}

/* About Section */

.card {
  width: auto;
  min-height: inherit;
  position: static;
  overflow: visible;
  display: block;
  padding: 45px 25px;
  background: var(--bg);
  box-shadow: 6px 6px 4px var(--bg-shadow);
  border-radius: 8px;
}

#about-sec,
#experience-sec,
#skills-sec,
#certs-sec,
#project-sec {
  min-width: 300px;
  width: 80vw;
  max-width: 900px;
  margin: 0 auto;
}

#about-sec.card {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

#about-img-and-links {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

#about-img {
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 125px;
  height: 125px;
  margin: 10px;
}

.social-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.social-link {
  position: relative;
  display: inline-block;
}

.social-svg {
  fill: var(--text-secondary, #afafaf);
  transition: fill 0.2s ease, width 0.2s ease;
  width: 32px;
}

#drawer-profile-wrap .social-list .social-svg {
  fill: var(--bg-shadow);
}

.social-svg.tryhackme:hover {
  path {
    fill: #c11111;
  }
}

.social-svg.hackthebox:hover {
 path {
    fill: #9fef00;
  }  
}

.social-svg.linkedin:hover {
   path {
    fill: #0288d1;
  }
}

.social-svg.github:hover {
   path {
    fill: #1b1f23;
  }
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 0.5rem;
  transform: translateX(-50%) scale(0.9);
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  transform: translateX(-50%) rotate(45deg);
  background: #0f172a;
}

.social-link:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

#info-and-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  text-align: center;
}

#about-name {
  font-family: 'Marcellus';
  letter-spacing: 1.5px;
  font-size: 30px;
  margin: 0;
}

#about-tagline {
  font-size: 16px;
  margin: 0;
  margin-bottom: 10px;
  color: var(--text-secondary)
}

#about-action-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.about-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  height: 20px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}

[data-theme="dark"] {

  #download-resume,
  #email-contact {
    /* Hard-coded because it looks better this way for both */
    color: var(--text);
  }
}

#download-resume,
#email-contact {
  margin-right: 4px;
  text-decoration: none;
  font-size: 16px;
  height: 30px;
  color: var(--bg);
  transition: background-color 250ms ease;
}

#download-resume {
  background-color: var(--primary);
  box-shadow: 3px 3px 4px var(--secondary);
}

#download-resume:hover {
  background-color: var(--secondary);
}

#email-contact {
  background-color: var(--accent);
  box-shadow: 3px 3px 4px var(--accent-dark);
}

#email-contact:hover {
  background-color: var(--accent-dark);
}

.about-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-details li {
  margin-bottom: 0.5rem;
}

.about-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-title .zmdi {
  font-size: 1.1rem;
  color: var(--secondary);
}

/* Experience Section */
#experience-timeline .timeline {
  position: relative;
  padding-left: 30px;
}

#experience-timeline .timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.6;
}

#experience-timeline .timeline-item {
  position: relative;
  margin-bottom: 28px;
}

#experience-timeline .timeline-item .card p {
  font-size: 16px;
  margin: 8px;
}

#experience-timeline .timeline-item:last-child {
  margin-bottom: 0;
}

#experience-timeline .timeline-dot {
  position: absolute;
  left: -26px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--secondary);
}

#experience-timeline .exp-card {
  padding: 20px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#experience-timeline .exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--bg-shadow);
}

#experience-timeline .exp-company {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

#experience-timeline .exp-role {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

#experience-timeline .exp-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.exp-meta span {
  height: 24px;
  margin-right: 4px;
}

#experience-timeline .exp-badge {
  vertical-align: middle;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] {
  #experience-timeline .timeline::before {
    /* Hard-coded because it looks better this way for both */
    color: var(--secondary);
  }

  #experience-timeline .timeline-dot {
    /* Hard-coded because it looks better this way for both */
    background-color: var(--secondary);
    box-shadow: 0 0 0 2px var(--primary);
  }

  #experience-timeline .exp-company {
    /* Hard-coded because it looks better this way for both */
    color: var(--secondary);
  }

  #experience-timeline .exp-badge {
    /* Hard-coded because it looks better this way for both */
    background-color: var(--secondary);
  }
}

/* Skills Section */
#skills-container {
  display: flex;
  flex-direction: column;
}

.skill-group {
  margin-bottom: 28px;
}

.skill-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--bg);
  border: 2px solid var(--primary);
  padding: 4px 8px;
  margin-bottom: 3px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 4px 4px 4px var(--bg-shadow);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;

  svg {
    margin-right: 4px;
    width: 20px;
    fill: var(--accent);
  }
}

[data-theme="dark"] {
  .skill-chip {
    color: var(--text);
    background-color: var(--primary);
    border-color: var(--secondary);
  }
}

.skill-chip:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 8px 8px 4px var(--bg-shadow);
}

/* ── Certifications ── */
#certs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

#certs-container .cert-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  border: 1px solid var(--bg-shadow);
  box-shadow: 3px 3px 4px var(--bg-shadow);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#certs-container .cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

#certs-container .cert-icon {
  font-size: 60px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

[data-theme="dark"] {
  #certs-container .cert-icon {
    color: #0d7bae;
  }
}


#certs-container .cert-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

#certs-container .cert-meta {
  font-size: 13px;
  color: var(--text-secondary);
}


/* Media Queries */
@media only screen and (min-width: 650px) {
  .top-nav {
    height: 48px;
  }

  .social-svg {
    width: 36px;
  }

  #nav-title {
    font-size: 1.05rem;
  }

  #toggle-nav {
    display: none;
  }

  #right-top-nav .nav-links {
    display: flex;
    font-size: 1.05rem;
  }

  #about-sec.card {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  #about-name {
    text-align: left;
  }

  #about-tagline {
    text-align: left;
  }

  #about-sec {
    gap: 16px;
  }

  #about-img {
    width: 20vw;
    height: 20vw;
    max-height: 250px !important;
    max-width: 250px !important;
  }

  #about-action-btns {
    justify-content: flex-start;
  }
}

@media only screen and (min-width: 768px) {
  .top-nav {
    height: 60px;
  }

  #top-nav-logo {
    display: block;
    height: 56px;
    width: auto;
  }

  .social-svg {
    width: 40px;
  }

  #nav-title {
    font-size: 20px;
  }

  #right-top-nav .nav-links {
    font-size: 18px;
  }

  .toggle {
    width: 46px;
    height: 25px;
  }

  .slider::before {
    width: 20px;
    height: 20px;
  }

  :root {
    --slide-amt: 20px
  }

  .experience-sec .timeline-item .card p {
    font-size: 16px;
  }

  #skills-container {
    flex-direction: row;
    gap: 8px;
  }

  .skill-chip {
    font-size: 16px;
  }

  #certs-container {
    flex-direction: row;
  }
}

/* Extra small devices (phones, 600px and down) */
/* @media only screen and (max-width: 600px) {...}

/* Small devices (portrait tablets and large phones, 600px and up) */
/* @media only screen and (min-width: 600px) {...} */

/* Medium devices (landscape tablets, 768px and up) */
/* @media only screen and (min-width: 768px) {...} */

/* Large devices (laptops/desktops, 992px and up) */
/* @media only screen and (min-width: 992px) {...} */

/* Extra large devices (large laptops and desktops, 1200px and up) */
/* @media only screen and (min-width: 1200px) {...} */