@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* header-section */
.header {

    display: flex;
    padding: 10px; 
    border-bottom: #d4d4d4 solid 1px;
    box-shadow: 0.5px 0 0.8px rgba(0,0,0,0.75);

}
.logo{
    display: flex;
}
.logo img{
    width: 100px;
    justify-content: center;
    align-self: center;
    top: 0;
    right: 0;
}
.logo-text h1 {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 6px;
    margin-left: 3px;
    color: rgb(68, 68, 68);
}

.logo-text h1::after {
    content: "+91 90035 25975";
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
    color: #8f8f8f;
}

/* nav-bar section */
nav{
    height: 60px;
    background-color: var(--color1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-bars{
    justify-content: center;
    align-items: center;
    margin-left: 150px;
}
.links-container{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
nav a{ 
    padding: 0 20px;
    display: flex;
    text-decoration: none;
    color: var(--text-color);
}
nav a:hover{
    color: #F3B649;
    transition: 0.5s;
}
nav .home-links{
    fill: var(--text-color);
}
nav svg {
    fill: var(--text-color);
}
#sidebar-active{
    display: none;
}
.open-sidebar-button,.close-sidebar-button{
    display: none;
}

/* Language Switch Container */
.language-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10%;
}

/* Switch Control Styling */
.switch-control {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-control input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: rgba(243, 182, 73, 0.8); /* Active switch color */
}

input:checked + .switch-slider:before {
    transform: translateX(26px);
}

/* Language Label Styling */
#langLabel {
    font-size: 16px;
    color: rgb(23, 23, 23);
}



