/* GENERAL STYLE */

:root {
  --primary-color: #164773;
  --secondary-color: #40c8e0;
  --tertiary-color: #0a192f;
  --gradient-start: #164773;
  --gradient-end: #2a8f9f;
  --hover-color: #0f72c1;
  --text-color: #868e96;
  --box-shadow-primary: rgba(64, 200, 224, 0.5);
  --transition-duration: 0.3s;
}


body {
  font-family: 'Open Sans', serif;
  padding-top: 54px;
  color: var(--text-color);

}


@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 40px; /* Font size */
  background: linear-gradient(90deg, #40c8e0,#164773, #3c46ff); /* Gradient color */
  background-size: 200%; /* Allow for animation */
  -webkit-background-clip: text; /* Clip background to text */
  -webkit-text-fill-color: transparent; /* Make text transparent */
  animation: gradientAnimation 3s ease infinite; /* Animate the gradient */
}

@keyframes gradientAnimation {
  0% {
      background-position: 0% 50%; /* Start position */
  }
  100% {
      background-position: 100% 50%; /* End position */
  }
}


a {
  color: var(--primary-color);
  transition: color var(--transition-duration) ease;
}

a:hover,
a:focus,
a:active {
  color: var(--hover-color);
}

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.35rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

/* LOADER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a192f;
  z-index: -1;
  overflow: hidden;
}


.spinner {
  width: 120px;
  height: 120px;
  border: 4px solid rgba(64, 200, 224, 0.2);
  border-radius: 50%;
  border-top: 4px solid #40c8e0;
  animation: spin 1.5s linear infinite;
  position: relative;
  box-shadow: 0 0 30px rgba(64, 200, 224, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px 15px rgba(64, 200, 224, 0.3),
              0 0 60px 30px rgba(64, 200, 224, 0.2),
              0 0 90px 45px rgba(64, 200, 224, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.spinner img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  position: absolute;
  z-index: 2;
}

.loading-text {
  color: #40c8e0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  position: absolute;
  bottom: 20%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: textGlow 1.5s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 5px #40c8e0, 0 0 10px #40c8e0; }
  50% { text-shadow: 0 0 15px #40c8e0, 0 0 30px #40c8e0; }
}

/* SOCIAL-ICONS */
.list-social-icons a {
  color: #495057;
  display: inline-block;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  transition: background var(--transition-duration) ease, transform var(--transition-duration) ease;
}

.list-social-icons a:hover {
  background: linear-gradient(90deg, var(--gradient-end), var(--gradient-start));
  transform: translateY(-3px);
}

.list-social-icons a .fa-stack-2x {
  background: linear-gradient(90deg, #2a8f9f, #164773);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.list-social-icons a .fa-stack-1x {
  color: white;
}

.list-social-icons a .fa-lg {
  font-size: 1.75rem;
}

.list-icons {
  font-size: 3rem;
}

.list-icons .list-inline-item i:hover {
  color: var(--primary-color);
}


@media (max-width: 576px) {
  .list-social-icons a .fa-lg {
    font-size: 1.25rem;
  }

  .list-icons {
    font-size: 2rem;
  }
}


/*==================================================
                    NAV-BAR
====================================================*/
@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
    background: linear-gradient(165deg, var(--tertiary-color) 0%, #0d1b2a 100%);
    padding-top: 2rem;
    border-right: 1px solid rgba(64, 200, 224, 0.2);
    box-shadow: 5px 0 20px rgba(64, 200, 224, 0.1);
    z-index: 1030;
  }

  #sideNav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--secondary-color), #3c46ff, transparent);
    animation: borderGlow 4s infinite;
  }

  #sideNav .navbar-brand {
    display: flex;
    margin: 0 auto 1rem;
    padding: 0.5rem;
    position: relative;
  }

  #sideNav .navbar-brand .profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    width: 12rem;
    height: 12rem;
    position: relative;
  }

  #sideNav .navbar-brand .profile-wrapper {
    position: relative;
    z-index: 1;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 0.5rem solid rgba(64, 200, 224, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(64, 200, 224, 0.2),
                inset 0 0 20px rgba(64, 200, 224, 0.1);
    background: #0a192f;
  }

  #sideNav .navbar-brand .profile-wrapper:hover {
    transform: scale(1.05);
    border-color: rgba(64, 200, 224, 0.6);
    box-shadow: 0 0 30px rgba(64, 200, 224, 0.4),
                inset 0 0 30px rgba(64, 200, 224, 0.2);
  }

  #sideNav .navbar-brand .profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.3s ease;
  }

  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-top: -1rem;
  }

  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item {
    margin: 0.3rem 0;
    width: 100%;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    color: #8892b0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #40c8e0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(64, 200, 224, 0.5);
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link:hover {
    background: linear-gradient(90deg,
      rgba(64, 200, 224, 0.1) 0%,
      rgba(60, 70, 255, 0.05) 100%
    );
    color: #40c8e0;
    padding-left: 2rem;
    text-shadow: 0 0 8px rgba(64, 200, 224, 0.3);
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link:hover::before {
    transform: scaleY(1);
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link i {
    margin-right: 1rem;
    color: #40c8e0;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(64, 200, 224, 0.3));
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link:hover i {
    opacity: 1;
    transform: translateX(5px);
    filter: drop-shadow(0 0 5px rgba(64, 200, 224, 0.5));
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link.active {
    background: linear-gradient(90deg,
      rgba(64, 200, 224, 0.15) 0%,
      rgba(60, 70, 255, 0.08) 100%
    );
    color: #40c8e0;
    padding-left: 2rem;
    text-shadow: 0 0 8px rgba(64, 200, 224, 0.3);
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #40c8e0;
    transform: scaleY(1);
    box-shadow: 0 0 10px rgba(64, 200, 224, 0.5);
  }

  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link.active i {
    opacity: 1;
    transform: translateX(5px);
    filter: drop-shadow(0 0 5px rgba(64, 200, 224, 0.5));
  }
}

/* Keyframe Animations */
@keyframes borderGlow {
  0%, 100% { opacity: 0.2; height: 100%; }
  50% { opacity: 0.5; height: 95%; }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Styles */
@media (max-width: 991px) {
  #sideNav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: linear-gradient(90deg, #0a192f 0%, #0d1b2a 100%);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(64, 200, 224, 0.2);
    box-shadow: 0 2px 15px rgba(64, 200, 224, 0.1);
  }

  #sideNav .navbar-toggler {
    border-color: rgba(64, 200, 224, 0.3);
    position: relative;
  }

  #sideNav .navbar-toggler::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(64, 200, 224, 0.1), transparent);
    transition: transform 0.3s ease;
  }

  #sideNav .navbar-toggler:hover::after {
    transform: translate(50%, 50%);
  }

  #sideNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(64, 200, 224, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  #sideNav .navbar-nav {
    padding: 0.5rem 0;
  }

  #sideNav .nav-link {
    padding: 0.8rem 1rem;
    color: #8892b0;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
  }

  #sideNav .nav-link:hover {
    background: rgba(64, 200, 224, 0.1);
    border-left-color: #40c8e0;
    color: #40c8e0;
  }

  #sideNav .nav-link i {
    margin-right: 0.5rem;
    color: #40c8e0;
    transition: transform 0.3s ease;
  }

  #sideNav .nav-link:hover i {
    transform: translateX(3px);
  }

  #sideNav .nav-link.active {
    background: rgba(64, 200, 224, 0.1);
    border-left-color: #40c8e0;
    color: #40c8e0;
  }

  #sideNav .nav-link.active i {
    transform: translateX(3px);
  }
}

