/* General Reset */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }


  
/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

/* Active Slide */
.hero.active {
    opacity: 1;
    z-index: 2;
}

/* Background Images for Hero Sections */
.hero:nth-of-type(1) {
    background: url('../images/photovoltaic-modern-city-skyline-china-chongqing.jpg') center/cover no-repeat;
}

.hero:nth-of-type(2) {
    background: url('../images/solar-energy-production-system-from-solar-panels-clean-technology\ \(1\).jpg') center/cover no-repeat;
}

.hero:nth-of-type(3) {
    background: url('../images/pikaso_embed_Photo-A-yellow-hard-hat-on-top-of-solar-panels-aga.jpeg') center/cover no-repeat;
}

.hero:nth-of-type(4) {
    background: url('../images/55587.jpg') center/cover no-repeat;
}

/* Promo Banner */
.promo-banner {
    position: absolute;
    top: 10%;
    width: 100%;
    background-color: #4a6473;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.promo-banner h1 {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
}

/* Scroll Left Animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Hero Text Styling */
.hero-text {
    max-width: 80%;  /* Adjust width to make it look balanced */
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

/* Hero Title and Highlight */
.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adds shadow to text for readability */
}

.hero-text h1:first-of-type {
    margin-top: 10%;
    margin-bottom: 5%;
    margin-left: -20%;
}

.hero-text h1 .highlight {
    color: #FFD700;
}

/* Animation Definitions */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-top {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-bottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes zoom-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate-in {
    0% {
        opacity: 0;
        transform: rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotate(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Apply Animations */
#first-slide .animate-left { animation: slide-in-left 3s ease forwards; }
#first-slide .animate-right { animation: slide-in-right 3s ease forwards; }
#second-slide .animate-top { animation: slide-in-top 3s ease forwards; }
#second-slide .animate-bottom { animation: slide-in-bottom 3s ease forwards; }
#third-slide .animate-zoom-in { animation: zoom-in 3s ease forwards; }
#fourth-slide .animate-right { animation: slide-in-right 3s ease forwards; }
#fourth-slide .animate-left { animation: slide-in-left 3s ease forwards; }

/* Dots for Navigation */
.dot-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 9000;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    background-color: #ddd;
    opacity: 0.4;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
    opacity: 1;
}

.btn {
    display: inline-block; /* Makes it an inline block for padding */
    padding: 10px 20px; /* Padding around the button */
    background-color: rgba(255, 255, 255, 0.8); /* Button background */
    color: #333; /* Button text color */
    text-decoration: none; /* Removes underline */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Makes the button text bold */
    transition: background-color 0.3s; /* Smooth transition */
}

.btn:hover {
    background-color: rgba(255, 255, 255, 1); /* Change on hover */
}

/* Animation Keyframes */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px); /* Start slightly above */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at normal position */
    }
}


/* Media Queries */

/* 1000px */
@media (min-width: 901px) and (max-width: 1000px) {
    .hero-text h1 {
        font-size: 45px;
    }
    .promo-banner h1 {
        font-size: 20px;
        white-space: nowrap; /* Prevents text wrapping */
    }
}

