html, body {
  overflow-x: hidden;
}

/**
 * Enable smooth scrolling on the whole document
 */
html {
  scroll-behavior: smooth;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/**
 * Add .section to every anchored element for scroll margin
 */
.section {
  scroll-margin-top: 2rem;
  background-color: var(--bg-light) !important;
}

/* Header */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-decoration: none;
  color: var(--text-dark);
}

@media (min-width: 48em) {
  .site-title {
    float: left;
  }
}

/* Hover effect for the Google Cloud professional ML Engineer link */
a.aboutme-b:hover {
  color: var(--accent-color);
  text-decoration: none;
}
/* Zoom effect on the specified part of the About Me section */
.col-md-6:hover {
  transform: scale(1.02);
  background-color: var(--hover-light);
  transition: background-color 0.7s ease 0.15s, transform 0.7s ease-in-out;
}

/* Remove certification tooltip styles */
.certification-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px var(--hover-light);
}

.certification-tooltip .tooltiptext {
  display: none;  /* Hide the tooltip completely */
}

.certification-tooltip:hover .tooltiptext {
  display: none;  /* Ensure tooltip stays hidden on hover */
}

.university-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px var(--hover-light);
}

.university-tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s; /* Matching transition timing */
  bottom: 125%; /* Position the tooltip above the link */
  left: 50%;
  transform: translateX(-50%);
}

.university-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.col-md-3.text-center:hover {
  transform: translateY(-15px) scale(1.09); /* Move the icon up by 10px */
  transition: transform 0.7s; /* Smooth transition */
}

.social-nav ul {
  display: flex; /* Makes items align horizontally */
  justify-content: center; /* Centers the icons horizontally */
  align-items: center; /* Ensures vertical alignment */
  gap: 30px; /* Adds equal spacing between items */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
  list-style: none; /* Removes bullet points */
}

.nav-link {
  font-weight: 700;
  color: var(--text-dark) !important;
}

.social-nav .nav-link {
  padding: 1 0.5rem;
  font-size: 1.rem;
  line-height: 2.5rem;
}

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: var(--primary-color) !important;
}

/* Hero (intro) section */
.intro-title {
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.4;
}

@-webkit-keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

.wave-container {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  margin-bottom: -7px;
  background: transparent;
}

.waves {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100px;
  max-height: 150px;
}

.wave1 {
  animation: moveWave1 15s linear infinite;
}

.wave2 {
  animation: moveWave2 10s linear infinite;
}

.wave3 {
  animation: moveWave3 8s linear infinite;
}

@keyframes moveWave1 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-25px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes moveWave2 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(35px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes moveWave3 {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-15px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .wave-container {
    height: 100px;
  }
  .waves {
    height: 100px;
  }
}

.cover {
  position: relative;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
  overflow: hidden;
  padding-bottom: 200px; /* Increased padding to move wave lower */
}

img.avatar {
  border-radius: 30px;
}

/* Masonary grid for portfolio */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Grid Item */
.grid-sizer,
.grid-item {
  width: 100%;
}

.grid-item {
  padding-bottom: 12px;
}

@media (min-width: 48em) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .grid-item {
    float: left;
    padding: 6px;
  }
}

.grid-item img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Portfolio */
.portolio-section .container {
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0;
}

.portfolio-item figcaption {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(74, 95, 233, 0.1);
  transition: transform 0.35s;
  transform: translate3d(0, 100%, 0);
}

.portfolio-item figcaption h4 {
  color: var(--text-dark);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.portfolio-item figcaption p {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.portfolio-item:hover figcaption {
  transform: translate3d(0, 0, 0);
}

/* Portolio Caption */
#bp_container .bp-xc {
  background: #f6df5ec2 !important;
}

#bp_caption a {
  text-decoration: none;
}

/* Footer section */
footer a:not(.nav-link) {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Scroll Top */
#scrolltop {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#scrolltop .btn {
  padding: 3px 11px;
  border-radius: 50%;
}

/* Additional utility styles */
.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
  padding-top: 2.5rem; /* Adjust this value for left padding */
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  letter-spacing: 0.05em;
}

.hover-effect {
  transition: transform .18s ease-in-out;
}

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

.marker {
  position: relative;
  display: inline;
  width: auto;
}

.marker-center {
  padding: 0;
  margin-bottom: 0.5rem;
}

/* .marker:after {
  content: "";
  width: 125px;
  height: 30px;
  position: absolute;
  bottom: -25px;
  right: -30px;
  background-image: url("../images/marker.svg");
  background-repeat: no-repeat;
} */

.marker-center:after {
  bottom: -30px;
  left: 50%;
  margin-left: -60px;
}

