/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
:root {
  /* Updated Color Palette */
  --primary-color: #149ddd;
  --secondary-color: #2eafec;
  --accent-color: #97cc24;
  --background-color: #f5f8fd;
  --text-color: #272829;
  --heading-color: #173b6c;
  --hover-color: #0b3143;
  --button-hover-color: #37b3ed;
  --footer-background: #105b52;
  --header-background: #040b14;
  --social-icon-bg: #1f2f97;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 50px; /* Increased size for better visibility */
  height: 50px;
  border-radius: 50%;
  transition: all 0.4s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
  transition: transform 0.3s;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
  transition: visibility 0.4s, opacity 0.4s;
}

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

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  transition: all ease-in-out 0.5s;
  z-index: 9997;
  padding: 20px 15px;
  background: var(--header-background);
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

#header .profile img {
  margin: 20px auto;
  display: block;
  width: 140px; /* Increased size */
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  transition: transform 0.3s;
}

#header .profile img:hover {
  transform: scale(1.05);
}

#header .profile h1 {
  font-size: 28px;
  margin: 15px 0;
  padding: 0;
  font-weight: 700;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

#header .profile h1 a,
#header .profile h1 a:hover {
  color: #fff;
  text-decoration: none;
}

#header .profile .social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-icon-bg);
  color: #fff;
  line-height: 1;
  padding: 10px;
  margin-right: 8px;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: background 0.3s, transform 0.3s;
}

#header .profile .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/*--------------------------------------------------------------
# Main Content
--------------------------------------------------------------*/
#main {
  margin-left: 300px;
  transition: margin-left 0.5s ease;
}

.container,
.container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  #header {
    left: -300px;
  }

  #main {
    margin-left: 0;
  }

  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

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

.nav-menu a,
.nav-menu a:focus {
  display: flex;
  align-items: center;
  color: #0817c3;
  padding: 12px 15px;
  margin-bottom: 10px; /* Increased spacing */
  transition: color 0.3s ease, background 0.3s ease;
  font-size: 16px; /* Increased font size */
}

.nav-menu a i,
.nav-menu a:focus i {
  font-size: 24px;
  padding-right: 10px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  text-decoration: none;
  color: #cfcaca;
  background: rgba(20, 157, 221, 0.1); /* Added background on hover */
  border-radius: 5px;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover > a i {
  color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  background-color: var(--primary-color);
  color: #fff;
  width: 50px; /* Increased size */
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-toggle:hover {
  background-color: var(--secondary-color);
  transform: rotate(90deg);
}

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

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

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(
      rgba(5, 13, 24, 0.5),
      rgba(5, 13, 24, 0.5)
    ),
    url("assets/img/Amit.jpg") top center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

#hero h1 {
  margin: 0 0 15px 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 56px;
  color: #f3f3f3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: font-size 0.3s ease, line-height 0.3s ease;
}

#hero p {
  color: #fff;
  margin-bottom: 60px;
  font-size: 26px;
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  transition: font-size 0.3s ease, margin-bottom 0.3s ease;
}

#hero p span {
  color: #fff;
  padding-bottom: 4px;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 32px;
    line-height: 40px;
  }

  #hero p {
    font-size: 18px;
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0; /* Increased padding for better spacing */
  overflow: hidden;
}

.section-bg {
  background: var(--background-color);
}

.section-title {
  padding-bottom: 40px; /* Increased padding */
  text-align: center;
}

.section-title h2 {
  font-size: 36px; /* Increased font size */
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 20px;
  position: relative;
  color: var(--heading-color);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px; /* Increased width */
  height: 4px; /* Increased height */
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  margin-bottom: 0;
  font-size: 16px;
  color: #555;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 28px;
  color: var(--heading-color);
  margin-bottom: 20px;
}

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