/* 900px */
@media (min-width: 801px) and (max-width: 900px) {
    .hero-text h1 {
        font-size: 41px;
    }
    .promo-banner h1 {
        font-size: 18px;
        white-space: nowrap; /* Prevents text wrapping */
    }
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* 800px */
@media (min-width: 701px) and (max-width: 800px) {
    .hero-text h1 {
        font-size: 36px;
    }
    .promo-banner {
        padding: 8px;
    }
    .promo-banner h1 {
        white-space: nowrap; /* Prevents text wrapping */
    }
}

/* 700px */
@media (min-width: 601px) and (max-width: 700px) {
    .hero-text {
        padding: 0 15px;
    }
    .hero-text h1 {
        font-size: 31px;
        line-height: 1.1;
    }
    .promo-banner h1 {
        white-space: nowrap; /* Prevents text wrapping */
    }
}

/* 600px */
@media (min-width: 501px) and (max-width: 600px) {
    .promo-banner {
        font-size: 15px;
        top: 10%;
    }
    .promo-banner h1 {
        font-size: 15px;
        white-space: nowrap; /* Prevents text wrapping */
    }
    .hero-text h1 {
        font-size: 27px;
    }
}

/* 500px */
@media (min-width: 401px) and (max-width: 500px) {
    .hero-text h1 {
        font-size: 25px;
    }
    .promo-banner {
        top: 10%;
        font-size: 15px;
        padding: 6px;
    }
    .promo-banner h1 {
        white-space: nowrap; /* Prevents text wrapping */
    }
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* 400px */
@media (min-width: 301px) and (max-width: 400px) {
    
    
    .hero-text h1 {
        font-size: 22px;
    }
    .promo-banner {
        font-size: 13px;
        padding: 6px;
        top: 15%;
    }
    .promo-banner h1 {
        white-space: nowrap; /* Prevents text wrapping */
    }
}

/* 300px */
@media (min-width: 201px) and (max-width: 300px) {
    .hero-text h1 {
        font-size: 20px;
    }
    .promo-banner {
        top: 21%;
    }
    .promo-banner h1 {
        font-size: 12px;
        white-space: nowrap; /* Prevents text wrapping */
    }
    .dot {
        width: 6px;
        height: 6px;
    }

}

/* 200px */
@media (min-width: 101px) and (max-width: 200px) {
    .hero-text h1 {
        font-size: 17px;
    }
    .promo-banner h1 {
        font-size: 9px;
        white-space: nowrap; /* Prevents text wrapping */
    }
}

/* 100px */
@media (min-width: 1px) and (max-width: 100px) {
    .hero-text h1 {
        font-size: 15px;
    }
    .promo-banner h1 {
        font-size: 10px;
        white-space: nowrap; /* Prevents text wrapping */
    }
}




/* Full-width image */
.full-width-img {
    width: 100%; /* Ensures the image takes the full width of its container */
    height: auto; /* Maintains the aspect ratio of the image */
    display: block; /* Removes any extra space below the image */
}

.full-width-img img {
    width: 100%; /* Ensures the image fills the container */
    height: auto; /* Maintains the aspect ratio */
    object-fit: cover; /* Optional: covers the container while keeping the aspect ratio */
}

/* Initially hidden for animation */
.full-width-img img {
    opacity: 0;
    transform: translateY(20px); /* Optional: for upward movement */
}

/* Animation for the image */
.fade-in-img {
    animation: fadeInImage 3s ease-out forwards;
}

/* Fade-in animation for the image */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .full-width-img img {
        object-fit: contain; /* Ensure the full image is visible on smaller screens */
        transform: translateY(10px); /* Reduce the upward movement */
        animation: fadeInImage 2s ease-out forwards; /* Adjust animation duration */
    }

    .fade-in-img {
        animation: fadeInImage 2s ease-in-out forwards; /* Smoother animation for smaller devices */
    }
}

/* sakthi renewable energy */

/* General Styles */
.container {
    display: flex;
    flex-direction: row; /* Default layout for larger screens */
    align-items: center;
    justify-content: center;
    gap: 90px;
    padding: 20px;
}

.text-section {
    max-width: 700px;
}

.text-section h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.text-section p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 20px;
    text-align: justify;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #d1dde5;
    color: #000;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 20px;
}

.image-section img {
    width: 450px;
    height: auto;
}

/* Responsive Layout */

/* 1000px */
@media (max-width: 1000px) {
    .container {
        gap: 20px;
        flex-direction: column; /* Stack elements vertically */
    }

    .text-section h1 {
        order: 1; /* Heading comes first */
        text-align: center;
    }

    .text-section p {
        order: 2; /* Paragraph comes second */
    }

    .image-section {
        order: 3; /* Image comes third */
    }

    .text-section a {
        order: 4; /* Button comes last */
    }
}



/* 900px */
@media (max-width: 900px) {
    .text-section h1 {
        font-size: 40px;
    }

    .image-section img {
        width: 400px;
    }

    .text-section p {
        font-size: 19px;
    }
}

/* 800px */
@media (max-width: 800px) {
    .text-section h1 {
        font-size: 36px;
        text-align: center;
    }

    .image-section img {
        width: 350px;
    }

    .text-section p {
        font-size: 19px;
    }
}

/* 700px */
@media (max-width: 700px) {
    .text-section h1 {
        font-size: 32px;
    }

    .image-section img {
        width: 300px;
    }
}

