/**
* Template Name: MyResume - v4.1.0
* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #2997ff; /* Apple blue */
  --secondary-color: #af52de; /* Apple purple */
  --accent-color: #ff375f; /* Apple pink */
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --background-primary: #fafdff;
  --background-secondary: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(200, 200, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(41, 151, 255, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --liquid-gradient: linear-gradient(135deg, 
    rgba(41, 151, 255, 0.7) 0%, 
    rgba(175, 82, 222, 0.5) 50%, 
    rgba(255, 55, 95, 0.4) 100%);
  --glass-background: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(30px) saturate(180%);
  --liquid-animation: liquidFlow 2s ease-in-out infinite;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fafdff 0%, #e3f0ff 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 25px;
  transition: var(--transition-smooth);
  box-shadow: var(--glass-shadow);
}

.back-to-top i {
  font-size: 24px;
  color: var(--primary-color);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
}

.back-to-top:hover i {
  color: white;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: linear-gradient(135deg, #fafdff 0%, #e3f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

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

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

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

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

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: var(--transition-smooth);
  padding: 20px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 100px;
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 992px) {
  #header {
    width: 320px;
    left: -320px;
  }
}

@media (min-width: 992px) {
  #main {
    margin-left: 75px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.nav-menu {
  padding: 0;
  display: block;
}

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

.nav-menu>ul>li {
  position: relative;
  white-space: nowrap;
  margin-bottom: 8px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  padding: 16px 20px;
  transition: var(--transition-smooth);
  font-size: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.01);
  height: 60px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 122, 255, 0.9) 0%, 
    rgba(88, 86, 214, 0.9) 50%, 
    rgba(255, 45, 146, 0.9) 100%);
  opacity: 0;
  border-radius: 20px;
  transition: var(--transition-smooth);
  z-index: -1;
  transform: scale(0.8);
}

.nav-menu a i {
  font-size: 24px;
  margin-right: 0;
  display: block;
  margin-left: 0;
  margin-right: 0;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-menu a span {
  padding: 0 5px 0 7px;
  color: inherit;
  font-weight: 500;
}

@media (min-width: 992px) {
  .nav-menu a {
    width: 60px;
    justify-content: center;
    margin: 0 auto;
  }

  .nav-menu a span {
    display: none;
  }
}

.nav-menu a:hover, .nav-menu .active, .nav-menu li:hover>a {
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(0, 122, 255, 0.3),
    0 4px 20px rgba(88, 86, 214, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu a:hover::before, .nav-menu .active::before, .nav-menu li:hover>a::before {
  opacity: 1;
  transform: scale(1);
}

.nav-menu a:hover i, .nav-menu .active i, .nav-menu li:hover>a i {
  animation: liquidFlow 2s ease-in-out infinite;
  transform: scale(1.2) rotate(5deg);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.nav-menu a:hover span, .nav-menu .active span, .nav-menu li:hover>a span {
  color: white;
}

.nav-menu a:hover, .nav-menu li:hover>a {
  width: 100%;
  color: white;
}

.nav-menu a:hover span, .nav-menu li:hover>a span {
  display: block;
}

/* Liquid animation for icons */
@keyframes liquidFlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
  }
  50% {
    transform: scale(1.1) rotate(-1deg);
  }
  75% {
    transform: scale(1.05) rotate(1deg);
  }
}

.nav-menu a:hover i {
  animation: liquidFlow 2s ease-in-out infinite;
}

/* Enhanced glass effect for active state */
.nav-menu .active {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 122, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-menu .active::before {
  opacity: 1;
  transform: scale(1);
}

/* Floating particles effect */
.nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
}

/* Sidebar entrance animation */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#header {
  animation: slideInFromLeft 0.8s ease-out;
}

/* Enhanced focus states for accessibility */
.nav-menu a:focus {
  outline: none;
  outline-offset: 0;
  transform: translateY(-2px);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 9998;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  font-size: 24px;
  transition: var(--transition-smooth);
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50%;
  padding: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-nav-toggle i {
  color: var(--text-primary);
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mobile-nav-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 40px rgba(0, 122, 255, 0.3),
    0 4px 20px rgba(88, 86, 214, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav-toggle:hover i {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 992px) {
  #hero {
    padding-left: 70px;
  }
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(88, 86, 214, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Override section::before for hero section */
#hero.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  border-radius: 0;
  margin: 0;
  z-index: -1;
  box-shadow: none;
}

#hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  overflow: visible !important;
}

#hero h1 {
  margin: 0;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

#hero p {
  color: var(--text-secondary);
  margin: 0 0 30px 0;
  font-size: 1.5rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

#hero p span {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

#hero p span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 1px;
}

#hero .social-links {
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

#hero .social-links a {
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  line-height: 1;
  margin: 0 15px;
  transition: var(--transition-smooth);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

#hero .social-links a:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 122, 255, 0.3);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@media (max-width: 992px) {
  #hero {
    text-align: center;
    padding: 0 20px;
  }

  #hero h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  #hero p {
    margin-top: 10px;
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  #hero .social-links a {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin: 0 10px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

/* Improved container with proper containment */
.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* Responsive container max-widths */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Default section::before for all sections except hero */
section::before {
  /* content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 30px;
  margin: 0;
  z-index: -1; */
  display: none !important;
}

/* Specific section::before for hero section only */
#hero::before {
  margin: 0;
  background: var(--glass-bg);
  border-radius: 0;
}