@media (max-width: 575.98px) {
  .marker {
    padding-right: 0;
  }
  .marker:after {
    bottom: -30px;
    left: 50%;
    margin-left: -60px;
  }
}

.entry-title a {
  text-decoration: none;
}

.myrow{
  display: flex;
  align-items: center;
  justify-content: center;
}

.myCarousel {
  display: none;
}

.slider {
  display: none;
}

.slide-track {
  display: none;
}

.slide {
  display: none;
}

@media (min-width: 1260px) { /* Target screens with a width of 767px or more */
  .myrow {
    flex-wrap: nowrap; /* Enable flex-wrap */
    justify-content: center; /* Align items to the start of the container */
  }
  .myCarousel {
    max-width: 1350px;
    width: 1350px;
    height: 100%;
  }
}

@-webkit-keyframes scroll {
  0% {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  }
  100% {
  -webkit-transform: translateX(calc(-250px * 8));
  transform: translateX(calc(-250px * 8));
  }
}
@keyframes scroll {
  0% {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  }
  100% {
  -webkit-transform: translateX(calc(-250px * 8));
  transform: translateX(calc(-250px * 8));
  }
}
.slider {
  display: flex;
  background: pr;
  justify-content: space-between;
  box-shadow: 0 2px 3px -2px rgba(0, 0, 0, 0.125);
  height: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.slider::before, .slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 150px;
  position: absolute;
  width: 150px;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  -webkit-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}
.slider .slide-track {
  -webkit-animation: scroll 18s linear infinite;
  animation: scroll 18s linear infinite;
  display: flex;
  width: calc(250px * 16);
}
.slider .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  /*height: 100px;*/
  width: 250px;
}