/* 600px */
@media (max-width: 600px) {
    .text-section h1 {
        font-size: 30px;
    }

    .image-section img {
        width: 280px;
    }

    .text-section p {
        font-size: 19px;
    }

    .button {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* 500px */
@media (max-width: 500px) {
    .text-section h1 {
        font-size: 28px;
    }

    .image-section img {
        width: 250px;
    }

    .text-section p {
        font-size: 17px;
    }
}

/* 400px */
@media (max-width: 400px) {
    .text-section h1 {
        font-size: 26px;
    }

    .image-section img {
        width: 300px;
    }

    .button {
        font-size: 16px;
        padding: 6px 12px;
    }
}

/* 300px */
@media (max-width: 300px) {
    .text-section h1 {
        font-size: 22px;
    }

    .image-section img {
        width: 180px;
    }

    .text-section p {
        font-size: 15px;
    }
}

/* 200px */
@media (max-width: 200px) {
    .text-section h1 {
        font-size: 18px;
    }

    .image-section img {
        width: 150px;
    }

    .text-section p {
        font-size: 12px;
    }

    .button {
        font-size: 12px;
    }
}





/* How Solar works */

.solar-container {
    max-width: 1500px; /* Increased width for larger screens */
    width: 100%;
    padding: 20px;
    text-align: center;
}

.solar-container h1 {
    font-size: 42px;
    color: #4a6473;
    margin-bottom: 50px;
}

.content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 100px;
}

.image-section2 img {
    width: 500px; /* Adjusted image size */
    height: auto;
}

.para-section {
    max-width: 600px; /* Increased width for text */
    text-align: left;
}

.para-section p {
    margin-bottom: 10px;
    line-height: 2;
    font-size: 20px;
    color: #333;
}

.para-section p strong {
    font-weight: bold;
    color: #4a4a4a;
}

/* Initially hidden for animation */
.para-section h1, .para-section p, .button, .image-section img {
    opacity: 0;
    transform: translateY(20px); /* Optional: adds upward movement */
}

/* Animation for the text section */
.fade-in-text h1, .fade-in-text p, .fade-in-text .button {
    animation: fadeInText 2.5s ease-out forwards;
}

/* Animation for the image section */
.fade-in-image img {
    animation: fadeInImage 3s ease-out forwards;
}

/* Fade-in animation for the text */
@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in animation for the image */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* How It Works Section */
/* How It Works Section */
/* Initially hidden state for animation */
.solar-container h1,
.image-section img,
.para-section p {
    opacity: 0;
    transform: translateY(30px); /* Adjust for upward movement */
}

/* Slide-in effect for the heading */
.slide-in-heading {
    animation: slideIn 1s ease-out forwards;
    opacity: 1; /* Ensures final visibility */
}

/* Slide-in effect for the image */
.slide-in-image {
    animation: slideInImage 1.5s ease-out forwards;
    opacity: 1; /* Ensures final visibility */
}

/* Fade-up effect for paragraphs */
.fade-up {
    animation: fadeUp 1.2s ease forwards;
    opacity: 1 !important; /* Ensures final visibility, overrides initial opacity */
}

/* Staggered delay for each paragraph */
.fade-up:nth-child(1) { animation-delay: 0.3s; }
.fade-up:nth-child(2) { animation-delay: 0.6s; }
.fade-up:nth-child(3) { animation-delay: 0.9s; }

/* Keyframes for animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInImage {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 1000px */
@media (max-width: 1000px) {
    .content {
        flex-direction: column; /* Stack image and text vertically */
        gap: 50px; /* Reduce the gap */
    }

    .image-section img {
        width: 450px; /* Reduce image size */
    }

    .para-section {
        text-align: center; /* Center text for smaller screens */
        max-width: 90%; /* Adjust text width */
        margin: 0 auto; /* Center the text block */
    }

    .para-section p {
        font-size: 19px; /* Adjust font size */
    }

    .solar-container h1 {
        font-size: 36px; /* Adjust heading size */
    }
}

/* 900px */
@media (max-width: 900px) {
    .image-section img {
        width: 400px;
    }

    .para-section p {
        font-size: 18px;
    }

    .solar-container h1 {
        font-size: 34px;
    }
}

/* 800px */
@media (max-width: 800px) {
    .image-section img {
        width: 350px;
    }

    .para-section p {
        font-size: 17px;
    }

    .solar-container h1 {
        font-size: 32px;
    }
}

/* 700px */
@media (max-width: 700px) {
    .image-section img {
        width: 300px;
    }

    .para-section p {
        font-size: 16px;
    }

    .solar-container h1 {
        font-size: 30px;
    }
}

/* 600px */
@media (max-width: 600px) {
    .image-section img {
        width: 280px;
    }

    .para-section p {
        font-size: 16px;
    }

    .solar-container h1 {
        font-size: 28px;
    }
}

/* 500px */
@media (max-width: 500px) {
    .image-section img {
        width: 250px;
    }

    .para-section p {
        font-size: 15px;
    }

    .solar-container h1 {
        font-size: 26px;
    }
}

/* 400px */
@media (max-width: 400px) {
    .image-section img {
        width: 150px;
    }

    .para-section p {
        font-size: 14px;
    }

    .solar-container h1 {
        font-size: 24px;
    }
}

/* 300px */
@media (max-width: 300px) {
    .image-section img {
        width: 150px;
    }

    .para-section p {
        font-size: 13px;
    }

    .solar-container h1 {
        font-size: 22px;
    }
}

/* 200px */
@media (max-width: 200px) {
    .image-section img {
        width: 150px;
    }

    .para-section p {
        font-size: 12px;
    }

    .solar-container h1 {
        font-size: 20px;
    }
}

/* 100px */
@media (max-width: 100px) {
    .image-section img {
        width: 120px;
    }

    .para-section p {
        font-size: 10px;
    }

    .solar-container h1 {
        font-size: 18px;
    }
}


/* advantages  */


.advan-container {
    text-align: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-top: 40px;
}

.advan-container h1 {
    font-size: 2.5em;
    color: #4a6473; /* Dark blue-grey */
    font-weight: 700;
    margin-bottom: 40px;
}

.advantage-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Adjusted gap between items */
}