/*==================================================
                  SECTION (Generic)
====================================================*/
.heading-border {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(90deg, #40c8e0, #3c46ff);
  transform-origin: center;
  margin-bottom: 3rem;
  margin-top: -19px;
  animation: pulseWidth 2s ease-in-out infinite;
  z-index: 1;
}

/* Animated Background Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

section.resume-section {
  border-bottom: 1px solid #dee2e6;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

section.resume-section .resume-item .resume-date {
  min-width: auto;
}

@media (min-width: 768px) {
  section.resume-section {
      min-height: 100vh;
  }
  section.resume-section .resume-item .resume-date {
      min-width: 18rem;
  }
}

.bg-primary,
.text-primary {
  color: #164773 !important;
  background-color: #164773 !important;
}


/*==================================================
                      ABOUT
====================================================*/
#about {
  min-height: 100vh;
  background: #0a192f;
  padding: 20px;
  margin-bottom: 1px;
  position: relative;
  overflow: hidden;
}

#about .about-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

#about .content-wrapper {
  max-width: 85%; /* Reducing the width of the content wrapper */
  margin: 0 auto; /* Centering the content */
}

/* New Photo Container Styles */
#about .image-container {
  flex: 0 0 400px;
  height: 600px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(10, 25, 47, 0.1), rgba(10, 25, 47, 0.2));
  border-radius: 20px;
  box-shadow:
    0 0 20px rgba(64, 200, 224, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.2);
}

#about .photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

#about .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Changed to cover to fill the space */
  transition: transform 0.5s ease;
}

/* Glowing border effect */
#about .photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  background: linear-gradient(
      45deg,
      rgba(64, 200, 224, 0.8), /* Adjusted gradient colors */
      rgba(60, 70, 255, 0.8),
      rgba(64, 200, 224, 0.8)
  ) border-box;
  -webkit-mask:
      linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0);
  mask:
      linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
}

/* Hover effects */
#about .image-container:hover img {
  transform: scale(1.05);
}

#about .photo-frame:hover::after {
  opacity: 1;
}

/* Subtle overlay on hover */
#about .photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      45deg,
      rgba(64, 200, 224, 0.1),
      rgba(60, 70, 255, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Typography Styles */

#about .gradient-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

#about h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  margin-bottom: 2rem;
  position: relative;
}

#about h1 .gradient-text {
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

#about h1 .gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: rgba(64, 200, 224, 0.4);
  filter: blur(4px);
  z-index: -1;
}

/* Introduction Container */
#about .intro-container {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: #8892b0;
  background: rgba(17, 34, 64, 0.6);
  border: 1px solid rgba(64, 200, 224, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(5px);
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Animated Text Effects */
#about .animated-text {
  background: linear-gradient(90deg, #40c8e0, #3c46ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: textGlow 2s infinite alternate;
  padding-right: 15px;
}

#about .animated-text::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #40c8e0;
  animation: blink 0.7s infinite;
}

/* Social Media Icons */
#about .list-social-icons {
  display: flex;
  gap: 0rem;
}

