/**
* Template Name: iPortfolio
* Template URL: https://bootstrapmade.com/iportfolio-bootstrap-portfolio-websites-template/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* 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;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --primary-color: #4F5BD5;      /* Royal Indigo */
  --secondary-color: #F59E0B;    /* Warm Amber */
  --accent-color: #E14D8C;       /* Vibrant Rose */
  --dark-bg: #FAF7F2;            /* Warm Light Background */
  --darker-bg: #FFFDF9;          /* Warm Surface */
  --light-text: #0f172a;         /* Near-Black for Text */
  --muted-text: #445063;         /* Slightly warmer Slate */
  --card-bg: rgba(255, 253, 249, 0.85);  /* Warm Light Glass */
  --border-color: rgba(15, 23, 42, 0.08); /* Subtle Border */
  --hover-color: #3E49B8;        /* Deeper Indigo */
  /* Additional base tokens for light theme */
  --background-color: #FAF7F2;
  --surface-color: #FFFDF9;
  --default-color: #0f172a;
  --heading-color: #0b1220;
  --contrast-color: #ffffff;
}

[data-theme="dark"] {
  --primary-color: #8ab4ff;       /* Softer Indigo */
  --secondary-color: #fbbf24;     /* Amber */
  --accent-color: #f472b6;        /* Rose */
  --dark-bg: #0b1020;             /* Deep Navy */
  --darker-bg: #121826;           /* Elevated Surface */
  --light-text: #e5e7eb;          /* Light Gray */
  --muted-text: #9aa4b2;          /* Muted Slate */
  --card-bg: rgba(18, 24, 38, 0.7);
  --border-color: rgba(148, 163, 184, 0.14);
  --hover-color: #a5c8ff;
  --background-color: #0b1020;
  --surface-color: #121826;
  --default-color: #e5e7eb;
  --heading-color: #ffffff;
  --contrast-color: #0b1220;
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--light-text);
  background-color: var(--dark-bg);
  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);
}

/* 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: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  overflow-y: auto;
  z-index: 997;
}

[data-theme="dark"] .header {
  background: rgba(12, 18, 32, 0.8);
  border-right-color: var(--border-color);
}

.header .profile {
  padding: 30px 0;
  text-align: center;
}

.header .profile img {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  border: 3px solid transparent;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
  -webkit-mask: 
     linear-gradient(#fff 0 0) padding-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  transition: all 0.3s ease;
}

.header .profile img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.header .profile h1 {
  font-size: 24px;
  margin: 15px 0 5px 0;
  color: var(--light-text);
  font-weight: 600;
}

.header .nav-menu {
  padding: 30px 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 8px 15px;
  border-radius: 12px;
  color: var(--muted-text);
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.nav-menu a i {
  font-size: 20px;
  margin-right: 15px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .active {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary-color);
  transform: translateX(5px);
}

.nav-menu a:hover i,
.nav-menu .active i {
  color: var(--primary-color);
  transform: scale(1.2);
}

.nav-menu .active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--primary-color);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 5px;
  color: var(--muted-text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--light-text);
}

.social-links a:hover::before {
  opacity: 1;
}

.social-links a i {
  position: relative;
  z-index: 1;
}

.header-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.header-toggle:hover {
  background: var(--primary-color);
  transform: rotate(90deg);
}

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

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(99, 102, 241, 0.1),
    rgba(34, 211, 238, 0.1),
    rgba(244, 113, 181, 0.1)
  );
  background-size: 200% 200%;
  animation: gradient-animation 15s ease infinite;
  z-index: -1;
}

@media (min-width: 1200px) {

  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -300px;
  }
  
  .header.header-show {
    left: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
}

.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(--muted-text);
  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(--primary-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);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  position: relative;
}

.footer .copyright {
  text-align: center;
  color: var(--muted-text);
}

.footer .copyright strong {
  color: var(--light-text);
}

.footer .copyright span {
  color: var(--muted-text);
}

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

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--muted-text);
  border: 1px solid var(--border-color);
  margin: 0 5px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background: var(--primary-color);
  color: var(--light-text);
  transform: translateY(-3px);
}

/* Credits section if you have one */
.footer .credits {
  font-size: 14px;
  color: var(--muted-text);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: 15px;
}

