@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: transparent;
    z-index: 1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    position: absolute;
    left: 20px;
    top: 15px;
}

#logo {
    height: 50px;
}

#logo:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 10px 0;
    overflow: hidden;
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.main-content {
    text-align: center;
    color: #F5F5F5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeIn 5s;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#intro {
    text-align: center;
    color: #F5F5F5;
}

#intro h1 {
    font-size: 5em;
    font-weight: bold;
}

#intro p {
    font-size: 1.8em;
    font-weight: 300;
    width: 60%;
    margin: 0 auto;
}

.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    background-color: #F5F5F5; /* Light grey background */
}

.about-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1200px; /* Max width of 1200px */
    margin: auto;
}

.about-text {
    flex: 1;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
}

.about-text h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    padding: 20px;
    text-align: center; /* Center the image */
}

.about-image img {
    max-width: 100%;
    height: auto;
    animation: fadeIn 2s ease-in-out;
}

/* Responsive design for smaller screens */
@media (max-width: 800px) {
    .portfolio-grid {
        width: 100%;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;  /* Internet Explorer and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .portfolio-grid::-webkit-scrollbar {  /* Chrome, Safari and Opera */
        display: none;
    }
    .portfolio-grid img {
        width: 100%;
        scroll-snap-align: start;
    }
}

.services-section {
    padding: 50px 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-item {
    width: 300px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
    color: #666;
}

/* portfolio */
.portfolio-section {
    padding: 50px 0;
    text-align: center;
    position: relative;
}

.portfolio-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.portfolio-grid {
    display: flex;
    justify-content: flex-start;
    width: 1920px; /* Width of six thumbnails (320px each) */
    overflow: hidden;
    margin: auto;
}

.portfolio-grid img {
    width: 300px;
    height: auto;
    margin: 0 10px;
    transition: transform 0.3s ease;
    animation: fadeIn 2s ease-in-out;
    cursor: pointer;
}

.portfolio-arrow {
    position: absolute;
    top: 50%;
    font-size: 2em;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 100;
}

#portfolio-left {
    left: 10px;
}

#portfolio-left::before {
    content: '<';
    font-size: 2em;
}

#portfolio-right {
    right: 10px;
}

#portfolio-right::before {
    content: '>';
    font-size: 2em;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption { 
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.team-section {
    padding: 50px 0;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.team-member {
    width: 300px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.team-member h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 1em;
    color: #666;
}

.title {
    font-weight: bold;
    margin-bottom: 5px;
}

footer {
    background-color: #333;
    color: #f5f5f5;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    max-width: 300px;
    margin: 20px;
}

.footer-column h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-column p {
    font-size: 1em;
    line-height: 1.2;
}

.footer-column a {
    color: #f5f5f5;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .footer-container {
        flex-direction: column;
    }
}