#about .list-social-icons a {
  position: relative;
  text-decoration: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease-in-out;
}

#about .list-social-icons i {
  font-size: 1.5rem;
  color: #40c8e0;
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(0 0 5px rgba(64, 200, 224, 0.6));
}

#about .list-social-icons a:hover {
  background: linear-gradient(45deg, rgba(64, 200, 224, 0.2), rgba(60, 70, 255, 0.3));
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.5);
}

#about .list-social-icons a:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px #40c8e0) drop-shadow(0 0 25px rgba(64, 200, 224, 0.8));
}

#about .list-social-icons a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, #40c8e0, #3c46ff, #40c8e0);
  filter: blur(8px);
  opacity: 0.3;
  z-index: -1;
  transition: transform 0.5s ease-in-out;
}

#about .list-social-icons a:hover::before {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 0.6;
}

/* Resume Button Styles */
#about .btn-resume {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #40c8e0;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid rgba(64, 200, 224, 0.3);
  border-radius: 4px;
  background: rgba(17, 34, 64, 0.6);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.3s ease;
}

#about .btn-resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(64, 200, 224, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

#about .btn-resume:hover {
  color: #fff;
  border-color: rgba(64, 200, 224, 0.6);
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.3);
  transform: translateY(-2px);
}

#about .btn-resume:hover::before {
  transform: translateX(100%);
}

#about .btn-resume i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

#about .btn-resume:hover i {
  transform: translateX(-3px);
}

/* Animations */

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

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(64, 200, 224, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(64, 200, 224, 0.8);
  }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


/* Responsive Media Queries */
@media (max-width: 768px) {
  #about .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  #about .image-container {
    order: -1;
    width: 100%;
    height: auto;
    margin-bottom: -80px;
  }

  #about .content-wrapper {
    max-width: 100%;
  }

  #about .intro-container {
    margin-top: -50px;
  }

  #about .list-social-icons {
    justify-content: center;
  }
}

/*====================================================
                   PERSONAL DETAILS
======================================================*/
#personal-details {
  min-height: 100vh;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
  margin-bottom: 1px;
  background: none; /* Remove background */
}

#personal-details::before {
  content: ''; /* Keep or remove depending on your design */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a192f; /* Remove any gradient or background */
  z-index: 0;
}

#personal-details .heading-border {
 margin-top: 5px !important;
}

#personal-details .container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#personal-details .about-section h2 {
  text-align: center;
}

#personal-details .about-text {
  color: whitesmoke;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(64, 200, 224, 0.2);
  border-radius: 15px;
  background: rgba(10, 25, 47, 0.5);
}

#personal-details .highlight-item {
  display: inline-block;
  padding: 1px;
  color: #40c8e0;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4rem;
  text-shadow: 0 0 10px rgba(64, 200, 224, 0.6), 0 0 20px rgba(64, 200, 224, 0.5);
  transition: all 0.3s ease;
}

#personal-details .highlight-item:hover {
  color: #ffffff;
  background: rgba(64, 200, 224, 0.3);
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.9);
}


#personal-details .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

#personal-details .tech-item {
  padding: 0.5rem 1.5rem;
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.3);
  border-radius: 20px;
  color: #40c8e0;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

#personal-details .tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(64, 200, 224, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

#personal-details .profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

#personal-details .profile-image {
  position: relative;
  border-radius: 15px;
  overflow: visible; /* Changed from hidden to allow border animation to be visible */
  width: 300px; /* Explicit width */
  margin: 20px auto; /* Centers the container horizontally */
}

#personal-details .profile-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.5s ease;
  display: block; /* Removes any default spacing */
  position: relative; /* Add this */
  z-index: 1; /* Ensure image stays above the border animation */

}

#personal-details .profile-image::after {
  content: '';
  position: absolute;
  top: -10px;    /* Negative offset to create space around the image */
  left: -10px;   /* Negative offset to create space around the image */
  right: -10px;  /* Negative offset to create space around the image */
  bottom: -10px; /* Negative offset to create space around the image */
  border: 2px solid #40c8e0;
  border-radius: 15px;
  animation: borderPulse 2s infinite;
  z-index: 0; /* Place border behind the image */
}


#personal-details .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}


#personal-details .profile-grid,
#personal-details .info-grid {
  background: none; /* Ensure grid backgrounds are removed */
}

#personal-details .info-card {
  background: rgba(17, 34, 64, 0.8);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(64, 200, 224, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#personal-details .info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(64, 200, 224, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

#personal-details .info-card:hover::before {
  transform: translateX(100%);
}

#personal-details .info-card i {
  font-size: 1.5rem;
  color: #40c8e0;
  margin-bottom: 1rem;
  display: block;
}

#personal-details .info-card strong {
  color: #ccd6f6;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

#personal-details .info-card span {
  color: #8892b0;
}

#personal-details .info-card a {
  color: inherit;
  text-decoration: none;
}

