/**
* Template Name: Style
* Template URL: https://bootstrapmade.com/style-bootstrap-portfolio-template/
* Updated: Jul 02 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

@charset "UTF-8";

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* 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: "Quicksand",  sans-serif;
  --nav-font: "Open Sans",  sans-serif;
}

/* 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: #314862; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #13447f; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #065cc2; /* 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: #314862;  /* The default color of the main navmenu links */
  --nav-hover-color: #065cc2; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #11427d; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #065cc2; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #acc4e0; /* 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: #f7faff;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #065cc2;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #afcdf1;
  --surface-color: #2973cc;
  --contrast-color: #ffffff;
}

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

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

/* PRE-LOADER 
------------------------------*/
.pre-loader { 
  position: fixed;
  inset: 0;
  z-index: 999;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  height: 100vh;
  width: 100vw;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.pre-loader i {
  font-size: 3em;
}

.pre-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/*--------------------------------------------------------------
# PHP Email Form Messages
--------------------------------------------------------------*/

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

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

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

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

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

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu */
.mobile-nav-toggle {
  color: var(--nav-color);
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 32px;
  line-height: 0;
  cursor: pointer;
  display: block !important;
  z-index: 998;
  transition: 0.3s;
}

.mobile-nav-toggle:hover {
  color: var(--nav-hover-color);
}

.navmenu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -300px;
  z-index: 997;
  transition: 0.3s;
  width: 300px;
  overflow: hidden;
}

.navmenu .profile-img img {
  margin: 15px auto;
  display: block;
  width: 160px;
  border: 8px solid color-mix(in srgb, var(--contrast-color), transparent 85%);
}

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

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

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

.navmenu .social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

.navmenu .social-links a,
.navmenu .social-links a:focus {
  justify-content: center;
}

.navmenu .social-links a i {
  margin: 0;
}

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

.navmenu ul {
  display: block;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  overflow-y: auto;
  transition: 0.3s;
  z-index: 998;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-dropdown-color);
  padding: 10px 20px;
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
}

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

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

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

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

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 10px 0;
  margin: 10px 20px;
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--nav-dropdown-color), transparent 90%);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav-toggle {
  right: 310px;
  font-size: 36px;
}

.mobile-nav-active .navmenu {
  position: fixed;
  overflow: hidden;
  top: 0;
  bottom: 0;
  right: 0;
  background-color: var(--nav-mobile-background-color);
  transition: 0.3s;
}

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

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

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 0 5px;
  transition: 0.3s;
}

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

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

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  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;
}

/*--------------------------------------------------------------
# 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: 80px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/

.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title p {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 5px 0 0 0;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  padding: 0;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.5px;
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 0 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

#resume .section-title h2 {
  font-size: 0;
}

#resume .section-title h2::before {
  content: "Curriculum Vitae";
  font-size: 36px;
}


@media (max-width: 576px) {
  #resume .section-title h2::before {
    content: "CV";
    font-size: 36px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

#hero .container,
#hero .row,
#hero .hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#hero .content-wrapper {
  max-width: 700px;
}

#hero .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero {
  padding: 120px 0 40px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.hero.section {
  padding: 120px 0 80px 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/bg/back2.webp") no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

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

@media (max-width: 991px) {
  .hero .hero-content {
    padding: 60px 30px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero .hero-content {
    padding: 40px 20px;
  }
}

.hero .content-wrapper {
  max-width: 600px;
}

.hero .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-title {
    font-size: 2.2rem;
  }
}

.hero .hero-title .typed {
  color: var(--accent-color);
  position: relative;
}

.hero .hero-actions {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .hero .hero-actions {
    justify-content: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

.hero .hero-actions .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero .hero-actions .btn.btn-primary {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline {
  background-color: transparent;
  color: var(--default-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 70%);
}

.hero .hero-actions .btn.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .social-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    text-align: center;
  }
}

.hero .social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--surface-color);
  color: var(--default-color);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--default-color), transparent 90%);
}

.hero .social-links a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.hero .social-links a i {
  font-size: 1.2rem;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/

.about-content p {
  display: block;
  max-width: 55em;
  text-align: left;
  margin: 0 auto 10px auto;
}

.profile-image-wrapper .profile-image {
  margin: 0 auto;
}

.about .profile-image-wrapper {
  margin-bottom: 30px;
}

.about .profile-image-wrapper .profile-image {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent-color);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .profile-image-wrapper .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about .about-content {
  justify-content: center;
  margin-bottom: 40px;
}

.about .about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

@media (max-width: 768px) {
  .about .profile-image-wrapper .profile-image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .about .about-content {
    text-align: center;
  }
}

@media (max-width: 992px) {
  .about .profile-image-wrapper {
    margin-bottom: 40px;
  }
}

/*--------------------------------------------------------------
# Technical Stack Section
--------------------------------------------------------------*/
.tech-stack {
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.tech-stack h1 {
  margin-bottom: 30px;
}

.tech-icons {
  display: grid;
  grid-template-columns: repeat(6, 80px);
  gap: 40px 50px;
  margin: 20px auto 10px auto;
  max-width: 100%;
  width: fit-content;
  padding: 0 20px;
  justify-content: center;
}

.tech-icons .tech-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s ease;
}