.footer .credits a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .credits a:hover {
  color: var(--hover-color);
}

/*--------------------------------------------------------------
# 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 #ffffff;
  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: 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 Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.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%);
}

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

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: left;
  margin-bottom: 3rem;
  padding-left: 0;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 1rem;
  text-align: left;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  color: var(--muted-text);
  font-size: 1.1rem;
  text-align: left;
}

/*--------------------------------------------------------------
# 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: 100%;
  height: 100%;
  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);
}

@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;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 44px;
  float: left;
  line-height: 0;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 48px;
  line-height: 40px;
  display: block;
  font-weight: 700;
  margin-left: 60px;
}

.stats .stats-item p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 15px 0 0 0;
  margin: 0 0 0 60px;
  font-family: var(--heading-font);
  font-size: 14px;
}

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

.skills .progress .skill {
  color: var(--light-text);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

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

.skills .progress-bar-wrap {
  background: var(--darker-bg);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--primary-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(--border-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--light-text);
  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: 14px;
  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 .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: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.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: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

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

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

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  position: relative;
}

.services .service-item .icon {
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: 0.5s;
  border: 1px solid var(--accent-color);
  margin-right: 20px;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  line-height: 24px;
  font-size: 14px;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 40%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 15px 15px;
  padding: 20px;
  background-color: var(--surface-color);
  position: relative;
  margin-bottom: 35px;
  border-radius: 6px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 20px solid var(--surface-color);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 20px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 40px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/

/* Add to your CSS file */
.modal-content {
  background-color: #fff;
  border: none;
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  background-color: #f8f9fa;
  border-radius: 0 0 15px 15px;
}

.tech-stack .badge {
  margin: 0.2rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.portfolio-links a {
  margin: 0 5px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-links a:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Optional: Add animation to modal */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Portfolio Styles */
.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.project-info p {
  color: #666;
  margin: 10px 0;
}

.tech-stack {
  margin-top: 15px;
}

.tech-tag {
  display: inline-block;
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #333;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Modal Styles */
.modal-content {
  border-radius: 15px;
  border: none;
}

.modal-header {
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.project-details {
  padding: 20px;
}

.project-description h4 {
  margin-top: 20px;
  margin-bottom: 15px;
  color: #333;
}

.project-description ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.tech-stack-detailed {
  margin-top: 15px;
}

.tech-stack-detailed .tech-tag {
  background: #e9ecef;
  padding: 8px 15px;
}

/* Button Styles */
.btn {
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #0d6efd;
  border: none;
}

.btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-image img {
    height: 200px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
}

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

/* Gradient Accents */
.section-title h2::before {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Modern Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px var(--primary-color); }
  50% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color); }
  100% { box-shadow: 0 0 5px var(--primary-color); }
}

@keyframes borderGlow {
  0% { border-color: var(--primary-color); }
  50% { border-color: var(--secondary-color); }
  100% { border-color: var(--primary-color); }
}

/* Glass Morphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Card Hover Effects */
.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
  animation: glow 2s infinite;
}

/* Profile Image Animation */
.header .profile-img img {
  animation: float 6s ease-in-out infinite;
  border: 4px solid var(--border-color);
  transition: all 0.3s ease;
}

.header .profile-img img:hover {
  animation: glow 2s infinite;
  transform: scale(1.1);
}

/* Skill Bars Animation */
.skills .progress-bar {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

/* Navigation Links */
.navmenu a {
  position: relative;
  overflow: hidden;
}

.navmenu a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.navmenu a:hover::after {
  transform: translateX(0);
}

/* Modern Variables */
:root {
  --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --glass-bg: rgba(255, 253, 249, 0.6);
  --card-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.08);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 20vh;
}

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Animated Mouse Scroll */
.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--light-text);
  border-radius: 15px;
  position: relative;
  margin: 0 auto;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--light-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  border-radius: 2px;
  animation: mouse-scroll 2s infinite;
}