@keyframes borderPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Responsive Media Queries for #personal-details */
@media (max-width: 768px) {
  #personal-details {
    padding: 1rem;
  }

  #personal-details h2 {
    font-size: 2.5rem; /* Adjust heading size */
  }

  #personal-details .profile-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 1.5rem;
  }

  #personal-details .profile-image {
    margin: 0 auto; /* Center the image */
    width: 70%; /* Adjust size for better fit */
  }

  #personal-details .profile-image img {
    width: 100%;
    height: auto;
  }

  #personal-details .info-grid {
    grid-template-columns: 1fr; /* Stack info cards */
    gap: 1rem; /* Reduce spacing */
  }

  #personal-details .about-text {
    font-size: 12px; /* Slightly smaller text */
    padding: 1rem;
    text-decoration: justify;
  }

  #personal-details .highlight-item {
    display: inline; /* Remove inline-block to make it normal text */
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    border: none; /* Remove border */
    border-radius: 0; /* Remove border-radius */
    color: #40c8e0; /* Retain text color */
    font-size: 12px; /* Adjust font size for mobile */
    text-shadow: none; /* Remove text-shadow */
  }

  #personal-details .highlight-item:hover {
    background: none; /* No background on hover */
    box-shadow: none; /* Remove box shadow on hover */
  }

  #personal-details .tech-stack {
    justify-content: center; /* Center the tech items */
    gap: 0.3rem;
  }

  #personal-details .tech-item {
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
  }

  #personal-details .info-card {
    padding: 1rem;
    border-radius: 10px;
  }

  #personal-details .info-card i {
    font-size: 1.2rem; /* Reduce icon size */
  }

  #personal-details .info-card strong {
    font-size: 1rem; /* Adjust text size */
  }
}


/*==================================================
                    EXPERIENCE
====================================================*/
#experience {
  min-height: 100vh;
  background: #0a192f;
  padding: 2rem;
  font-family: 'Open Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Animated gradient border at top */
#experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #40c8e0, #3c46ff);
  background-size: 200% 100%;
  animation: gradientShift 8s linear infinite;
}

#experience h2 {
  color: #ccd6f6;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  position: relative;
}

.resume-item {
  display: flex;
  width: 100%;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered loading animation for cards */
.resume-item:nth-child(1) { animation-delay: 0.2s; }
.resume-item:nth-child(2) { animation-delay: 0.4s; }
.resume-item:nth-child(3) { animation-delay: 0.6s; }
.resume-item:nth-child(4) { animation-delay: 0.8s; }

.resume-item .card {
  background: #112240;
  border-radius: 15px;
  padding: 2rem;
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  min-height: 400px; /* Set a minimum height for all cards */
}

.resume-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}


/* Gradient border effect */
.resume-item .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resume-item .card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(64, 200, 224, 0.2);
}

.resume-item .card:hover::before {
  opacity: 1;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.title-line i {
  color: #40c8e0 !important;
  font-size: 1.5rem;
  width: 2rem;
  margin-top: -10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.title-line h4 {
  color: #40c8e0;
  font-size: 1.5rem;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.title-line h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #40c8e0;
  transition: width 0.3s ease;
}

.card:hover .title-line h4::after {
  width: 100%;
}

.title-line h5 {
  color: #40c8e0 !important;
  font-size: 0.8rem;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  margin-top: -3px;
}

.resume-item ul {
  list-style: none;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  flex: 1; /* This will make the list take up available space */
}

.resume-item ul li {
  color: #fff;
  padding: 0.5rem 0;
  line-height: 1.6;
  position: relative;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.resume-item ul li::before {
  content: '▹';
  position: absolute;
  left: -1.5rem;
  color: #40c8e0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.card:hover ul li::before {
  opacity: 1;
  transform: translateX(0);
}

.card:hover ul li {
  opacity: 1;
  transform: translateX(10px);
}

.resume-date {
  text-align: right;
  margin-top: auto; /* This pushes the date to the bottom */
  position: relative; /* For proper z-index handling */
  z-index: 1; /* Ensure date stays above any effects */
}

.resume-date .text-primary {
  display: inline-block;
  background: linear-gradient(90deg, #40c8e0, #3c46ff);
  border-radius: 20px;
  color: white !important;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100%);
  animation: slideUp 0.5s forwards;
}

.title-section {
  margin-bottom: 1.5rem;
}


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

@keyframes pulseWidth {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.5); }
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

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



/*====================================================
                   PORTFOLIO
======================================================*/
/* Portfolio Section Base Styles */
#portfolio {
  min-height: 100vh;
  background: #0a192f;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#portfolio .heading-border {
  margin-top: -30px !important;

}

#portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #0a192f 0%, #112240 100%);
  z-index: 0;
}

/* Section Title */
#portfolio h2 {
  color: #ccd6f6;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
  z-index: 1;
}

