@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
body{
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("geras.jpg");
}

/* Optional: Override specific elements if needed */
h1, h2, h3, h4, h5, h6, p {
    font-family: 'Garamond', cursive ;
}
a{
    font-family: 'Cinzel', cursive ;
}


::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

}
.container1 {
    border-radius: 10px;

}

/* Define the slide-in animation */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%); /* Start off-screen to the right */
        opacity: 0; /* Initially invisible */
    }
    100% {
        transform: translateX(0); /* Move to the center */
        opacity: 1; /* Fully visible */
    }
}

/* Apply the animation to the .container2 */
.container2 {
    background-color: #e6b207;
    height: auto;
    width: 100%;
    align-items: center; /* This centers horizontally */
    justify-content: center;
    opacity: 0; /* Initially hidden */
    animation: slideInFromRight 2s ease-out forwards; /* Apply the slide-in animation */
}

h3{
    color: #ffffff;
    margin: 25px 0;
}

.info1{
    margin: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgb(87, 21, 21);
    height: auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: rgb(230, 178, 7) 0px 15px 20px -5px;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(100%); /* Start off-screen to the right */
        opacity: 0; /* Initially invisible */
    }
    100% {
        transform: translateX(0); /* Move to the center */
        opacity: 1; /* Fully visible */
    }
}


.info3{
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgb(87, 21, 21);
    height: auto;
    width: auto;
    border-radius: 10px;
    box-shadow: rgb(230, 178, 7) 0px 15px 20px -5px;
}

.logo{
    height: 25rem;
    width: 40rem;
    box-shadow: rgb(230, 178, 7) 0px 15px 20px -5px;
    border-radius: 10px;

}
.main-cont{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    height: 80px;
    width: 100%;
    border-radius: 10px;
    background-color: rgb(87, 21, 21);
    box-shadow: rgb(230, 178, 7) 0px 15px 20px -5px;
}

.nav--list {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.item {
    position: relative;
    height: 40px;
    flex-grow: 1;  /* Allows items to expand and fill the space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    user-select: none;
    cursor: pointer;
    margin: 0 15px; /* You can reduce margin for tighter spacing */
    border: 2px solid #f2c75c;
    overflow: hidden;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .nav--list {
        flex-direction: row; /* Stack the nav items vertically on small screens */
    }

    .item {
        width: 100%;  /* Make each button as wide as the container */
        margin: 5px 0;
        border: none;
    }
    .logo {
        height: 20rem;
        width: 20rem;
    }
}

.item a {
    font-size: 10px;
    text-transform: uppercase;color: #f2c75c;
    z-index: 10;
    text-decoration: none;
    transition: color 200ms ease;
}

.item:hover a {
    color: #003b49;
}

.item:before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    transform: skew(30deg);
    background: #f2c75c;
    transition: width 400ms ease;
}

.item:hover:before {
    width: 120%;
}

.item:nth-child(2):before {
    transform: skew(-20deg);
}

.item:nth-child(3):before {
    transform: skew(0deg);
}

.item:nth-child(4):before {
    width: 100%;
    height: 0%;
    bottom: 0px;
    transition: height 400ms ease;
}

.item:nth-child(4):hover:before {
    height: 100%;
}
.h3 {
    color: #ffffff;
}
p {
    margin: 15px;
    color: #ffffff;
}
.info2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
    font-family: "Noto Sans Myanmar", cursive;
    font-size: 1.5rem;
    opacity: 0;
    animation: fadeIn 4s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0; /* Start with invisible */
    }
    100% {
        opacity: 1; /* End with fully visible */
    }
}

.services{
    height: auto;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers child elements horizontally */

}
@keyframes fadeInText {
    0% {
        opacity: 0; /* Start invisible */
    }
    100% {
        opacity: 1; /* End fully visible */
    }
}

/* Apply the animation to the .services1 container */
.services1 {
    height: auto;
    width: 50%;
    margin: 25px;
    opacity: 0; /* Initially hidden */
    animation: fadeInText 4s ease-in forwards; /* Apply the fade-in animation */
}