/* Modern Card Design */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-10px);
}

/* 3D Portfolio Cards */
.portfolio-card {
  perspective: 1000px;
  height: 400px;
}

.portfolio-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.portfolio-card:hover .portfolio-card-inner {
  transform: rotateY(180deg);
}

.portfolio-card-front,
.portfolio-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-card-back {
  background: var(--primary-gradient);
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Animations */
@keyframes mouse-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .about-cards {
    grid-template-columns: 1fr;
  }
}

/* About Section Styling */
.about-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .about-section {
  background-color: var(--dark-bg);
}

.about-card, .skills-card {
  padding: 30px;
  border-radius: 20px;
  height: 100%;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .about-card,
[data-theme="dark"] .skills-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.about-card:hover, .skills-card:hover {
  transform: translateY(-5px);
}

.personal-info .info-item {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.personal-info .info-item i {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 10px;
  margin-right: 15px;
  color: var(--light-text);
}

/* Contact Section Styling */
.contact-section {
  padding: 80px 0;
  position: relative;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-card .icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
}

.contact-card .icon-box i {
  font-size: 28px;
  color: var(--light-text);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--light-text);
}

.contact-card p {
  margin: 0;
  color: var(--muted-text);
}

.contact-card a {
  color: var(--muted-text);
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Animation for contact cards */
.contact-card:hover .icon-box {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Skills Section Styling */
.skills-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.skills-container {
  display: grid;
  gap: 2rem;
  padding: 20px 0;
}

.category-card {
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.category-header i {
  font-size: 2rem;
  margin-right: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-header h3 {
  font-size: 1.5rem;
  color: var(--light-text);
  margin: 0;
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-item {
  position: relative;
}

.skill-info {
  margin-bottom: 15px;
}

.skill-info h4 {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 10px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 1.5s ease;
  position: relative;
  overflow: hidden;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: progress-shine 2s infinite;
}

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

.skill-tag {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--muted-text);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary-gradient);
  color: var(--light-text);
  transform: translateY(-2px);
}

/* Animations */
@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (min-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .category-card {
    padding: 20px;
  }
  
  .skill-tags {
    gap: 6px;
  }
  
  .skill-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}

/* Modern Project Cards Animation */
.portfolio-section {
  position: relative;
  padding: 80px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 20px 0;
}

.portfolio-item {
  height: 350px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.85),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(65%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .project-content {
  background: linear-gradient(
    to top,
    rgba(11, 16, 32, 0.95),
    rgba(11, 16, 32, 0.8),
    transparent
  );
}

.project-title {
  color: var(--light-text);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.project-description {
  color: var(--muted-text);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.project-links {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.project-links a {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--light-text);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .project-links a {
  background: rgba(255, 255, 255, 0.06);
}

.project-links a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}

/* Hover Effects */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-card:hover .project-content {
  transform: translateY(0);
}

.project-card:hover .project-description,
.project-card:hover .project-links {
  opacity: 1;
  transform: translateY(0);
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.tech-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted-text);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .tech-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-text);
}

.project-card:hover .tech-tags {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Styling */
.modal-dialog {
  max-width: 90vw !important;
  margin: 1rem auto;
}

.modal-content.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--light-text);
}

.modal-body {
  padding: 1.5rem;
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.project-info-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-section {
  padding: 1rem;
  margin-bottom: 0;
}

.info-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.info-section p {
  font-size: 0.95rem; /* Reduced font size */
  line-height: 1.6;
  color: var(--muted-text);
}

.info-section ul {
  padding-left: 0;
}

.info-section ul li {
  font-size: 0.95rem; /* Reduced font size */
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
}

.tech-stack-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-stack-detailed .tech-tag {
  padding: 0.4rem 0.8rem; /* Reduced padding */
  font-size: 0.85rem; /* Reduced font size */
  border-radius: 15px;
}

.project-links-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-links-wrapper a {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease; /* Ensure smooth transitions */
  text-decoration: none;
}

.btn-demo {
  background: var(--primary-gradient);
  color: var(--light-text);
  border: none;
}

.btn-github {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-demo:hover, .btn-github:hover {
  transform: translateY(-2px); /* Add a slight lift effect */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--light-text);
}

.btn-demo:hover {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradient 3s ease infinite; /* Ensure this animation is smooth */
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Button icons */
.project-links-wrapper a i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.project-links-wrapper a:hover i {
  transform: translateX(2px);
}

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

/* Modal Styling */
.modal-dialog {
  max-width: 80vw !important; /* Slightly reduced from 90vw */
  margin: 1rem auto;
}

.modal-content.glass-effect {
  background: rgba(255, 253, 249, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
}

[data-theme="dark"] .modal-content.glass-effect {
  background: rgba(12, 18, 32, 0.96);
  border-color: var(--border-color);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
  background: rgba(12, 18, 32, 0.96);
}

.modal-title {
  font-size: 1.5rem; /* Reduced from 2rem */
}

.modal-body {
  padding: 1.5rem;
}

.project-details {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* Adjusted ratio to make image smaller */
  gap: 2rem;
}

.project-image-wrapper {
  max-width: 500px; /* Limit image width */
}

.project-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.project-info-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-section {
  padding: 1rem;
}

.info-section h4 {
  font-size: 1.1rem; /* Reduced from 1.3rem */
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--accent-color);
}

.info-section p {
  font-size: 0.95rem; /* Reduced font size */
  line-height: 1.6;
  color: var(--muted-text);
}

.info-section ul {
  padding-left: 0;
}

.info-section ul li {
  font-size: 0.95rem; /* Reduced font size */
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
}

.tech-stack-detailed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-stack-detailed .tech-tag {
  padding: 0.4rem 0.8rem; /* Reduced padding */
  font-size: 0.85rem; /* Reduced font size */
  border-radius: 15px;
}

.project-links-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-links-wrapper a {
  padding: 0.6rem 1.2rem; /* Reduced padding */
  font-size: 0.9rem; /* Reduced font size */
  border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .modal-dialog {
    max-width: 90vw !important;
  }
  
  .project-details {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

@media (max-width: 992px) {
  .project-details {
    grid-template-columns: 1fr;
  }
  
  .project-image-wrapper {
    max-width: 100%;
  }
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  height: 100vh;
  margin-top: -40px;
  background: linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Remove overlay */
  z-index: 1;
}

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

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  text-align: center;
}

.profile-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--primary-gradient);
  animation: borderRotate 8s linear infinite;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
}

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typed-container {
  font-size: 1.5rem;
  color: var(--light-text);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Animation for profile image border */
@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-image {
    width: 150px;
    height: 150px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .typed-container {
    font-size: 1.2rem;
  }
}

/* New Sidebar Profile Styling */
.sidebar-profile {
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

/* Sidebar Theme Toggle */
.sidebar-theme-toggle {
  position: fixed;
  left: 0;
  bottom: 15px;
  width: 300px;
  display: flex;
  justify-content: center;
  z-index: 998;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--light-text);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle i { font-size: 16px; }
.theme-toggle .toggle-label { font-size: 14px; }

@media (max-width: 1199px) {
  .sidebar-theme-toggle {
    width: 100%;
    left: 0;
    padding-right: 60px; /* account for toggle button */
  }
}

.profile-pic {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-info h2 {
  color: var(--light-text);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 991px) {
  .sidebar-profile {
    padding: 15px;
  }
  
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  
  .profile-info h2 {
    font-size: 1.3rem;
  }
}

/* Hero Section Text Styling */
.hero-name {
  font-size: 4rem; /* Increase font size */
  font-weight: 700; /* Make it bold */
  color: var(--light-text); /* Use a light color for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a subtle shadow for depth */
  font-family: 'Raleway', sans-serif; /* Use Raleway font */
  margin-bottom: 1rem; /* Space below the name */
}

/* Additional styles for the typed text */
.typed-container {
  font-size: 1.5rem; /* Adjust size for the typed text */
  color: var(--light-text);
  font-family: 'Raleway', sans-serif; /* Optional: use the same font for consistency */
}

/* Add Google Fonts link in your HTML <head> */