/* Filter Buttons */
.port-head-cont {
  margin: 1px auto 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.port-head-cont {
  margin: 1px auto 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.port-head-cont button {
  margin: 5px;
  padding: 10px 20px;
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.3);
  border-radius: 20px;
  color: #40c8e0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

/* Hover and Active States */
.port-head-cont button:hover,
.port-head-cont button.active {
  background: rgba(64, 200, 224, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #40c8e0; /* Glowing effect for both hover and active */
}

.port-head-cont button.active {
  box-shadow: 0 5px 15px #40c8e0; /* Retains shadow on active state */
}

/* Active State Styling for Button */
.port-head-cont button:focus,
.port-head-cont button:active {
  outline: none; /* Removes the outline when clicked */
  box-shadow: 0 5px 15px #40c8e0; /* Ensure the shadow stays when the button is clicked */
  background: rgba(64, 200, 224, 0.3); /* Maintain background */
  transform: translateY(-2px); /* Keep the lifted effect on active state */
}




/* Portfolio Items */
.portfolio-item {
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.portfolio-link {
  display: block;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.1);
  transition: all 0.3s ease;
}

.portfolio-link img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.caption-port {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.9);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caption-port-content i {
  color: #40c8e0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(64, 200, 224, 0.2);
}

.portfolio-link:hover .caption-port {
  opacity: 1;
}

.portfolio-link:hover .caption-port-content i {
  transform: scale(1);
}

/* Modal Base Styles */
.portfolio-modal .modal-dialog {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.portfolio-modal .modal-content {
  min-height: 100vh;
  border: none;
  border-radius: 0;
  background: #0a0b1e;
  padding: 50px 30px;
  position: relative;
}

/* Close Button */
.portfolio-modal .close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 75px;
  height: 75px;
  cursor: pointer;
  z-index: 1051;
}

.portfolio-modal .close-modal .lr {
  height: 75px;
  width: 2px;
  margin-left: 35px;
  background-color: #00fffc;
  transform: rotate(45deg);
  z-index: 1052;
}

.portfolio-modal .close-modal .lr .rl {
  height: 75px;
  width: 2px;
  background-color: #00fffc;
  transform: rotate(90deg);
  z-index: 1053;
}

/* Modal Content Layout */
.portfolio-modal .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.portfolio-modal .modal-body {
  padding: 0;
}

/* Title Section */
.portfolio-modal .title-bar {
  margin-bottom: 40px;
  text-align: center;
}

.portfolio-modal .title-bar h2 {
  color: #00fffc;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Project Details */
.portfolio-modal .item-details {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 255, 252, 0.05);
  border-radius: 4px;
}

.portfolio-modal .item-details li {
  margin-bottom: 10px;
  color: #fff;
}

.portfolio-modal .item-details strong {
  color: #00fffc;
  margin-right: 10px;
}

/* Buttons */
.portfolio-modal .btn-general {
  padding: 10px 25px;
  color: #00fffc;
  background: transparent;
  border: 1px solid #00fffc;
  transition: all 0.3s ease;
}

.portfolio-modal .btn-general:hover {
  background: rgba(0, 255, 252, 0.1);
  transform: translateY(-2px);
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: #0a0b1e;
}

.modal-backdrop.show {
  opacity: 0.9;
}


/* Magnifier and Icon Styles */
.image-magnify-container {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
}

.magnify-wrapper {
  position: relative;
  width: 100%;
  cursor: none;
}

.magnify-glass {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  border: 3px solid #00fffc;
  background-repeat: no-repeat;
  display: none;
  filter: drop-shadow(0 0 10px rgba(0, 255, 252, 0.3));
}

.loop-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0, 255, 252, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.loop-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #00fffc;
  stroke-width: 2;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.magnify-wrapper:hover .loop-icon {
  opacity: 1;
}

.magnify-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}


.mt-4 {
  margin-top: 1.5rem !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #portfolio h2 {
    font-size: 2.5rem; /* Adjust heading size */
  }
  .portfolio-modal .modal-content {
      padding: 30px 15px;
  }

  .portfolio-modal .close-modal {
      width: 50px;
      height: 50px;
      top: 15px;
      right: 15px;
  }

  .portfolio-modal .close-modal .lr,
  .portfolio-modal .close-modal .lr .rl {
      height: 30px;
  }
}



/*====================================================
                      SKILLS
======================================================*/
/* Base section styles */
#cloud-skills {
  margin-top: -15px;
  margin-bottom: 1px;
}


#coding-skills,
#cloud-skills {
    min-height: 50vh;  /* Reduced from 100vh */
    background: #0a192f;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Gradient background like personal details */
#coding-skills::before,
#cloud-skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #0a192f 0%, #112240 100%);
    z-index: 0;
}

/* Rest of the styles remain the same */
#coding-skills .container,
#cloud-skills .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

#coding-skills h2,
#cloud-skills h2 {
  color: #ccd6f6;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

#coding-skills .scroll-container,
#cloud-skills .scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
}

#coding-skills .row,
#cloud-skills .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 0;
    width: max-content;
}

#coding-skills .skill-item,
#cloud-skills .skill-item {
    background: rgba(17, 34, 64, 0.95);
    border: 1px solid rgba(64, 200, 224, 0.2);
    border-radius: 20px;
    height: 220px;
    padding: 25px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(64, 200, 224, 0.1);
}

#coding-skills .skill-item::before,
#cloud-skills .skill-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #40c8e0, #3c46ff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(3px);
}

/* Hover effects */
#coding-skills .skill-item:hover,
#cloud-skills .skill-item:hover {
    transform: translateY(-5px);
    border-color: rgba(64, 200, 224, 0.4);
    box-shadow: 0 0 60px rgba(64, 200, 224, 0.2);
}

#coding-skills .skill-item:hover::before,
#cloud-skills .skill-item:hover::before {
    opacity: 0.5;
}

/* Skill icons */
#coding-skills .skill-icon,
#cloud-skills .skill-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

#coding-skills .skill-icon img,
#cloud-skills .skill-icon img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(64, 200, 224, 0.3));
}

#coding-skills .skill-item:hover .skill-icon,
#cloud-skills .skill-item:hover .skill-icon {
    transform: scale(1.1);
}

/* Text styling */
#coding-skills .skill-item p,
#cloud-skills .skill-item p {
    color: #8892b0;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    transition: color 0.3s ease;
}