@keyframes scaleFadeIn {
  0% {
      transform: scale(0.8);
      opacity: 0;
  }
  50% {
      transform: scale(1.05);
      opacity: 0.7;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

.img-scale-fade-in {
  animation: scaleFadeIn 1s ease-out forwards;
  border-radius: 50%; /* Ensure the image remains rounded */
}

/* .date-container {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px; 
} */

/* Loader styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Media queries for screens 767px and below */
@media (max-width: 767px) {
  .cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Adjust padding for smaller screens */
    text-align: center; /* Ensure text is centered */
  }

  .img-scale-fade-in {
    width: 160px; /* Adjust image size for mobile */
    height: 160px; /* Adjust height */
    margin-bottom: 0px; /* Reduce space below the image */
    padding-bottom: 0px;
  }

  .intro-title {
    font-size: 1.25rem; /* Adjust font size for smaller screens */
    margin-top: 0; /* Adjust margin for closer spacing */
    margin-bottom: 20px;
  }

  .lead {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
    margin-top: 0px; /* Adjust margin for closer spacing */
  }

  .social-nav .nav-link {
    margin: 0 60px 5px 4em; /* Adjust spacing between social icons */
    padding: 3px  ; /* Adjust spacing between social icons */
  }

  .btn {
    font-size: 0.8rem; /* Adjust button font size */
    padding: 6px 12px; /* Adjust button padding */
    margin-top: 10px; /* Space above the button */
  }
}

/* Media queries for very small screens 480px and below */
@media (max-width: 480px) {
  .cover {
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Adjust padding for smaller screens */
    text-align: center; /* Ensure text is centered */
  }

  .img-scale-fade-in {
    width: 140px; /* Further reduce image size */
    height: 140px; /* Adjust height */
    margin-bottom: 0px; /* Further reduce space below the image */
    margin-top: 0px;
  }

  .intro-title {
    font-size: 1rem; /* Further reduce font size */
    margin-top: 5px; /* Adjust margin for closer spacing */
    margin-bottom: 20px;

    justify-content: center;
    align-items: center;
    text-align: center; /* Ensure text is centered */
  }

  .lead {
    font-size: 0.8rem; /* Further reduce font size */
    margin-top: 0; /* Adjust margin for closer spacing */
    margin-bottom: 2em;
  }

  .social-nav .nav-link {
    margin: 0 60px; /* Adjust spacing between social icons */
    padding: 2em ; /* Adjust spacing between social icons */
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Center icons vertically */
  }

  .btn {
    font-size: 0.7rem; /* Further adjust button font size */
    padding: 5px 10px; /* Further adjust button padding */
    margin-top: 8px; /* Further space above the button */
  }
}

@media screen and (max-width: 600px) {
  .certification-tooltip::after {
      font-size: 10px;
      padding: 4px 8px;
  }
}

@media screen and (max-width: 400px) {
  .certification-tooltip::after {
      font-size: 9px;
      padding: 3px 7px;
      left: 50%;
      transform: translateX(-50%);
  }
}

.footer {
  padding: 3rem 0;
  background-color: var(--bg-light);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.footer-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.footer-social {
  margin: 1rem 0;
}

.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-item {
  margin: 0;
  padding: 0;
}

.social-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.footer-copyright {
  color: #666;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-title {
    font-size: 1.5rem;
  }

  .footer-subtitle {
    font-size: 1rem;
  }

  .social-list {
    gap: 1.5rem;
  }

  .social-item a {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .social-list {
    gap: 1.25rem;
  }

  .social-item a {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
}

/* Certificate link styles */
.timeline .role a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.timeline .role a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.timeline .role {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Typing animation styles */
.typing-section {
  min-height: 200px;
  position: relative;
  margin-bottom: 20px;
}

.static-content {
  position: relative;
  margin-top: 20px;
  padding-top: 20px;
  padding-left: 20px; /* Add left padding to move content right */
}

.typing-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid;
  width: 0;
}

.typing-text.typing {
  animation: typing-custom 0.8s steps(30, end);
}

.typing-text.typing-complete {
  border-right: none;
  width: auto;
}

.typing-container {
  visibility: hidden;
  display: block;
  margin-bottom: 10px;
}

.typing-container.visible {
  visibility: visible;
}

@keyframes typing-custom {
  from { 
    width: 0;
  }
  to { 
    width: var(--text-width);
  }
}

.typing-delay-1 {
  animation-delay: 0s;
}

.typing-delay-2 {
  animation-delay: 1.6s;
}

.typing-delay-3 {
  animation-delay: 3.2s;
}

.typing-delay-4 {
  animation-delay: 4.8s;
}

/* Additional styles for better text appearance */
.lead {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Social nav styles */
.social-nav {
  margin-bottom: 5px; /* Reduced from 10px to bring download button even closer */
}

.social-nav ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin-left: 210px; /* Increased from 110px to move further right */
  list-style: none;
}

.social-nav .nav-link {
  padding: 0.5rem;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
}

/* Individual social icon animations */
.social-nav .nav-link:nth-child(1) {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.2s; /* After typing ends */
}

.social-nav li:nth-child(2) .nav-link {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.4s; /* 0.2s after first icon */
}

.social-nav li:nth-child(3) .nav-link {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.6s; /* 0.2s after second icon */
}

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

.social-nav .nav-link:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

/* Static content positioning */
.static-content {
  position: relative;
  margin-top: 20px;
  padding-top: 0;
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Button styles */
.btn-primary.hover-effect {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInButton 0.5s ease forwards;
  animation-delay: 3.8s;
  margin-left: 210px; /* Match the social icons new margin */
  margin-top: 0px; /* Reduced from 5px to bring closer to icons */
}

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

.btn-primary.hover-effect:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .social-nav ul, 
  .btn-primary.hover-effect {
    margin-left: 160px; /* Adjusted for medium screens */
  }
}

@media (max-width: 480px) {
  .social-nav ul,
  .btn-primary.hover-effect {
    margin-left: 120px; /* Adjusted for small screens */
  }
}

/* Container styles */
.mt-5 {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .typing-section {
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .typing-section {
    min-height: 160px;
  }
}

/* Contact Form Styles */
.contact-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem; /* Match the spacing */
}

#contact {
  padding-top: 20px; /* Drastically reduced from 60px */
  margin-top: -20px; /* Adjusted to match new padding */
  scroll-margin-top: 20px;
}

.contact-form .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem;
  transition: border-color 0.3s ease;
  margin-bottom: 1rem; /* Add space between form elements */
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 95, 233, 0.25);
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
  margin-bottom: 1.5rem; /* Add more space after textarea */
}

.contact-form .btn-primary {
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem; /* Add space above button */
}

/* Add spacing for the contact section heading and description */
#contact .text-center {
  margin-bottom: 0.5rem; /* Match the spacing */
}

#contact .text-center h2 {
  margin-bottom: 0.5rem; /* Match the spacing */
}

#contact .text-center p {
  margin-bottom: 0.5rem; /* Match the spacing */
}

#contact .container-narrow {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* Thank You Page Styles */
#thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.thank-you-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1rem;
}