.about .content ul li {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.about .content ul li:hover {
  transform: translateX(10px);
}

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

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

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

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

.skills .progress .skill {
  padding: 0;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  font-size: 16px;
}

.skills .progress .skill .val {
  font-style: normal;
  color: var(--primary-color);
}

.skills .progress-bar-wrap {
  background: #dce8f853;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.skills .progress-bar {
  width: 0;
  height: 10px;
  transition: width 1.2s ease;
  background-color: var(--accent-color);
}

.skills .progress-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  animation: progress-animation 2s forwards;
}

@keyframes progress-animation {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

.resume .resume-item {
  padding: 0 0 25px 25px;
  margin-top: -2px;
  border-left: 3px solid var(--primary-color);
  position: relative;
  transition: background 0.3s ease;
}

.resume .resume-item:hover {
  background: rgba(20, 157, 221, 0.05);
}

.resume .resume-item h4 {
  line-height: 22px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  background: #e4edf9;
  padding: 6px 18px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  border-radius: 4px;
}

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

.resume .resume-item ul li {
  padding-bottom: 10px;
  font-size: 14px;
  color: #555;
}

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

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  left: -11px;
  top: 0;
  background: #fff;
  border: 3px solid var(--primary-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-bottom: 150px; /* Increased padding */
}

.contact .info {
  padding: 40px;
  background: #fff;
  width: 100%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact .info:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.contact .info i {
  font-size: 22px;
  color: var(--primary-color);
  float: left;
  width: 50px;
  height: 50px;
  background: var(--social-icon-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact .info h4 {
  padding: 0 0 0 70px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
}

.contact .info p {
  padding: 0 0 10px 70px;
  margin-bottom: 25px;
  font-size: 16px;
  color: #555;
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 70px;
}

.contact .info .social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  line-height: 1;
  padding: 10px 0;
  border-radius: 50%;
  text-align: center;
  width: 40px;
  height: 40px;
  transition: background 0.3s ease, transform 0.3s ease;
  margin-right: 12px;
}

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

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--primary-color);
  color: #fff;
}

.contact .php-email-form {
  width: 100%;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.contact .php-email-form:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact .php-email-form .form-group {
  padding-bottom: 12px;
}

.contact .php-email-form .validate {
  display: none;
  color: rgb(144, 0, 255);
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}

.contact .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: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact .php-email-form button[type=submit] {
  background: var(--primary-color);
  border: none;
  padding: 12px 30px;
  color: #fff;
  transition: background 0.4s ease, transform 0.3s ease;
  border-radius: 4px;
  cursor: pointer;
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--button-hover-color);
  transform: translateY(-3px);
}

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

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

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 20px;
  color: #f4f6fd;
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: var(--footer-background);
  transition: background 0.3s ease;
}

#footer .copyright {
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    padding: 20px 15px;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Additional Enhancements
--------------------------------------------------------------*/

/* Box Shadows for Sections */
section {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 8px;
}

/* Hover Effects for Buttons and Links */
button,
.btn {
  transition: background 0.3s ease, transform 0.3s ease;
}

button:hover,
.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Parallax Effect for Hero Background */
#hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Smooth Fade-In Animations for Sections */
.section-title,
.about .content,
.skills .progress,
.resume .resume-item,
.contact .info,
.contact .php-email-form {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

.section-title {
  animation-delay: 0.2s;
}

.about .content {
  animation-delay: 0.4s;
}

.skills .progress {
  animation-delay: 0.6s;
}

.resume .resume-item {
  animation-delay: 0.8s;
}

.contact .info,
.contact .php-email-form {
  animation-delay: 1s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #header {
    width: 250px;
  }

  #hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

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

  .nav-menu a {
    font-size: 14px;
  }

  .nav-menu a i {
    font-size: 20px;
  }

  .contact .info h4 {
    padding-left: 60px;
    font-size: 20px;
  }

  .contact .info p {
    padding-left: 60px;
    font-size: 14px;
  }

  .contact .info .social-links a {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  #footer {
    width: 100%;
    position: static;
    padding: 20px 10px;
  }
}