.section-title {
  text-align: center;
  padding-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.about .content ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--primary-color);
  font-weight: 600;
  white-space: nowrap;
}

.about .content ul i {
  line-height: 20px;
  margin-right: 10px;
  color: var(--primary-color);
  font-size: 16px;
}

.about .content p:last-child {
  margin-bottom: 0;
  line-height: 1.8;
}

.about .content {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.10);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.about .content.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.about img {
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  max-width: 100%;
  height: auto;
}

.about img:hover {
  transform: scale(1.02);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/

.resume .container {
  overflow: visible !important;
}

.resume .resume-title {
  font-size: 1.75rem;
  font-weight: 700;
  padding: 30px 0;
  border-bottom: 2px solid var(--glass-border);
  color: var(--text-primary);
  margin-bottom: 30px;
}

.resume .resume-item {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.10);
  padding: 30px;
  margin-bottom: 30px;
  transition: var(--transition-smooth);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resume .resume-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resume .resume-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.resume .resume-item h5 {
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.resume .resume-item ul li {
  padding-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.resume .resume-item {
  position: relative;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 35px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.resume-download-div {
  text-align: center;
  margin-top: 40px;
}

.resume-download-anchor-div {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
  border: none;
  cursor: pointer;
}

.resume-download-anchor {
  color: white;
  text-decoration: none;
}

.resume-download-anchor-div:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4);
}

.resume-download-anchor:hover {
  color: white;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-title {
  font-size: 1.75rem;
  font-weight: 700;
  padding: 30px 0;
  border-bottom: 2px solid var(--glass-border);
  color: var(--text-primary);
  margin-bottom: 30px;
}

.portfolio .portfolio-item {
  padding: 30px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.10);
  margin-bottom: 30px;
  transition: var(--transition-smooth);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.portfolio .portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio .portfolio-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.portfolio .portfolio-item h5 {
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.portfolio .portfolio-item ul li {
  padding-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.portfolio .portfolio-item {
  position: relative;
}

.portfolio .portfolio-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 35px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(255, 45, 146, 0.2);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -8px 32px rgba(41, 151, 255, 0.10);
  padding: 30px 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  margin-top: 0;
}

#footer h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

#footer p {
  font-size: 15px;
  font-style: italic;
  padding: 0;
  margin: 0 0 40px 0;
  color: var(--text-secondary);
}

#footer .social-links {
  margin: 0 0 40px 0;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: var(--text-secondary);
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
}

#footer .social-links a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

#footer .copyright {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/*--------------------------------------------------------------
# Responsive Design Improvements
--------------------------------------------------------------*/

/* Remove gap between portfolio section and footer on smaller screens */
@media (max-width: 992px) {
  #portfolio {
    margin-bottom: 0;
    padding-bottom: 40px;
  }
  
  section::before {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .about .col-lg-4 {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
  
  .about .col-lg-4 img {
    margin: 0 auto;
  }
  
  /* Ensure proper container containment */
  .container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Fix content overflow on mobile */
  .resume .resume-item,
  .portfolio .portfolio-item,
  .about .content {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Ensure text doesn't overflow container */
  .resume .resume-item h4,
  .portfolio .portfolio-item h4,
  .about .content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Fix mobile navigation width */
  #header {
    width: 280px !important;
    left: -280px;
  }
  
  .mobile-nav-active #header {
    left: 0;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .resume .resume-item,
  .portfolio .portfolio-item {
    padding: 20px;
  }
  
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.1rem;
  }
  
  /* Further reduce gap on smaller screens */
  #portfolio {
    margin-bottom: 0;
    padding-bottom: 20px;
  }
  
  /* Tighter container padding */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure proper text wrapping */
  .resume .resume-item ul li,
  .portfolio .portfolio-item ul li {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  /* Minimal gap for smallest screens */
  #portfolio {
    margin-bottom: 0;
    padding-bottom: 10px;
  }
  
  /* Tighter spacing for very small screens */
  .resume .resume-item,
  .portfolio .portfolio-item,
  .about .content {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  /* Reduce container padding further */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Smaller mobile navigation */
  #header {
    width: 260px !important;
    left: -260px;
  }
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/*--------------------------------------------------------------
# Enhanced Liquid Glass Effects
--------------------------------------------------------------*/

/* Floating particles animation */
.floating-particle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Ensure proper stacking context */
#hero {
  position: relative;
  z-index: 1;
}

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

/* Fix for potential layout issues */
.container {
  position: relative;
  z-index: 1;
}

/* Ensure proper image display */
.about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

/* Profile image specific styling */
.about .col-lg-4 img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.about .col-lg-4 img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced glass morphism for better browser support */
@supports not (backdrop-filter: blur(20px)) {
  .nav-menu a,
  #hero .social-links a,
  .resume .resume-item,
  .portfolio .portfolio-item,
  .about .content,
  #header,
  .mobile-nav-toggle,
  .back-to-top,
  #footer .social-links a {
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .nav-menu a:hover::before,
  .nav-menu .active::before,
  .nav-menu li:hover>a::before {
    background: rgba(0, 122, 255, 0.9) !important;
  }
}

/* Fix for potential layout issues */
@media (max-width: 768px) {
  .nav-menu a {
    width: 100% !important;
  }
  
  .nav-menu a span {
    display: block !important;
  }
}

/* Smooth scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Improved text selection */
::selection {
  background: rgba(0, 122, 255, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(0, 122, 255, 0.2);
  color: var(--text-primary);
}

/* Enhanced loading states */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Improved mobile navigation */
@media (max-width: 992px) {
  .mobile-nav-active #header {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.95);
  }
  
  .mobile-nav-active .mobile-nav-toggle {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  /* Ensure proper mobile layout */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Fix mobile navigation width */
  #header {
    /* width: 320px !important; */
  }
}

/* Enhanced hover effects for better interactivity */
.nav-menu a:hover,
#hero .social-links a:hover,
.resume .resume-item:hover,
.portfolio .portfolio-item:hover,
.about .content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Improved typography for better readability */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark theme support using .dark-theme class */
body.dark-theme {
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --glass-bg: rgba(0, 0, 0, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --background-primary: #000000;
  --background-secondary: #1C1C1E;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  color: #F5F5F7 !important;
}

body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6, body.dark-theme .section-title h2 {
  color: #F5F5F7 !important;
}

body.dark-theme .section-title p, body.dark-theme .about .content p, body.dark-theme .resume .resume-item ul li, body.dark-theme .portfolio .portfolio-item ul li, body.dark-theme #footer p, body.dark-theme #footer .credits {
  color: #A1A1A6 !important;
}

body.dark-theme .nav-menu a,
body.dark-theme #hero .social-links a,
body.dark-theme .resume .resume-item,
body.dark-theme .portfolio .portfolio-item,
body.dark-theme .about .content,
body.dark-theme #header,
body.dark-theme .mobile-nav-toggle,
body.dark-theme .back-to-top,
body.dark-theme #footer .social-links a,
body.dark-theme #footer,
body.dark-theme section::before {
  backdrop-filter: blur(32px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
}
body.dark-theme #header {
  background: rgba(10, 10, 20, 0.75) !important;
  backdrop-filter: blur(36px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(180%) !important;
  border-right: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35) !important;
}
body.dark-theme #header::before {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 40, 0.55) 0%,
    rgba(30, 30, 40, 0.35) 50%,
    rgba(30, 30, 40, 0.55) 100%
  ) !important;
  z-index: -1;
  pointer-events: none;
  content: '';
}