.tech-icons .tech-img:hover {
  transform: scale(1.3) !important;
}

.tech-icons .tech-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 992px) {
  .tech-icons {
    grid-template-columns: repeat(4, 80px);
    gap: 35px 40px;
  }
}

@media (max-width: 768px) {
  .tech-icons {
    grid-template-columns: repeat(3, 70px);
    gap: 30px 35px;
  }
  
  .tech-icons .tech-img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .tech-icons {
    grid-template-columns: repeat(3, 65px);
    gap: 25px 30px;
  }
  
  .tech-icons .tech-img {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 480px) {
  .tech-icons {
    grid-template-columns: repeat(2, 60px);
    gap: 20px 25px;
  }
  
  .tech-icons .tech-img {
    width: 60px;
    height: 60px;
  }
}

/*--------------------------------------------------------------
# CV Section
--------------------------------------------------------------*/

#resume button {
  display: flex;
  margin: 0 auto 50px auto;
}

.resume .section-header {
  margin-bottom: 2.5rem;
}

.resume .section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resume .section-header h2 i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.resume .experience-section {
  padding-right: 1.5rem;
}

.resume .experience-section .experience-cards .experience-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resume .experience-section .experience-cards .experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 30%));
}

.resume .experience-section .experience-cards .experience-card:hover {
  box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 85%);
  transform: translateY(-5px);
}

