/* 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";
  --nav-font: "Poppins",  sans-serif;
}

:root { 
  --empty-color: #ffffff00; 
  --background-color: #ffffff; 
  --default-color: #111;
  --heading-color: #111;
  --lighter-color: #ffffff08;
  --accent-color: oklch(0.7 0.2 0); /* Dynamic hue */
  --surface-color: #fff;
  --contrast-color: #fff;
  --grad-1: #ff8c20;
  --grad-2: #fa2d42;
  --grad-3: #1571f1;
  --grad-4: #10dd7a;
}

/* Global Layout */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

.header {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.main {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.footer {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Gradient controls */
.gradient-text {
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 12s ease infinite;
}

.gradient-background {
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4));
  background-size: 200% 200%;
  animation: gradient 12s ease infinite;
}

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

/* 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: #bbb;
  --nav-hover-color: #fff;
  --nav-mobile-background-color: #111;}

.light-background {
  --background-color: #000000;
  --surface-color: #fff;
}

.dark-background {
  --background-color: #111;
  --default-color: #fff;
  --heading-color: #fff;
  --surface-color: #111;
  --contrast-color: #fff;
}

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

/* General */
body {
  color: var(--default-color);
  background-color: var(--empty-color);
  font-family: var(--default-font);
  z-index: 3;
}

a {
  color: var(--default-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(--default-font);
}

/* 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 img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.header .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .social-links {
  margin: 0 0 20px 0;
}

.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);
  margin: 0 2px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: 0.3s;
}

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

@media (min-width: 1200px) {
  .main {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1199px) {
  .layout {
    display: block;
  }
  .header {
    left: -100%;
  }
  .main, .footer {
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
    width: 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 {
  position: relative;
  padding: 0;
  z-index: 3;
}

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

.navmenu li {
  background-color: var(--empty-color);
  border-radius: 15px;
}

.navmenu li:hover {
  background-color: var(--lighter-color);
}

.navmenu a,
.navmenu a:focus {
  background: linear-gradient(45deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--nav-color); /* fallback visible */
  -webkit-text-fill-color: var(--nav-color); /* visible initially */
  transition: -webkit-text-fill-color 0.3s ease;
  animation: gradient 3s infinite linear;
  padding: 15px 10px;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 100%;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  -webkit-text-fill-color: transparent;
}

/* Global Footer */
.footer {
  color: var(--default-color);
  background-color: var(--empty-color);
  font-size: 18px;
  padding: 40px 0;
  position: relative;
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 4px;
  font-size: 13px;
  text-align: center;
}

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

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #fff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

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

/* Scroll-Top Button */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 9999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.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: 15px;
}

/* Mobile AOS Disable */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* Global */
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.img-fluid {
  border-radius: 10px;
}

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

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

.section-title h2 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 2px;
  position: relative;
}

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

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

.hero:before {
  content: "";
  background: var(--empty-color);
  position: absolute;
  inset: 0;
  z-index: 2;
}

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

.hero h2 {
  margin-left: 30px;
  font-size: 100px;
  font-weight: 700;
}

.hero p {
  margin-left: 30px;
  font-size: 48px;
}

.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);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 20px;
  }
}

/* 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;
}

/* Skills Section */
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  display: block;
  font-weight: 500;
  font-family: var(--nav-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 12px;
  border-radius: 12px;
}

.skills .progress-bar {
  width: 1px;
  height: 12px;
  transition: 0.9s;
  border-radius: 12px;
  background-color: var(--accent-color);
  background: linear-gradient(60deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4));
  background-size: 400% 400%;
  animation: gradient 20s infinite linear;
}

/* Resume Section */
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

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

.resume .resume-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;
}

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

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

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

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

.resume .resume-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);
}

/* Portfolio Section */


.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
  margin: 0 10px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio-item .portfolio-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(180deg, #00000020, #000000ee);
}
.portfolio-item .portfolio-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #00000020, #000000ee);
  color: #fff;
  opacity: 0;
  transition: background 0.3s, opacity 0.3s;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  border-radius: 15px;
  overflow: hidden;
}
.portfolio-item .portfolio-content:hover .portfolio-info {
  background: linear-gradient(180deg, #00000020, #000000ee);
  opacity: 1;
}
.portfolio-item .portfolio-info p {
  margin: 0;
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  height:14%
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 6;
  transition: all ease-in-out 0.3s;
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #fff;
  display: inline-block;
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

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

.portfolio .portfolio-content:hover img {
  transform: scale(1.05);
}

/* Contact Section*/
.contact-slot {
  margin:1rem;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  border-radius: 20px;
}

.contact-email-link {
  color:#fff;
  font-size: 2rem;
  font-weight: 500;
  word-break: break-all;
  display: inline-block;
}

@media (max-width: 991px) {
  .contact-email-link {
  font-size: 1.2rem;
  }
}

@media (max-width: 575px) {
  .contact-slot {
  width: 92%;
  }
}

.contact-social-links {
  padding: 20px;
  gap: 10px;
}

.contact-social-links a img {
  width: 3rem;
  height: 3rem;
  display: block;
}

/* Effects */

.fluid-effect-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
}
.fluid-effect-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.btn {
  padding: 0.5rem 1rem;
  margin-top: 0.7rem;
  background-color: var(--default-color);
  border: var(--default-color);
}

.btn:hover {
  background-color: var(--accent-color);
  border: var(--accent-color);
}