/* Theme toggle and back to top buttons */
.theme-toggle-btn, .back-to-top {
  position: fixed;
  right: 20px;
  z-index: 9998;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  font-size: 24px;
  transition: var(--transition-smooth);
  outline: none !important;
  line-height: 0;
  cursor: pointer;
  border-radius: 50%;
  padding: 12px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.theme-toggle-btn { top: 20px; }
.back-to-top { bottom: 20px; visibility: hidden; opacity: 0; }
.theme-toggle-btn i, .back-to-top i {
  color: var(--text-primary);
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  font-size: 24px;
}
.theme-toggle-btn:hover, .back-to-top:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3), 0 4px 20px rgba(88, 86, 214, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.theme-toggle-btn:hover i, .back-to-top:hover i {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Text overflow and wrapping improvements */
.resume .resume-item h4,
.portfolio .portfolio-item h4,
.about .content h3,
.resume .resume-item ul li,
.portfolio .portfolio-item ul li,
.about .content p {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Ensure proper flex behavior for responsive columns */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

.col-lg-4, .col-lg-6, .col-lg-8 {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
    /* max-width: 30%; */
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
    /* max-width: 50%; */
  }

  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
    /* max-width: 60%; */
  }
}

.about,
.about .container {
  overflow: visible !important;
}

.about .content {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 32px;
  transition: all 0.3s ease;
}

.about .content:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio,
.portfolio .container {
  overflow: visible !important;
}

.portfolio .portfolio-item {
  transition: all 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 32px;
}

.portfolio .portfolio-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}