/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #272829; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #050d18; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #149ddd; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #a8a9b4; /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #040b14; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #040b14; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #a8a9b4; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffffff; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f4fafd;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #040b14;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #151f2b;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid
    color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .profile-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;

  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border: 6px solid #2c3440;
  width: 11rem;
  height: 11rem;
  margin: 1rem auto;
}

.header .profile-img img {
  width: 12rem;
  height: 9.6rem;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: none;
}

.header .logo h1 {
  font-size: 2rem;
  margin: 0 auto;
  font-weight: 500;
  color: var(--heading-color);
}

.header .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  border-radius: 50%;
  margin: 0 0.3rem;
  width: 3rem;
  height: 3rem;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--contrast-color);
  background: var(--accent-color);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.mobile-nav-toggle {
  display: none;
}

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: --nav-dropdown-color;
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

/* Preloader Styles */
.loading-area {
  display: none;
  width: 100vw;
  height: 100vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-area.active {
  display: flex;
}
.load-anim1,
.load-anim2 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid;
  border-left-color: #10ac84;
  border-top-color: #ff9f43;
  border-right-color: #0984e3;
  border-bottom-color: #d63031;
  animation: loadAnim 6s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
}
.load-anim2 {
  animation: loadAnim2 3s linear infinite;
}
@keyframes loadAnim {
  0% {
    transform: rotate3d(1, 1, 1, 0deg);
  }
  100% {
    transform: rotate3d(1, 1, 1, 360deg);
  }
}
@keyframes loadAnim2 {
  0% {
    transform: rotate3d(1, 1, 1, 0deg);
  }
  100% {
    transform: rotate3d(1, 1, 1, -360deg);
  }
}
/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  visibility: hidden;
  opacity: 0;
  z-index: 10000;
  background-color: var(--accent-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 24px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: fit-content;
  height: fit-content;
  margin: 0 auto;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 70%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
}

.hero p {
  margin: 5px 0 0 0;
  font-size: 26px;
}

.hero p span {
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent-color);
}

.hero .social-links {
  margin-top: 25px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  line-height: 1;
  margin-right: 20px;
  transition: 0.3s;
}

.hero .social-links a:hover {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

@media (min-width: 993px) {
  .hero {
    min-height: 50rem;
  }
  .hero img {
    max-width: 50vw;
    max-height: 100vh;
  }
}

@media (max-width: 992px) {
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero img {
    max-width: 30rem;
    max-height: 50rem;
  }
  .hero {
    min-height: 35em;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.1rem;
  }
  .hero p {
    font-size: 0.85rem;
  }
  .hero {
    min-height: 30.5rem;
  }
  .hero img {
    max-width: 20.5rem;
    max-height: fit-content;
  }
}
@media (max-width: 360px) {
  .hero img {
    max-width: 15.5rem;
    max-height: fit-content;
  }
  .hero {
    min-height: 23rem;
  }
}

.experience_timeline .experience-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.experience_timeline .experience-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.experience_timeline .experience-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.experience_timeline .experience-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.experience_timeline .experience-item ul {
  padding-left: 20px;
}

.experience_timeline .experience-item ul li {
  padding-bottom: 10px;
}

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

.experience_timeline .experience-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

.experience_timeline {
  position: relative;
}
.experience_timeline .cv-timeline-row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  min-height: 100px;
}
.experience_timeline .cv-timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #2196f3;
  z-index: 0;
}
.experience_timeline .cv-timeline-col {
  flex: 1 1 0;
  position: relative;
  padding: 0 2rem;
}
.experience_timeline .cv-timeline-block {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
}
.experience_timeline .cv-timeline-dot {
  position: absolute;
  top: 1.2rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border: 3px solid #2196f3;
  border-radius: 50%;
  z-index: 2;
}
.experience_timeline .cv-timeline-left .cv-timeline-dot {
  left: 100%;
  margin-left: -0.55rem;
}
.experience_timeline .cv-timeline-right .cv-timeline-dot {
  right: 100%;
  margin-right: -0.55rem;
}
.experience_timeline .cv-timeline-branch {
  position: absolute;
  top: 1.7rem;
  width: 50%;
  height: 4px;
  background: #2196f3;
  z-index: 1;
}
.experience_timeline .cv-timeline-left .cv-timeline-branch {
  left: 100%;
}
.experience_timeline .cv-timeline-right .cv-timeline-branch {
  right: 100%;
}
.experience_timeline .cv-timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}
.experience_timeline .cv-timeline-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #2196f3;
  text-transform: uppercase;
}
.experience_timeline .cv-timeline-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.25rem;
  display: block;
}
.experience_timeline .cv-timeline-location {
  font-size: 0.95rem;
  font-style: italic;
  color: #444;
  margin-bottom: 0.5rem;
}
.experience_timeline .cv-timeline-desc {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.experience_timeline .cv-timeline-block ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}
.experience_timeline .cv-timeline-block ul li {
  font-size: 0.98rem;
  color: #222;
  margin-bottom: 0.25rem;
}