#coding-skills .skill-item:hover p,
#cloud-skills .skill-item:hover p {
    color: #40c8e0;
}


/* Animation styles */
#coding-skills .sliding-row,
#cloud-skills .sliding-row {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-out;
}

#coding-skills .fade-out,
#cloud-skills .fade-out {
    opacity: 0.3;
}

#coding-skills .fade-in,
#cloud-skills .fade-in {
    opacity: 1;
}

/* Column sizing */
#coding-skills .col-md-3,
#cloud-skills .col-md-3 {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 280px;
}


.scroll-container {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 34, 64, 0.8);
  border: 1px solid rgba(64, 200, 224, 0.3);
  color: #40c8e0;
  padding: 15px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.scroll-arrow:hover {
  background: rgba(17, 34, 64, 0.95);
  border-color: rgba(64, 200, 224, 0.6);
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

/* Update existing scroll container style */
#coding-skills .scroll-container,
#cloud-skills .scroll-container {
  position: relative;
  padding: 0 50px;
}

/* Responsive styles */
@media (max-width: 768px) {
    #coding-skills,
    #cloud-skills {
        padding: 40px 0;
    }

    #coding-skills h2,
    #cloud-skills h2 {
      font-size: 2.5rem; /* Adjust heading size */
    }

    #coding-skills .col-md-3,
    #cloud-skills .col-md-3 {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }

    #coding-skills .skill-item,
    #cloud-skills .skill-item {
        height: 180px;
        padding: 15px;
    }

    #coding-skills .skill-icon,
    #cloud-skills .skill-icon {
        width: 70px;
        height: 70px;
    }

    #coding-skills .skill-icon img,
    #cloud-skills .skill-icon img {
        max-width: 60px;
        max-height: 60px;
    }

    #coding-skills .row,
    #cloud-skills .row {
        gap: 15px;
    }
}

/*====================================================
                      AWARD
======================================================*/
#awards {
  background: #0a192f;
  position: relative;
}

#awards h2 {
  color: white;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

#awards::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #0a192f 0%, #112240 100%);
  z-index: 0;
}

/* Award box container */
#award-box {
  overflow: hidden;
  position: relative;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

/* Timeline center line */
#award-box:before {
  content: "";
  width: 2px;
  height: 100%;
  background: rgba(64, 200, 224, 0.3);
  position: absolute;
  top: 0;
  left: 50%;
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.5);
}

/* Award items */
#award-box .award {
  width: 50%;
  clear: both;
  position: relative;
}

/* Award icon */
#award-box .award-icon {
  width: 24px;
  height: 24px;
  background: rgba(17, 34, 64, 0.95);
  border: 2px solid #40c8e0;
  position: absolute;
  top: 17px;
  right: -13px;
  z-index: 1;
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.3);
}

#award-box .award-icon:before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: rgba(64, 200, 224, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease;
}

#award-box .award:hover .award-icon:before {
  background: #40c8e0;
}

/* Award content box */
#award-box .award-content {
  width: 85%;
  padding: 18px 30px;
  background: rgba(17, 34, 64, 0.95);
  backdrop-filter: blur(10px);
  text-align: right;
  float: left;
  border: 1px solid rgba(64, 200, 224, 0.2);
  position: relative;
  transition: all 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.1);
}

#award-box .award:hover .award-content {
  border-color: rgba(64, 200, 224, 0.4);
  box-shadow: 0 0 30px rgba(64, 200, 224, 0.2);
  transform: translateY(-5px);
}

/* Content arrow */
#award-box .award-content:before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(64, 200, 224, 0.2);
  position: absolute;
  top: 21px;
  right: -7.3px;
  transform: rotate(45deg);
  transition: all 0.2s ease;
}

#award-box .award:hover .award-content:before {
  background: rgba(64, 200, 224, 0.2);
  border-color: rgba(64, 200, 224, 0.4);
}

/* Timeline connector */
#award-box .award-content:after {
  content: "";
  width: 11%;
  height: 2px;
  background: rgba(64, 200, 224, 0.3);
  position: absolute;
  top: 28px;
  right: -14%;
  box-shadow: 0 0 10px rgba(64, 200, 224, 0.3);
}

/* Text styling */
#award-box .date {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #40c8e0;
  margin: 0 0 8px;
  transition: all 0.3s ease;
}

#award-box .title {
  font-size: 18px;
  color: #ccd6f6;
  margin-top: 0;
  transition: all 0.3s ease;
}

#award-box .description {
  font-size: 16px;
  color: #8892b0;
  line-height: 28px;
  margin-top: 8px;
}

/* Award certificate */
.award-certificate-link {
  display: block;
  max-width: 200px;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.award-certificate-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.2);
  border: 1px solid rgba(64, 200, 224, 0.2);
}

.award-certificate-link:hover {
  transform: scale(1.05);
}

/* Right side awards */
#award-box .award:nth-child(2n),
#award-box .award:nth-child(2n) .award-content {
  float: right;
  text-align: left;
}

#award-box .award:nth-child(2n) .award-icon {
  right: auto;
  left: -12px;
}

#award-box .award:nth-child(2n) .award-content:before {
  left: -7.3px;
}

#award-box .award:nth-child(2n) .award-content:after {
  left: -14%;
}


/* ............................ */