@media(max-width:1250px){
    .links-container{

        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: #d3d3d3;
        box-shadow: -5px 0 5px rgba(0,0,0,0.25);
        transition: 0.75s ease-out;
    }
    nav a{
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button,.close-sidebar-button{
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container{
        right: 0;
    }
    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
    .header {
        flex-direction: row; /* Keep row layout */
        justify-content: space-between; /* Align logo to left, menu to right */
        align-items: center;
        padding: 10px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
    }

    .logo-text h1 {
        font-size: 16px; /* Slight size reduction for smaller screens */
    }
    .logo-text h1::after{
        font-size: 14px;
    }

    .nav-bars {
        margin-left: 0; /* Remove unnecessary margin on mobile */
    }

    .open-sidebar-button {
        display: block; /* Ensure menu icon is visible on mobile */
        margin-left: auto; /* Align the menu icon to the right */
    }
}

@media(max-width:430px){
   
    .logo img {
        width: 60px; /* Further reduce logo size for smaller screens */
    }

    .logo-text h1 {
        font-size: 14px; /* Adjust title size */
    }
    .logo-text h1::after{
        font-size: 12px;
    }

    .header {
        padding: 8px; /* Compact padding */
    }
}


/* Header Section */



/* Centering h1 and h3 Tags */
h1, h3 {
    text-align: center;
}


h1 {
    margin-top: 3%;
    font-size: 24px;
    margin-bottom: 1%;
}

h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Rameswaram Section */
/* Section Container */
/* General Section Styles */
.rameswaram-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    flex-wrap: wrap; /* Ensures content stacks on small screens */
}

/* Title and Subtitle Styling */
.ram h1, .ram h3 {
    text-align: center;
    animation: fadeUp 1s ease-out;
}


/* Image Container */
.rames-img {
    width: 40%; 
    margin-left: 10%;
    animation: fadeRight 1s ease-out;
    position: relative;
}

.rames-img img {
    width: 70%;
    height: 550px;
    border-radius: 8px;
}

.rames-img p {
    position: absolute;
    left: 180px;
    transform: translateX(-50%);
    font-size: 17px;
    color: rgba(243, 182, 73, 1);
    font-weight: 700;
}

/* Content Styling */
.content-rames {
    background-color: rgba(243, 182, 73, 1);
    padding: 20px;
    border-radius: 8px;
    width: 50%; 
    margin-right: 10%;
    flex: 1; /* Ensures flexible layout */
    transform: translateX(20px); /* Start from the right */
    animation: fadeLeft 1s ease forwards 0.5s; /* Add slide-in animation */
}




.content-rames ul {
    list-style-type: disc;
    padding-left: 20px;
}

.content-rames ul li {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Media Queries for Tablet and Mobile */
@media (max-width:2000px){
    html,body{
        width: 100%;
        overflow-x: hidden;
    }
}
@media (max-width: 820px) {
    .rameswaram-section {
        flex-direction: column;
        align-items: center;
    }

    .rames-img {
        width: 70%; 
        margin-bottom: 20px;
        margin-right: 65%;
    }
    .rames-img p{
        margin-right: 60px;
        font-size: 16px;
    }

    .content-rames {
        width: 100%;
        margin-top: 10%;
        margin-right: 70%;

    }
}

@media (max-width: 480px) {
    .rameswaram-section {
        flex-direction: column;
        align-items: center;
    }

    .rames-img {
        width: 120%; 
        margin-bottom: 20px;
        margin-right: 40%;
    }
    .rames-img p{
        margin-right: 60px;
        font-size: 14px;
    }

    .content-rames {
        width: 100%;
        margin-top: 10%;
        margin-right: 70%;

    }
    .ram h1 {
        font-size: 22px;
    }

    .ram h3 {
        font-size: 16px;
    }

    .content-rames ul li {
        font-size: 1rem;
    }
}

/* Keyframe Animations */
@keyframes fadeRight {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Agni Tirtham Section */
/* Global Section Styling */
.Agni-section {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* About Agni Section Styling */
.about-agni {
    background-color: rgba(243, 182, 73, 1);
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    position: relative;
    z-index: 2;
    margin-top: 70px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-right: -100px;
}

.about-agni h4 {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    color: white;
}

.about-agni ul {
    list-style-type: disc;
    padding-left: 20px;
}

.about-agni ul li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Image Section Styling */
.about-agni-img {
    width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-agni-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Agni Text Section */
.agni-txt {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 20px;
    margin-left: 5%;
    width: 90%;
}
.agni-txt ul li{
    margin-bottom: 10px;
}

/* Media Query for Mobile Devices */
@media (max-width: 820px) {
    .Agni-section {
        flex-direction: column;
    }

    .about-agni {
        width: 70%;
        margin-left: 15%;
        margin-top: -10%;
        order: 2; /* Ensure it appears after the image */
        z-index: 2;
    }

    .about-agni-img {
        width: 100%;
        order: 1; /* Ensure it appears first */
        margin-bottom: 20px;
    }
    .agni-txt{
        width: 90%;
        margin-left: 4%;
        
    }
    .agni-txt ul li{
        margin-bottom: 10px;

    }
}
@media (max-width: 768px) {
    .Agni-section {
        flex-direction: column;
    }
    .agni-section h1{
        font-size: 22px;
    }
    .agni-section h3{
        font-size: 16px;
    }

    .about-agni {
        width: 90%;
        margin-left:5%;
        margin-top: -20%;
        order: 2; /* Ensure it appears after the image */
        z-index: 2;
    }

    .about-agni-img {
        width: 100%;
        order: 1; /* Ensure it appears first */
        margin-bottom: 20px;
    }
}
/* pamban section  */
/* Background Section */
.bg {
    background-color: rgba(243, 182, 73, 1); /* Background color */
    position: relative;
    width: 20%;
    height: 400px; /* Adjust height as needed */
    z-index: 1;
    margin-left: 240px;
    margin-top: 12%;
    
}

/* Pamban Image Section */
.pamban-img {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin-top: -150px; /* Overlap with the background */
    
}

.pamban-img img {
    width: 300px; /* Adjust image width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

/* Image 1 Overlapping BG */
.pamban-img img:first-child {
    position: relative;
    z-index: 2; /* Bring to front */
    margin-left: 23%; /* Adjust spacing */
    margin-top: -23%;
}

/* Image 2 Overlapping BG and Image 1 */
.pamban-img img:last-child {
    position: absolute;
    top: 40px; /* Adjust for overlap */
    left: 220px; /* Adjust for overlap with the first image */
    z-index: 3; /* Bring this on top of image 1 */
    margin-left: -10%;
    margin-top: -10%;
}

/* Pamban Text Section */
.pamban-txt {
    width: 40%; /* Adjust as needed */
    margin-left: auto;
    padding: 20px;
    position: relative;
    z-index: 4;
    margin-top: -21%;
    background-color: rgba(243, 182, 73, 1);
    border-radius: 8px;
    margin-right: 7%;
}

.pamban-txt ul {
    list-style-type: disc;
    padding-left: 20px;
}

.pamban-txt ul li {
    margin-bottom: 10px;
    font-size: 18px;
}

@media (max-width:1052px){
    .bg {
        width: 40%;
        height: 400px; /* Adjust height as needed */
        z-index: 1;
        margin-left: 240px;
        margin-top: 18%;  
    }
    .pamban-img img:first-child {
        position: relative;
        z-index: 2; /* Bring to front */
        margin-left: 45%; /* Adjust spacing */
        margin-top: -40%;
    }
    .pamban-img img:last-child {
        position: absolute;
        top: 40px; /* Adjust for overlap */
        left: 220px; /* Adjust for overlap with the first image */
        z-index: 3; /* Bring this on top of image 1 */
        margin-left: -10%;
        margin-top: -12%;
    }
    .pamban-txt {
        width: 70%; /* Adjust as needed */
        margin-left: auto;
        padding: 20px;
        position: relative;
        z-index: 4;
        margin-top: 41%;
        background-color: rgba(243, 182, 73, 1);
        border-radius: 8px;
        margin-right: 15%;
    }
}
@media (max-width:430px){
    .bg {
        width: 50%;
        height: 300px; /* Adjust height as needed */
        z-index: 1;
        margin-left: 100px;
        margin-top: 20%;  
    }
    .pamban-img img {
        width: 200px; /* Adjust image width */
        height: auto;
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    }
    
    .pamban-img img:first-child {
        position: relative;
        z-index: 2; /* Bring to front */
        margin-left: 45%; /* Adjust spacing */
        margin-top: -50%;
    }
    .pamban-img img:last-child {
        position: absolute;
        top: 40px; /* Adjust for overlap */
        left: 220px; /* Adjust for overlap with the first image */
        z-index: 3; /* Bring this on top of image 1 */
        margin-left: -40%;
        margin-top: -12%;
    }
    .pamban-txt{
        margin-top: 60%;
        width: 95%;
        margin-left: 10px;
    }
    .pamban-section h1{
        font-size: 22px;
    }
    .pamban-section h3{
        font-size: 16px;
    }
}


/* General Button Styling */
button {
    padding: 10px 20px;
    background-color: #F3B649;
    border: none;
    color: #fff;
    font-size: 19.2px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    position: relative;
    margin-left: 85%;
    margin-top: 15%;
    
}



/* Mobile & Tablet View - Align to Left */
@media (max-width: 768px) {
    button {
        margin-left: 5%; /* Align to the left side */
        margin-top: 40px; /* Maintain spacing from top */
    }
}





/* Footer Section */
.footer {
    background-color: #fff;
    color: rgba(73, 72, 72, 1);
    padding: 40px 20px;
    display: flex;
    margin-top: 2%;
    justify-content: space-between;
    align-items: center;
    border-top: solid 1px;
    border-color: #ebebeb;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px; /* Space between sections */
}

/* Working Hours Section */
.footer .work {
    flex: 1;
    margin-bottom: 20px;
}

.footer .work h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .work p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Logo Section */
.footer .logo-f {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer .logo-f img {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
}

.footer .logo-f p {
    font-size: 1.2rem;
    color: rgba(73, 72, 72, 1);
}

/* Contact Section */
.footer .contact-footer {
    flex: 1;
    margin-bottom: 20px;
}

.footer .contact-footer h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgb(21, 21, 21);
}

.footer .contact-footer p {
    font-size: 1rem;
    color: rgba(73, 72, 72, 1);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.5rem;
    color: rgba(243, 182, 73, 1);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #FFD700;
}

/* Copyright Section */
.copyr {
    color: #222;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
}

.copyr p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Tablet View */
    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Mobile View */
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .footer div {
        width: 100%; /* Full width for sections */
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icons a {
        font-size: 1.3rem; /* Slightly smaller on mobile */
    }
}



/* Optional Custom Styling for Fade Animation */
/* Fade Left */
[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(-50px); /* Start from the left */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}

/* Fade Right */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(50px); /* Start from the right */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0); /* Move to original position */
}

/* Fade Up */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px); /* Start from below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

/* Fade Down */
[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-50px); /* Start from above */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0); /* Move to original position */
}

#scrollTopButton {
    position: fixed;
    bottom: 20px; 
    right: 20px; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    background-color: #F3B649; 
    color: white;
    font-size: 24px; 
    border: none; 
    outline: none; 
    cursor: pointer; 
    display: none; 
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease; 
}

#scrollTopButton:hover {
    background-color: #e8a93d; /* Darker shade on hover */
}