.resume .experience-section .experience-cards .experience-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.resume .experience-section .experience-cards .experience-card .card-header .role-info h3 {
  color: var(--heading-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.resume .experience-section .experience-cards .experience-card .card-header .role-info h4 {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.resume .experience-section .experience-cards .experience-card .card-header .duration {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.resume .experience-section .experience-cards .experience-card .card-body p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.resume .education-section {
  padding-left: 1.5rem;
}

.resume .education-section .education-timeline {
  position: relative;
}

.resume .education-section .education-timeline .timeline-track {
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 70%));
}

.resume .education-section .education-timeline .education-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2.5rem;
}

.resume .education-section .education-timeline .education-item:last-child {
  margin-bottom: 0;
}

.resume .education-section .education-timeline .education-item .timeline-marker {
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent-color);
  border: 3px solid var(--surface-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.resume .education-section .education-timeline .education-item .education-content {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.resume .education-section .education-timeline .education-item .education-content:hover {
  box-shadow: 0 5px 20px color-mix(in srgb, var(--default-color), transparent 90%);
}

.resume .education-section .education-timeline .education-item .education-content .degree-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.resume .education-section .education-timeline .education-item .education-content .degree-header h3 {
  color: var(--heading-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.resume .education-section .education-timeline .education-item .education-content .degree-header .year {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.resume .education-section .education-timeline .education-item .education-content .institution {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.resume .education-section .education-timeline .education-item .education-content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 992px) {

  .resume .experience-section,
  .resume .education-section {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .resume .section-header h2 {
    font-size: 1.6rem;
  }

  .resume .experience-cards .experience-card .card-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .resume .experience-cards .experience-card .card-header .duration {
    align-self: flex-start;
  }

  .resume .education-timeline .education-item .education-content .degree-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .resume .education-timeline .education-item .education-content .degree-header .year {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .resume .section-header h2 {
    font-size: 1.4rem;
  }

  .resume .section-header h2 i {
    font-size: 1.2rem;
  }

  .resume .experience-cards .experience-card {
    padding: 1.3rem;
  }

  .resume .education-timeline .timeline-track {
    left: 0.5rem;
  }

  .resume .education-timeline .education-item {
    padding-left: 2rem;
  }

  .resume .education-timeline .education-item .timeline-marker {
    left: 0;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/

.portfolio.section {
  padding-bottom: 12rem;
}

.portfolio .portfolio-row {
  gap: 5rem;
  row-gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio .portfolio-item {
  padding: 0.75rem;
  max-width: 450px;
}

.portfolio .portfolio-entry {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  will-change: transform;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.portfolio .portfolio-entry:hover {
  transform: translateY(-3px);
}

.portfolio .portfolio-entry .entry-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: block;
  position: relative;
  margin: 0;
}

.portfolio .portfolio-entry .entry-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
  transition: transform 0.4s ease;
}

.portfolio .portfolio-entry:hover .entry-image img {
  transform: scale(1.03);
}

.portfolio .portfolio-entry .entry-image .entry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.portfolio .portfolio-entry:hover .entry-image .entry-overlay {
  opacity: 1;
}

.portfolio .portfolio-entry .entry-image .overlay-content {
  text-align: left;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio .portfolio-entry .entry-image .entry-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio .portfolio-entry .entry-image .entry-links {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  pointer-events: auto;
}

.portfolio .portfolio-entry .entry-image .entry-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent-color);
  border-radius: 10px;
  font-size: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.portfolio .portfolio-entry:hover .entry-image .entry-links a {
  opacity: 1;
  transform: translateY(0);
}

.portfolio .portfolio-entry .entry-image .entry-links a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .portfolio .portfolio-row {
    gap: 0.75rem !important;
    row-gap: 0.75rem !important;
  }
  
  .portfolio .portfolio-item {
    padding: 0.375rem;
  }
}

@media (max-width: 767px) {
  .portfolio .portfolio-row {
    gap: 1rem !important;
    row-gap: 1rem !important;
  }
  
  .portfolio .portfolio-item {
    padding: 0.5rem;
    max-width: 100%;
  }
  
  .portfolio .portfolio-entry .entry-image .entry-overlay {
    padding: 20px;
  }
  
  .portfolio .portfolio-entry .entry-image .entry-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .portfolio .portfolio-entry .entry-image .entry-links a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Portfolio - Project Modal
--------------------------------------------------------------*/

#portfolioInfoModal .modal-content {
  border-radius: 10px;
}

#portfolioInfoModal .modal-header {
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 1.5rem;
}

#portfolioInfoModal .modal-header .modal-title {
  color: white;
  font-size: 1.3rem;
}

#portfolioInfoModal .modal-header .btn-close {
  filter: invert(1);
}

#portfolioInfoModal .modal-dialog {
  max-width: 600px;
  width: 100%;
}

#portfolioInfoModal .modal-body {
  padding: 1.5rem;
}

#portfolioInfoModal .modal-body img {
  max-height: 280px;
  object-fit: contain;
  width: 100%;
  border-radius: 8px;
}

#portfolioInfoModal .modal-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

#portfolioInfoModal h5 {
  color: var(--accent-color);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

#portfolioInfoModal .modal-footer {
  padding: 1rem 1.5rem;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .row {
  justify-content: center;
}

.contact .contact-form {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: color-mix(in srgb, var(--surface-color) 90%, white 5%);
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), var(--contrast-color) 20%);
}