/* Awards Section Styles */
#awards .portfolio-link {
  color: #40c8e0;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Center the content horizontally */
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  text-align: center; /* Center the text */
}

#awards .portfolio-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(64, 200, 224, 0.2),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

#awards .portfolio-link:hover {
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(64, 200, 224, 0.3);
  text-decoration: none;
  color: white;
  animation: borderPulse 2s infinite;
}

#awards .portfolio-link .fa {
  margin-left: 8px;
  font-size: 0.9em;
}

@keyframes borderPulse {
  0% {
    transform: translateY(-2px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-2px) scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* .................... */

#certificatesModal {
  background: #0a192f;
  font-family: 'Poppins', sans-serif;
}

#certificatesModal .carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 0;
}


#certificatesModal .modal-dialog {
  max-width: 1200px;
  margin: 1.75rem auto;
}

#certificatesModal .modal-content {
  background: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(64, 200, 224, 0.2);
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(64, 200, 224, 0.1);
  position: relative;
  padding: 1rem;
}

#certificatesModal .modal-body {
  padding: 0;
}

#certificatesModal h3 {
  color: #ccd6f6;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

#certificatesModal h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #40c8e0, transparent);
}

#certificatesModal .carousel-container {
  position: relative;
  margin: 3rem auto;
  padding: 2rem 0;
  height: 400px;
}


#certificatesModal .carousel-item {
  position: absolute;
  width: 220px;
  height: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) translateX(-50%);
  left: 50%;
  pointer-events: none;
}

#certificatesModal .carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 1px solid rgba(64, 200, 224, 0.3);
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.2);
  transition: all 0.3s ease;
}

#certificatesModal .carousel-item.active {
  opacity: 1;
  transform: scale(1.2) translateX(-50%);
  z-index: 3;
  pointer-events: auto;
}

#certificatesModal .carousel-item.prev,
#certificatesModal .carousel-item.next {
  opacity: 0.6;
  z-index: 2;
  pointer-events: auto;
}

#certificatesModal .carousel-item.prev {
  transform: scale(0.8) translateX(-150%);
}

#certificatesModal .carousel-item.next {
  transform: scale(0.8) translateX(50%);
}

#certificatesModal .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.3);
  border-radius: 50%;
  color: #40c8e0;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

#certificatesModal .carousel-nav:hover {
  background: rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.3);
}

#certificatesModal .carousel-nav.left {
  left: 20px;
}

#certificatesModal .carousel-nav.right {
  right: 20px;
}

#certificatesModal .cert-details,
#certificatesModal .badge-details {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 20rem;
  background: rgba(17, 34, 64, 0.8);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(64, 200, 224, 0.2);
}

#certificatesModal .cert-details h5,
#certificatesModal .badge-details h5 {
  color: #40c8e0;
  margin: 0.5rem 0;
  font-size: 1rem;
}

#certificatesModal .cert-details p,
#certificatesModal .badge-details p {
  color: #8892b0;
  font-size: 0.9rem;
  margin: 0;
}

#certificatesModal .cert-link {
  color: #40c8e0;
  text-decoration: none;
  font-size: 13px;
  padding: 0.2rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(64, 200, 224, 0.3);
  background: rgba(64, 200, 224, 0.1);
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

#certificatesModal .cert-link:hover {
  background: rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.3);
  color: #40c8e0;
  text-decoration: none;
}

#certificatesModal .cert-link i {
  margin-left: 0.3rem;
  font-size: 0.7rem;
}


#certificatesModal .btn-general {
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.3);
  color: #40c8e0;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: block;
}

#certificatesModal .btn-general:hover {
  background: rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 15px rgba(64, 200, 224, 0.3);
}

#certificatesModal .close-modal {
  position: absolute;
  right: 25px;
  top: 15px;
  width: 75px;
  height: 75px;
  cursor: pointer;
  z-index: 100;
}

#certificatesModal .close-modal .lr {
  height: 75px;
  width: 1px;
  margin-left: 35px;
  background-color: #40c8e0;
  transform: rotate(45deg);
  z-index: 1001;
}

#certificatesModal .close-modal .lr .rl {
  height: 75px;
  width: 1px;
  background-color: #40c8e0;
  transform: rotate(90deg);
  z-index: 1002;
}


/* Responsive adjustments */
/* Enhanced Responsive adjustments */
@media (max-width: 768px) {
  #certificatesModal .modal-dialog {
    margin: 0.5rem;
    max-width: 100%;
  }

  #certificatesModal .modal-content {
    padding: 0.5rem;
    border-radius: 15px;
  }

  #certificatesModal .carousel-container {
    height: 300px;
    margin: 2rem auto;
    padding: 1rem 0;
  }

  #certificatesModal .carousel-item {
    width: 200px;
  }

  #certificatesModal .carousel-item.active {
    transform: scale(1.05) translateX(-50%);
  }

  #certificatesModal .carousel-item.prev {
    transform: scale(0.8) translateX(-120%);
  }

  #certificatesModal .carousel-item.next {
    transform: scale(0.8) translateX(20%);
  }

  #certificatesModal .carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  #certificatesModal .carousel-nav.left {
    left: 10px;
    color: white;
    background: linear-gradient(45deg, #40c8e0, #3c46ff);

  }

  #certificatesModal .carousel-nav.right {
    right: 10px;
    color: white;
    background: linear-gradient(45deg, #40c8e0, #3c46ff);
  }

  #certificatesModal .close-modal {
    right: 15px;
    top: 10px;
    width: 40px;
    height: 40px;
  }

  #certificatesModal .close-modal .lr {
    height: 40px;
    margin-left: 20px;
  }

  #certificatesModal .close-modal .lr .rl {
    height: 40px;
  }

  #certificatesModal .cert-details,
  #certificatesModal .badge-details {
    margin-bottom: 10rem;
    padding: 0.75rem;
  }

  #certificatesModal h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0;
  }
}


