body {
    font-family: Calibri, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 60px;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
	position: relative;
    z-index: 1;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* For desktop */
@media (min-width: 1025px) {
    .container {
        width: 80%;
		max-width: 1040px;
        margin: 0 auto;
    }
}

/* For tablets and mobile devices */
@media (max-width: 1024px) {
    .container {
        width: 100%;
        margin: 0;
    }
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: left;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
	padding-left: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 10px 0 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6347;
}

/* Additional padding to accommodate fixed header */
body {
    padding-top: 60px;
}
section {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

h3 {
    padding-bottom: 0px;
    text-align: center;
}

/* Background Section */
.section-background {
    background: url('background.jpg') no-repeat center center/cover;
	margin-left: auto;
	margin-right: auto;
	height: 720px;
    max-width: 1040px;
}

.section-introduction {
    background-color: #ffffff; /* Adjust color as needed */
    color: #333;
    text-align: center;
}

.section-experience {
    background-color: #f0f0f0; /* Replace with actual color */
    color: #333;
}

.section-education {
    background-color: #e0e0e0; /* Replace with actual color */
    color: #333;
}

.section-skills {
    background-color: #d0d0d0; /* Replace with actual color */
    color: #333;
}

.section-publications {
    background-color: #c0c0c0; /* Replace with actual color */
    color: #333;
	text-align: justify;
	padding-right: 50px;
}

.section-contact {
    background-color: #b0b0b0; /* Replace with actual color */
    color: #fff;
}



.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-year {
    flex: 1;
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
}

.timeline-details {
    flex: 6;
    text-align: left;
    padding-left: 20px;
	padding-right: 60px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(50px);
}


ol {
    padding: 10;
    list-style: number; 
}

ol li {
    margin: 10px 0;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ff6347;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-top: 20px;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 5px;
}

/* Transitions and Animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer img {
    max-width: 200px;
    border-radius: 50%;
}

.contact-info {
    text-align: right;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0;
}

.skills-container {
    display: flex;
    justify-content: space-between;
}

.skills-column {
    flex: 1;
    padding: 20px;
}

.skills-column h3 {
    text-align: left;
}

.skills-column ul {
    list-style: circle;
    padding: 0;
}

.skills-column ul li {
    margin: 5px 0;
}

/* Gallery section */
#gallery {
  margin-top: 40px;
  overflow: hidden;
  background: #f7f7f7;
  padding: 20px;
}

.gallery-row {
	display: flex;
    gap: 10px;
    height: 180px;
    margin-bottom: 10px;
    position: relative;
    overflow: visible;
    animation: scrollRow 30s linear infinite;
}

.gallery-row:nth-child(even) {
  animation-direction: reverse; /* Alternate direction for cool effect */
}

.gallery-row img {
  height: 100%;
  width: auto;
  object-fit: cover;
  transition: all 0.3s ease-in-out;
  opacity: 1;
  cursor: pointer;
}


.gallery-row:hover {
    animation-play-state: paused;
}
.gallery-row img:hover {
    animation-play-state: paused;
}

.gallery-row img:hover {
  transform: scale(1.5);
   z-index: 999;
   position: relative
   box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.gallery-row:hover img:not(:hover) {
  opacity: 0.4;
  filter: grayscale(70%);
}


/* Animation keyframes */
@keyframes scrollRow {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


@keyframes scrollCollage {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.gallery-row:hover {
    animation-play-state: paused;
}
