@charset "utf-8";
/* Reset and Basic Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  overflow-x: hidden;
  /* Enable scroll snapping with vendor prefix for iOS Safari */
  scroll-snap-type: y mandatory;
  -webkit-scroll-snap-type: y mandatory;
}

/* Fixed Navigation Bar */
nav#navbar {
  background-color: #0056b3;
  padding: 1em 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
nav#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
nav#navbar ul li {
  margin: 0 1em;
}
nav#navbar ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5em 1em;
}
nav#navbar ul li a:hover {
  background-color: #003d80;
  border-radius: 4px;
}

/* Section Layout and Transition Animation */
.section {
  scroll-snap-align: start; /* Snaps to each section */
  min-height: 100vh;
  padding: 120px 20px 60px; /* Top padding accounts for fixed nav */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  opacity: 0;
  transform: translateY(50px);
}
.section.active {
  opacity: 1;
  transform: translateY(0);
}

/* Visual Flare: Section Backgrounds with Gradients */
#home {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  color: #fff;
  background-attachment: fixed;
}
#about {
  background: linear-gradient(135deg, #42a5f5, #90caf9);
  color: #333;
}
#cv {
  background: linear-gradient(135deg, #90caf9, #e3f2fd);
  color: #333;
}
#contact {
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
  color: #333;
}

/* Content Container */
.content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Profile Picture in a Circular Frame */
.profile-pic {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1em;
}

/* Home Section: Company Logos */
.company-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2em; /* Provides space above the logos */
}
.company-logos img {
  width: 100px;          /* Adjusts each logo's width */
  margin: 0.5em;         /* Provides spacing between logos */
  object-fit: contain;   /* Ensures the entire logo fits inside the container */
  transition: transform 0.3s ease; /* Smooth transition for hover effect */
}
.company-logos img:hover {
  transform: scale(1.1);
}

/* Experience List Styles */
.experience-list {
  list-style: none;
  text-align: left;
  padding: 0;
}
.experience-list li {
  margin-bottom: 1.5em;
}

/* Education & Skills Lists */
.education-list {
  margin-bottom: 2em;  /* Extra space before Skills */
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1em auto 0 auto;
  max-width: 800px;
  margin-top: 2em;
}
.skills-list li {
  background-color: #e3f2fd; /* Light blue background */
  color: #0277bd;           /* Darker blue text */
  border: 1px solid #81d4fa;
  padding: 0.5em 1em;
  margin: 0.5em;
  border-radius: 20px;
  font-size: 0.9em;
  text-align: center;
  white-space: nowrap;
}

/* Typing Effect Styling for About Me Section */
.intro-statement {
  font-size: 1.2em;
  margin-bottom: 1em;
}
#typing-text {
  color: #e91e63;  /* Standout color - adjust as desired */
  font-weight: bold;
}
#typing-text::after {
  content: "|";
  margin-left: 5px;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  margin: 40px auto;
  max-width: 800px;
}

/* Hide slides by default */
.mySlides {
  display: none;
}

/* Next & Previous Buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  background-color: rgba(0, 0, 0, 0.5);
  user-select: none;
  border-radius: 3px;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Fading Animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Dots */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active, .dot:hover {
  background-color: #717171;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-form label {
  margin: 0.5em 0 0.2em;
  width: 100%;
  max-width: 400px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  background-color: #0056b3;
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #003d80;
}

/* Fixed LinkedIn Icon at Bottom Left with Pulsating Effect */
#linkedin-fixed {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 1001;
}
#linkedin-fixed img {
  width: 32px;  /* Increased size */
  height: 32px; /* Increased size */
  border: 0 !important;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
  /* Use a horizontal layout for the navbar on mobile */
  nav#navbar ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  nav#navbar ul li {
    margin: 0 5px; /* Reduced spacing */
  }
  nav#navbar ul li a {
    font-size: 0.8em;          /* Slightly smaller text */
    padding: 0.3em 0.6em;       /* Reduced padding inside links */
  }
  .content {
    padding: 0 1em;
  }
  .section {
    /* Reduce top padding to avoid excessive empty space on mobile and adjust min-height */
    padding: 80px 20px 60px;
    min-height: calc(100vh - 80px);
  }
}

/* More aggressive adjustments for very small devices */
@media (max-width: 480px) {
  nav#navbar {
    padding: 0.3em 0;
  }
  nav#navbar ul li a {
    font-size: 0.75em;
    padding: 0.2em 0.5em;
  }
}