/* ............................ */


/* Responsive styles */
@media only screen and (max-width: 767px) {

  #awards h2 {
    font-size: 2.5rem; /* Adjust heading size */
  }

  #awards .portfolio-link {
    font-size: 0.9rem;
    width: 80%;
  }
  #award-box {
      padding-left: 20px;
  }

  #award-box:before {
      left: 20px;
  }

  #award-box .award {
      width: 100%;
  }

  #award-box .award,
  #award-box .award-content {
      float: right;
      padding: 15px;
      text-align: left;
  }

  #award-box .award:first-child:before,
  #award-box .award:last-child:nth-child(odd):before {
      right: auto;
      left: -11px;
  }

  #award-box .award-icon {
      right: auto;
      left: -12px;
  }

  #award-box .award-content:before {
      left: -7.3px;
  }

  #award-box .award-content:after {
      left: -14%;
  }
}


/*====================================================
                   CONTACT
======================================================*/
#contact {
  min-height: 100vh;
  background: #0a192f;
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

#contact h2 {
  color: #ccd6f6;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

/* Header Styling */
.contact-header {
  position: relative;
  z-index: 1;
}

.heading-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #40c8e0, #3c46ff);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.5);
}

/* Contact Cards */
.contact-info-container {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(17, 34, 64, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(64, 200, 224, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(64, 200, 224, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(64, 200, 224, 0.4);
}

.contact-card:hover::before {
  opacity: 0.3;
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(64, 200, 224, 0.1);
  border: 1px solid rgba(64, 200, 224, 0.2);
  border-radius: 12px;
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: rgba(64, 200, 224, 0.2);
  border-color: rgba(64, 200, 224, 0.4);
}

.contact-icon i {
  font-size: 1.8rem;
  color: #40c8e0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(64, 200, 224, 0.5));
}

.contact-details h3 {
  color: #ccd6f6;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-details p,
.contact-details a {
  color: #8892b0;
  font-size: 1.1rem;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #40c8e0;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 20px rgba(64, 200, 224, 0.1);
  transition: all 0.3s ease;
  color: #40c8e0;

}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(64, 200, 224, 0.4);
  box-shadow: 0 0 30px rgba(64, 200, 224, 0.2);
  text-decoration: none;
}

.social-icon.facebook:hover {
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  color: white;
}

.social-icon.github:hover {
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  color: white;
}

.social-icon.linkedin:hover {
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  color: white;
}

.map-container {
  position: relative;
  height: 100%;
  min-height: 400px;
  border-radius: 15px;
  overflow: hidden;
  background: #112240;
  border: 1px solid rgba(64, 200, 224, 0.2);
  box-shadow: 0 0 40px rgba(64, 200, 224, 0.1);
  z-index: 1;
  transition: all 0.3s ease;
}

/* Animated gradient border */
.map-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, #40c8e0, #3c46ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Cyberpunk overlay for the map */
.map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(64, 200, 224, 0.1), rgba(60, 70, 255, 0.1));
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: color-dodge;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  /* Updated filter values for blue tint */
  filter: hue-rotate(210deg) saturate(1.5) brightness(0.9) contrast(1.2);
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Hover effects */
.map-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(64, 200, 224, 0.2);
}

.map-container:hover::before {
  opacity: 1;
}

.map-container:hover iframe {
  opacity: 1;
}

/* Scan line effect */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(64, 200, 224, 0.1),
    transparent
  );
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}



/* Responsive Media Queries for #contact */
@media (max-width: 768px) {
  #contact {
    padding: 1rem;
  }

  #contact h2 {
    font-size: 2.5rem; /* Adjust heading size */
  }

  .contact-info-container {
    padding: 1rem;
  }

  .contact-card {
    flex-direction: column; /* Stack content vertically */
    align-items: flex-start; /* Align text to the left */
    text-align: left; /* Ensure text alignment remains consistent */
    padding: 1rem;
  }

  .contact-icon {
    margin-bottom: 1rem; /* Add spacing below icon */
    margin-right: 0; /* Remove right margin */
    width: 50px; /* Adjust icon size */
    height: 50px;
  }

  .contact-icon i {
    font-size: 1.5rem; /* Reduce icon size */
  }

  .contact-details h3 {
    font-size: 1.2rem; /* Adjust heading size */
  }

  .contact-details p,
  .contact-details a {
    font-size: 1rem; /* Reduce font size */
  }

  /* Social Links */
  .social-links {
    flex-wrap: wrap; /* Wrap links to fit smaller screens */
    gap: 0.5rem;
    justify-content: center; /* Center-align icons */
  }

  .social-icon {
    width: 40px; /* Adjust icon size */
    height: 40px;
    font-size: 1.2rem; /* Adjust icon font size */
  }

  /* Map Container */
  .map-container {
    display: none; /* Hide map on smaller screens */
  }
}