.success-icon {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon i {
    color: var(--accent-color);
    filter: drop-shadow(0 4px 6px rgba(40, 167, 69, 0.2));
}

.thank-you-message {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 auto;
}

.thank-you-suggestion {
    color: var(--text-light);
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links .btn {
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #thank-you {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }
    
    .thank-you-wrapper {
        padding: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-links .btn {
        width: 100%;
    }
}

/* Enhanced Thank You Page Animations */
.fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

.slide-in {
    opacity: 0;
    animation: slideIn 0.8s ease forwards;
    animation-delay: 0.7s;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Button Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Enhanced Success Icon Animation */
.success-icon {
    animation: successPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-15deg);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    70% {
        transform: scale(0.9) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Enhanced Thank You Wrapper Animation */
.thank-you-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thank-you-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Social Links Enhanced Hover Effect */
.social-links .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 95, 233, 0.1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-links .btn:hover::after {
    transform: scaleY(1);
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 180px; /* Increased height for a more prominent wave */
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-light);
    filter: drop-shadow(0px -2px 3px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    animation: waveFlow 8s ease-in-out infinite;
}

@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .cover {
        padding-bottom: 130px; /* Adjusted for tablets */
    }
    .custom-shape-divider-bottom svg {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .cover {
        padding-bottom: 100px; /* Adjusted for mobile */
    }
    .custom-shape-divider-bottom svg {
        height: 100px;
    }
}

/* Color Variables */
:root {
  --primary-color: #4A5FE9;
  --secondary-color: #6B7DFF;
  --accent-color: #2DD4BF;
  --text-dark: #2D3748;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
  --bg-block: var(--bg-light);  /* Changed to match the light background */
  --hover-light: rgba(74, 95, 233, 0.1);
  --shadow-color: rgba(74, 95, 233, 0.15);
}

/* Base styles */
body {
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Header and Navigation */
header.bg-light {
  background-color: var(--bg-light) !important;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.navbar-light {
  background-color: var(--bg-light) !important;
}

/* Cover section */
.cover.bg-light {
  background: var(--bg-light);
}

/* About section */
#about {
  background-color: var(--bg-white);
}

/* Services section */
#services {
  background-color: var(--bg-light);
}

/* Skills section */
#skills {
  background-color: var(--bg-light);
}

/* Experience section */
#timeline {
  background-color: var(--bg-light);
}

/* Projects section */
#projects {
  background-color: var(--bg-white);
}

/* Certificates section */
#certificates {
  background-color: var(--bg-light);
}

/* Contact section */
#contact {
  background-color: var(--bg-white);
}

/* Footer */
.footer {
  background-color: var(--bg-light);
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--bg-white);
}

/* Cards and content boxes */
.skill-item,
.timeline-content,
.portfolio-item,
.contact-form,
.thank-you-wrapper {
  background-color: var(--bg-block);
  box-shadow: 0 4px 8px var(--shadow-color);
  border: 1px solid rgba(74, 95, 233, 0.08);
}

/* Special style for Google Cloud logo */
.skill-item[data-skill="google-cloud"] {
  background-color: transparent;
  box-shadow: none;
  border: none;
}

.skill-item[data-skill="google-cloud"]:hover {
  background-color: transparent;
  box-shadow: none;
  transform: translateY(-5px);
}

.skill-item:hover,
.timeline-content:hover,
.portfolio-item:hover,
.thank-you-wrapper:hover {
  background-color: var(--hover-light);
  box-shadow: 0 8px 16px var(--shadow-color);
  border-color: rgba(74, 95, 233, 0.12);
}

/* Text colors */
.text-dark {
  color: var(--text-dark) !important;
}

.text-light {
  color: var(--text-light) !important;
}

/* Social icons */
.social-nav .nav-link {
  color: var(--text-dark) !important;
}

.social-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Portfolio items */
.portfolio-item figcaption {
  background: var(--hover-light);
}

/* Form elements */
.form-control {
  border-color: var(--text-light);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--hover-light);
}

/* Wave divider */
.custom-shape-divider-bottom .shape-fill {
  fill: var(--bg-light);
}

/* Loader */
#loader {
  background-color: var(--bg-white);
}

#loader::after {
  border-color: var(--primary-color);
}

/* Tooltips */
.certification-tooltip .tooltiptext,
.university-tooltip .tooltiptext {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

/* Section backgrounds - all sections light */
.section:nth-child(even),
.section:nth-child(odd) {
  background-color: var(--bg-light);
}

/* Social Media Icons and Resume Button Container */
.social-links-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icons .nav-item {
  margin: 0;
}

.social-icons .nav-link {
  font-size: 1.5rem;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.social-icons .nav-link:hover {
  color: var(--primary-color);
}

.download-resume {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInButton 0.5s ease forwards;
  animation-delay: 3.8s; /* Starts after the last social icon animation */
}

.download-resume:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .social-links-container {
    margin-top: 3rem;
    gap: 1.5rem;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .social-icons .nav-link {
    font-size: 1.75rem;
  }

  .download-resume {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }
}

/* Social Icons Animation */
.social-icons .nav-item {
  opacity: 0;
  transform: translateY(10px);
}

.social-icons .nav-item:nth-child(1) {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.2s;
}

.social-icons .nav-item:nth-child(2) {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.4s;
}

.social-icons .nav-item:nth-child(3) {
  animation: fadeInIcon 0.5s ease forwards;
  animation-delay: 3.6s;
}

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

.social-icons .nav-item:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}