/* Optional: You can also use media queries to apply it on smaller screens */
@media (max-width: 768px) {
    .services1 {
        width: 90%; /* Adjust width for smaller screens */
    }
}

.info4{
    background: black;
    height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Default carousel styling */
.img-carousel {
    width: 100%;  /* Full width for the carousel */
    height: 40em;  /* Default large height */
    object-fit: cover;  /* Ensure images cover the space without distortion */
}

/* Default margin for larger screens */
.margin {
    margin: 100px;
}
.margin-bottom{
    margin-top:20px;
}

/* For smaller screens (tablets and below) */
@media (max-width: 1200px) {
    .margin {
        margin: 50px; /* Reduced margin for tablets */
    }

    .img-carousel {
        height: 38em;  /* Smaller height for tablets */
    }
}

/* For mobile screens */
@media (max-width: 768px) {
    .margin {
        margin: 0;  /* Remove margins for mobile screens */
    }

    .img-carousel {
        height: 35em;  /* Further reduced height for mobile */
    }
}

/* For very small screens (phones like iPhone SE) */
@media (max-width: 420px) {
    .margin {
        margin: 0;  /* No margins on phones */
    }

    .img-carousel {
        height: 25em;  /* Adjust carousel height for very small screens */
    }
}

/* For large screens (desktops and laptops) */
@media (min-width: 1200px) {
    .img-carousel {
        height: 45em;  /* Increase the height on larger screens */
    }
}

/* General Carousel Styling */
.carousel-steampunk {
    border: 5px solid #b57d3a; /* Bronze/gold border for the steampunk effect */
    border-radius: 15px;
    padding: 10px;
    background: linear-gradient(to bottom, #6a4e1e, #4a2d1a); /* Dark brown gradient */
    position: relative;
}

/* Adding metallic/steampunk frame effect */
.carousel-steampunk::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('https://www.example.com/steampunk-texture.png'); /* Texture image */
    background-size: cover;
    border-radius: 15px;
    opacity: 0.6;
    z-index: -1;
}

.photos {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    grid-template-rows: repeat(2, auto); /* Creates two rows with automatic height */
    gap: 35px; /* Adjust the space between the images */
    justify-items: center; /* Center the images within their grid items */
    align-items: center; /* Vertically center images within their grid items */
    text-align: center;
}

.photos img {
    opacity: 0; /* Initially hidden */
    transform: translateY(30px); /* Slightly move the images down to give a sliding effect */
    animation: fadeInUp 1s forwards; /* Apply the animation */
}

/* Keyframe animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px); /* Start from below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Move to the normal position */
    }
}

/* This will make each image fade in only when it becomes visible */
.photos img:not(.scrolled) {
    visibility: hidden; /* Hide initially */
}

.photos img.scrolled {
    visibility: visible; /* Show once it has scrolled into view */
}

.img-full{

}

.photos img {
    opacity: 0; /* Start with the images hidden */
    transform: translateX(100px); /* Start off to the right for animation */
    animation: slideIn 1s forwards; /* Trigger the slide-in animation */
}

.photos img:nth-child(1) {
    animation-delay: 0s; /* First image animates immediately */
}

.photos img:nth-child(2) {
    animation-delay: 0.3s; /* Second image animates after 0.3s */
}

.photos img:nth-child(3) {
    animation-delay: 0.6s; /* Third image animates after 0.6s */
}

.photos img:nth-child(4) {
    animation-delay: 0.9s; /* Fourth image animates after 0.9s */
}

.contacts{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: rgb(87, 21, 21);
    width: auto;
    height: 15rem;
}

footer {
    background-color: #000000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid #444;
}

footer p {
    margin: 0;
    font-weight: 400;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #66ccff;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons i {
    font-size: 20px;
    color: #fff;
    transition: color 0.3s ease;
}

footer .social-icons a:hover i {
    color: #66ccff;
}

.font-size{
    font-size: 20px !important;
}
.font-size-header{
    font-size: 30px !important;
}
/* Keyframe for sliding the images in */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(100px); /* Start from the right */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* End in the normal position */
    }
}


@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}






