/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #fff;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e90ff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1e90ff;
}

/* Hero Section with Background Image */
.hero {
  background: url('hero.jpg') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Adds a dark overlay for better text visibility */
  z-index: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2; /* Ensure content is above overlay */
  gap: 40px; /* Adds spacing between profile picture and text */
}

.profile-pic img {
  width: 150px; /* Set the size of the profile picture */
  height: 150px;
  border-radius: 50%; /* Make it a circular image */
  border: 3px solid #fff; /* Optional: Add a border for better visibility */
  object-fit: cover; /* Ensures the image scales correctly */
}

.hero-text {
  text-align: left; /* Align text to the left */
}

.hero h1,
.hero p {
  position: relative;
  z-index: 2; /* Ensures text is above the overlay */
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero h1 span {
  color: #1e90ff;
}

.hero p {
  margin-top: 10px;
  font-size: 1.2rem;
}
/* Contact Icons */
.contact-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px; /* Spacing between icons */
}

.contact-icons .icon {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-icons .icon:hover {
  color: #1e90ff;
}

/* Scroll Button */
.scroll-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* Ensures it is above the hero background */
  text-align: center;
}

.scroll-link {
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  background: rgba(30, 144, 255, 0.8); /* Semi-transparent blue background */
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Space between icon and text */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-link i {
  font-size: 1.5rem; /* Icon size */
}

.scroll-link:hover {
  background: rgba(30, 144, 255, 1); /* Fully opaque blue on hover */
  transform: scale(1.1); /* Slight zoom effect */
}

.scroll-link:active {
  transform: scale(0.95); /* Slight shrink effect on click */
}



/* About Section */
.about {
  background: #fff;
  padding: 50px 20px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about p {
  max-width: 700px;
  margin: 15px auto;
  color: #555;
  text-align: justify;
  line-height: 1.8; /* Adjust line spacing */
}
/* Work Experience Section */
.work {
  background: #f4f4f4;
  padding: 50px 20px;
  text-align: center;
}

.work h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #1e90ff;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #1e90ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: calc(50% - 40px);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #1e90ff;
  text-align: left;
}

.timeline-content .company {
  font-weight: bold;
  color: #333;
  text-align: left;
  
}

.timeline-content .duration {
  color: #777;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-align: left;
  
}

.timeline-content ul {
  list-style-type: disc;
  margin-left: 20px;
  color: #555;
}

.timeline-content ul li {
  margin-bottom: 5px;
  text-align: left;
  
}
/* Responsive Design for Smaller Screens */

@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline-content {
    width: 100%;
    text-align: center;
  }
}

/* Projects Section */
.projects {
  background: #f4f4f4;
  padding: 50px 20px;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  text-align: left;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-align: center;
}
.project-info ul {
  list-style-type: disc;
  margin-left: 20px; /* Adds indentation for bullets */
  color: #555;
}

.project-info ul li {
  margin-bottom: 5px;
  text-align: justify; /* Ensures bullet points are left-aligned */
}

.project-info p {
  color: #555;
  text-align: center;
}
.project-info a {
  color: #1e90ff; /* Link color */
  text-decoration: none;
}

.project-info a:visited {
  color: #1e90ff; /* Prevents color change after clicking */
}

.project-info a:hover {
  text-decoration: underline; /* Optional: Adds an underline effect on hover */
}

/* Education & Publications Section */
.education-publications {
  background: #fff; /* White background for clean contrast */
  padding: 50px 20px; /* Section padding for spacing */
  text-align: center;
}

.education-publications h2 {
  font-size: 2rem; /* Title size */
  margin-bottom: 30px; /* Space below the title */
}

.two-column-layout {
  display: flex; /* Flexbox for two-column layout */
  flex-wrap: wrap; /* Allows wrapping for smaller screens */
  gap: 20px; /* Space between columns */
  justify-content: center; /* Center columns within the container */
}

.two-column-layout .column {
  flex: 1 1 45%; /* Each column takes up to 45% of the width */
  max-width: 45%; /* Prevent columns from exceeding 45% */
  text-align: left; /* Align text to the left for readability */
}

.two-column-layout h3 {
  font-size: 1.5rem; /* Subheading size */
  margin-bottom: 15px; /* Space below each subheading */
  color: #1e90ff; /* Subheading color */
}

.two-column-layout ul {
  list-style-type: disc; /* Bullet point style */
  margin-left: 20px; /* Indentation for bullet points */
  color: #555; /* Text color */
}

.two-column-layout ul li {
  margin-bottom: 10px; /* Space between list items */
  line-height: 1.8; /* Increased line spacing for readability */
}

/* Links in Education & Publications */
.two-column-layout a {
  color: #1e90ff; /* Link color */
  text-decoration: none; /* No underline by default */
}

.two-column-layout a:visited {
  color: #1e90ff; /* Prevents color change after being clicked */
}

.two-column-layout a:hover {
  text-decoration: underline; /* Underline on hover for interactivity */
}

/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
  .two-column-layout .column {
    flex: 1 1 100%; /* Full width for each column */
    max-width: 100%; /* Ensure columns stack on smaller screens */
  }
}

/* Certifications Section */
#certifications {
    padding: 50px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

#certifications h2 {
    font-size: 2rem; /* Matches other section headers */
    margin-bottom: 30px;
    color: #333; /* Ensure consistent theme color */
    text-align: center;
}

.certifications-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* Adds spacing between the columns */
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
}

.certifications-column {
    flex: 1; /* Two columns on larger screens */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between tiles */
    padding-left: 20px;
    border-left: 3px solid #1e90ff; /* Adds a decorative border to the columns */
}

.certifications-column:first-child {
    border-left: none; /* Remove the border for the first column */
}

.certification-tile {
    background-color: #fff; /* Clean white background for tiles */
    padding: 15px;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for a 3D effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
    text-align: left;
}

.certification-tile a {
    color: #333; /* Neutral link color */
    text-decoration: none; /* Removes underline */
    font-size: 1rem; /* Readable text size */
    line-height: 1.6; /* Improves readability */
}

.certification-tile:hover {
    transform: translateY(-5px); /* Slight elevation effect on hover */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Emphasized shadow on hover */
}

.certification-tile a:hover {
    color: #1e90ff; /* Change link color on hover */
    text-decoration: underline; /* Adds underline on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .certifications-grid {
        flex-direction: column; /* Stacks columns vertically */
        gap: 20px; /* Adjusts spacing for stacked layout */
    }

    .certifications-column {
        flex: 1 1 100%; /* Full width for each column */
        max-width: 100%;
        border-left: none; /* Remove decorative border for smaller screens */
        padding-left: 0;
    }
}

/* Contact Section */
.contact {
  background: #f4f4f4;
  padding: 30px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 15px;
  color: #555;
}

.contact a {
  color: #1e90ff; /* Link color */
  text-decoration: none; /* No underline */
}
.contact a:visited {
  color: #1e90ff; /* Ensures link color doesn't change after clicking */
}
.contact a:hover {
  text-decoration: underline; /* Optional: Underline on hover for interactivity */
}

/* Footer */
.footer {
  background: #000000;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  color: #ffffff;
}