/* The advantage-item default state */
.advantage-item {
    display: flex;
    align-items: center;
    width: 42%; /* Two items per row */
    padding: 10px;
    border-radius: 8px;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly off-screen */
    transition: transform 4s ease, opacity -0.1s ease; /* Add opacity transition */
    cursor: pointer;
    margin-left: 20px;
}

/* When the item is visible, apply the animation */
.advantage-item.visible {
    opacity: 1; /* Make sure opacity is 1 when the item becomes visible */
    transform: translateY(0); /* Move to the final position */
}

/* Hover effect */
.advantage-item:hover {
    transform: translateY(-9px); /* Slightly raise the item on hover */
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start from below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

/* Icon styling */
.advantage-item img {
    width: 70px; /* Icon size */
    height: auto;
    margin-right: 15px;
}

/* Text styling */
.advantage-item h4 {
    margin: 0;
    font-size: 1.5em; /* Font size */
    color: #333;
    font-weight: 500;
}


/* 1000px */
@media (max-width: 1000px) {
    .advantage-list {
        gap: 15px; /* Reduce gap */
    }

    .advantage-item {
        width: 45%; /* Slightly smaller width */
        margin-left: 15px; /* Adjust margin */
    }

    .advantage-item img {
        width: 60px; /* Reduce icon size */
    }

    .advantage-item h4 {
        font-size: 1.3em; /* Adjust font size */
    }

    .advan-container h1 {
        font-size: 2.3em; /* Adjust heading size */
    }
}


/* Default state for larger screens (no changes needed here) */

/* 800px and below: Items stack vertically and center-align */
@media (max-width: 900px) {
    .advantage-list {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
    }

    .advantage-item {
        width: 100%; /* Full width */
        text-align: center; /* Center text */
        justify-content: center; /* Center content within */
        flex-direction: column; /* Stack icon and text vertically */
        margin-left: 0; /* Reset left margin */
    }

    .advantage-item img {
        margin-bottom: 10px; /* Add spacing below the icon */
    }
}

/* 500px and below: Center align text when it's alone */
@media (max-width: 500px) {
    .advantage-item {
        align-items: center; /* Center icon and text */
        text-align: center; /* Align text to the center */
        padding: 15px; /* Add padding for better spacing */
    }

    .advantage-item h4 {
        font-size: 1.1em; /* Slightly larger font for readability */
    }
}

/* 300px and below: Fully centered content for very small screens */
@media (max-width: 300px) {
    .advantage-item {
        flex-direction: column; /* Stack icon and text */
        align-items: center; /* Center content */
        padding: 10px; /* Adjust padding */
    }

    .advantage-item img {
        width: 30px; /* Smaller icon */
        margin-bottom: 5px;
    }

    .advantage-item h4 {
        font-size: 1em; /* Adjust text size */
    }
}


/* 200px */
@media (max-width: 200px) {
    .advantage-item img {
        width: 20px;
    }

    .advantage-item h4 {
        font-size: 0.75em;
    }

    .advan-container h1 {
        font-size: 1em;
    }
}

/* 100px */
@media (max-width: 100px) {
    .advantage-item img {
        width: 15px;
    }

    .advantage-item h4 {
        font-size: 0.7em;
    }

    .advan-container h1 {
        font-size: 0.9em;
    }
}



/* faq */

.faq-section {
    max-width: 1400px;
    margin: 50px auto;
    padding: 20px;
}


.faq-section img {
    display: block; /* Centers the image horizontally */
    margin: 0 auto 30px; /* Centers and adds space below the image */
    max-width: 250px; /* Adjusts the size of the image */
    height: auto; /* Maintains the aspect ratio */
}


.faq-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.faq-item {
    width: 48%;
}

.faq-question {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-align: left;
    background-color: white;
    border: none;
    outline: none;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d3d3d3;
    transition: background-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words if necessary */
}

.faq-answer {
    display: none;
    padding: 15px;
    font-size: 1rem;
    background-color: #f9f9f9;
}


.faq-question:hover {
    background-color: #f0f0f0;
}



.faq-answer p {
    margin: 0;
}

.faq-question.active + .faq-answer {
    display: block;
}

.faq-question:after {
    content: '\25BC'; /* Downward arrow symbol */
    font-size: 1.2rem;
}

.faq-question.active:after {
    content: '\25B2'; /* Upward arrow symbol */
}



/* 1200px and below: One item per row, centered */
@media (max-width: 1250px) {
    .faq-row {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
        flex-wrap: wrap; /* Ensures items wrap to the next line */
    }

    .faq-item {
        width: 70%; /* Centered with reduced width */
        margin-bottom: 20px; /* Add spacing between items */
    }
}

/* 1100px and below: Reduce width */
@media (max-width: 1100px) {
    .faq-item {
        width: 75%; /* Slightly smaller width */
    }

    .faq-question {
        font-size: 1.2rem; /* Adjust font size */
    }
}

/* 1000px and below: Adjust width and font size */
@media (max-width: 1000px) {
    .faq-item {
        width: 80%;
    }

    .faq-question {
        font-size: 1.1rem; /* Smaller font size */
        padding: 12px; /* Reduced padding */
    }

    .faq-answer {
        font-size: 1.1rem; /* Adjusted answer font size */
    }
}

/* 900px and below: Adjust width and font size further */
@media (max-width: 900px) {
    .faq-item {
        width: 85%;
    }

    .faq-question {
        font-size: 1.1rem;
    }
}

/* 800px and below: Maximize width and minimize font size */
@media (max-width: 800px) {
    .faq-item {
        width: 90%; /* Almost full width */
    }

    .faq-question {
        font-size: 0.85rem; /* Smaller font for compact design */
        padding: 10px;
    }

    .faq-answer {
        font-size: 0.85rem;
    }
}

/* 700px and below: Full width items with more compact design */
@media (max-width: 700px) {
    .faq-item {
        width: 95%; /* Almost full width for smaller screens */
    }

    .faq-question {
        font-size: 0.9rem; /* Adjust font size for small screens */
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .faq-question {
        font-size: 0.85rem; /* Increase readability */
        padding: 12px;
    }

    .faq-answer {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .faq-question {
        font-size: 0.9rem; /* Slightly larger font */
        padding: 10px;
    }

    .faq-answer {
        font-size: 0.8rem; /* Adjust answer font size */
    }
}

@media (max-width: 300px) {
    .faq-question {
        font-size: 0.8rem; /* Keep readable text size */
        padding: 8px;
    }

    .faq-answer {
        font-size: 0.75rem;
    }
}



/* 200px and below: Minimalistic design */
@media (max-width: 200px) {
    .faq-item {
        width: 100%;
    }

    .faq-question {
        font-size: 0.5rem;
    }

    .faq-answer {
        font-size: 0.5rem;
    }
}

/* 100px and below: Extremely compact design */
@media (max-width: 100px) {
    .faq-item {
        width: 100%;
    }

    .faq-question {
        font-size: 0.45rem;
    }

    .faq-answer {
        font-size: 0.45rem;
    }
}


/* Add a class to trigger the animation */
.about-sakthigroup.animate h1 {
    animation: slideInLeft 1s ease-in-out;
  }
  
  .about-sakthi.animate h1 {
    animation: scaleUp 1.2s ease-in-out;
  }
  
  .how-it-works.animate h1 {
    animation: slideInLeft 1s ease-in-out;
  }
  
  .advan.animate h4 {
    animation: zoomIn 0.8s ease forwards;
  }



/* Normal footer styles */
.footer {
    background-color: #5a7585;
    color: white;
    padding: 40px 0; /* Increase padding to improve spacing */
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Spread out the columns */
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    gap: 20px; /* Add space between columns */
}

/* Company Info Section */
.company-info {
    flex: 1;
    display: flex;
    align-items: center; /* Align logo and text vertically */
    gap: 15px; /* Space between logo and text */
}

.company-info .logo {
    width: 50px;
    margin-top: -22%;
}

.company-info h2 {
    font-size: 1.2em;
    margin: 0;
    color: white;
}

.company-info p {
    font-size: 0.9em;
    line-height: 1.5;
    color: whitesmoke;
    margin-top: 10px; /* More spacing between elements */
}

/* Footer Links Section */
.footer-links {
    text-align: center;
    flex: 1;
    border-left: 2px dotted white; /* Vertical dotted line between sections */
    padding-left: 20px; /* Space between the line and content */
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 8px 0; /* Adjust spacing between links */
    font-size: 0.9em;
}

/* Contact Info Section */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 10px;
    margin-left: 30px;
    border-left: 2px dotted white; /* Vertical dotted line between sections */
    padding-left: 40px; /* Space between the line and content */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-icon {
    width: 28px; /* Adjust icon size */
    height: 28px;
    margin-right: 10px;
    margin-top: 0px;
}

.contact-info p {
    font-size: 1em;
    color: white;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons img {
    width: 44px; /* Size of social icons */
    height: 44px;
    transition: transform 0.3s; /* Smooth hover effect */
}

.social-icons img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Footer Bottom */
.footer-bottom {
    background-color: #c9d8e1;
    color: black;
    display: grid;
    place-items: center;
    height: 50px;
}

.footer-bottom p {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    text-align: center;
}

/* Responsive adjustments */

/* 700px and below - Center all footer sections and adjust font sizes */
@media (max-width: 700px) {
    .footer-content {
        flex-direction: column; /* Stack sections vertically */
        align-items: center; /* Center-align the sections */
        text-align: center;
    }

    .company-info, .footer-links, .contact-info {
        flex: none;
        width: 100%; /* Each section takes full width */
        margin-bottom: 20px; /* Add spacing for each section */
        border-left: none; /* Remove border on small screens */
        padding-left: 0; /* Remove padding on small screens */
    }

    .company-info h2 {
        font-size: 1.1em; /* Slightly smaller font for smaller screens */
    }

    .company-info p {
        font-size: 0.85em; /* Adjust font size for readability */
    }

    .footer-links a {
        font-size: 0.9em; /* Adjust font size for links */
    }

    .contact-info p {
        font-size: 0.9em; /* Adjust font size for contact info */
    }
}

/* 600px and below */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-info, .footer-links, .contact-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        border-left: none;
        padding-left: 0;
    }

    .company-info h2 {
        font-size: 1em;
    }

    .footer-links a {
        font-size: 0.85em;
    }

    .contact-info p {
        font-size: 0.85em;
    }
}

/* 500px and below */
@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-info, .footer-links, .contact-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        border-left: none;
        padding-left: 0;
    }

    .company-info h2 {
        font-size: 0.95em;
    }

    .footer-links a {
        font-size: 0.85em;
    }

    .contact-info p {
        font-size: 0.85em;
    }
}

/* 400px and below */
@media (max-width: 400px) {
    .footer-bottom{
        height: 80px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-info, .footer-links, .contact-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        border-left: none;
        padding-left: 0;
    }

    .company-info h2 {
        font-size: 0.9em;
    }

    .footer-links a {
        font-size: 0.8em;
    }

    .contact-info p {
        font-size: 0.8em;
    }
}

/* 300px and below */
@media (max-width: 300px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-info, .footer-links, .contact-info {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
        border-left: none;
        padding-left: 0;
    }

    .company-info h2 {
        font-size: 0.85em;
    }

    .footer-links a {
        font-size: 0.75em;
    }

    .contact-info p {
        font-size: 0.75em;
    }
}