@media (max-width: 991px) {
  .experience_timeline .cv-timeline-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience_timeline .timeline {
    margin-left: 0;
    margin-right: auto;
  }
  .experience_timeline .cv-timeline-center-line {
    left: 2rem;
    transform: none;
  }
  .experience_timeline .cv-timeline-left .cv-timeline-dot,
  .experience_timeline .cv-timeline-right .cv-timeline-dot {
    left: 2rem;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .experience_timeline .cv-timeline-branch {
    display: none;
  }
  .experience_timeline .timeline {
    left: -40%;
  }
}

@media (max-width: 575px) {
  .experience_timeline .cv-timeline-block {
    padding-left: 1.5rem;
  }
  .experience_timeline .cv-timeline-dot {
    width: 0.8rem;
    height: 0.8rem;
    top: 0.3rem;
  }
}

.experience_timeline .timeline {
  position: relative;
  margin: 0 auto;
  padding: 2rem 0;
  width: 100%;
}
.experience_timeline .timeline:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #2196f3;
  z-index: 0;
}
.experience_timeline .timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 2rem 2rem 0;
  box-sizing: border-box;
}
.experience_timeline .timeline-item.left {
  left: 0;
  text-align: right;
}
.experience_timeline .timeline-item.right {
  left: 50%;
  text-align: left;
  padding: 2rem 0 2rem 2rem;
}
.experience_timeline .timeline-dot {
  position: absolute;
  top: 2.5rem;
  left: 100%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border: 3px solid #2196f3;
  border-radius: 50%;
  z-index: 2;
}
.experience_timeline .timeline-item.right .timeline-dot {
  left: 0%;
  transform: translateX(-50%);
}
.experience_timeline .timeline-content {
  display: inline-block;
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 2;
}
.experience_timeline .timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}
.experience_timeline .timeline-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #2196f3;
  text-transform: uppercase;
}
.resume .timeline-date {
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.25rem;
  display: block;
}
.resume .timeline-location {
  font-size: 0.95rem;
  font-style: italic;
  color: #444;
  margin-bottom: 0.5rem;
}
.resume .timeline-desc {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}
.resume .timeline-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}
.resume .timeline-content ul li {
  font-size: 0.98rem;
  color: #222;
  margin-bottom: 0.25rem;
}

@media (max-width: 991px) {
  .resume .timeline:before {
    left: 2rem;
    transform: none;
  }
  .resume .timeline-item,
  .resume .timeline-item.left,
  .resume .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 2rem 0 2rem 2.5rem;
  }
  .resume .timeline-dot {
    left: 2rem;
    transform: none;
  }
}

@media (max-width: 575px) {
  .resume .timeline-item {
    padding-left: 1.5rem;
    padding-right: 0;
  }
  .resume .timeline-dot {
    width: 0.8rem;
    height: 0.8rem;
    top: 1.5rem;
  }
}

.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Portfolio Section Overlay/Info Styles
--------------------------------------------------------------*/
.portfolio-content {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.portfolio-content img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.portfolio-content:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.portfolio-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(33, 37, 41, 0.6);
  color: #fff;
  opacity: 0;
  padding: 1.5rem;
  pointer-events: none;
  transition: opacity 0.3s, background 0.3s;
  text-align: center;
}

.portfolio-content:hover .portfolio-info {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  background: #149ddd;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  display: inline-block;
}

.portfolio-info p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 500;
}

.portfolio-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.portfolio-info .github-link,
.portfolio-info .live-link,
.portfolio-info .desc-link {
  font-size: 2.3rem;
  color: #fff;
  margin: 0 0.5rem;
  transition: color 0.2s, font-size 0.2s;
}

.portfolio-info .github-link:hover,
.portfolio-info .live-link:hover,
.portfolio-info .desc-link:hover {
  font-size: 2.7rem;
  color: #149ddd;
}

.portfolio-info .preview-link,
.portfolio-info .details-link {
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.2s;
  margin: 0;
}

.portfolio-info .preview-link:hover,
.portfolio-info .details-link:hover {
  color: #149ddd;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.skills-logo-img {
  max-width: 6.5rem;
}
