* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
    
}

.header {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
}

/* Social icons styling - removed dots */
.iconss {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.iconss a {
    color: white;
    text-decoration: none;
}

.iconss i {
    font-size: 28px;
    transition: color 0.3s ease;
}

.iconss i:hover {
    color: #f44336;
}

nav {
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

nav img {
    width: 200px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: '';
    width: 0;
    height: 5px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .slideshow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .slideshow-background img {
    transform: scale(1.099);
    filter: brightness(30%);
}


  .bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
  .bg-slide.active {
    opacity: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    top: 50%;
    transform: translateY(-50%);
  }
  
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
}

/* Mobile video specific adjustments */
.mobile-video {
    display: none;
}

/* Desktop video by default */
.desktop-video {
    display: block;
}

/* Media query for mobile devices */
@media (max-width: 700px) {
    /* Hide desktop video on mobile */
    .desktop-video {
        display: none;
    }
    
    /* Show and properly fit mobile video on mobile */
    .mobile-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover; /* This ensures the video covers the entire container */
        position: absolute;
        top: 0;
        left: -140px;
    }
    
    /* Ensure the header has sufficient height on mobile */
    .header {
        min-height: 100vh;
        height: 100vh; /* Force full viewport height */
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7));
    z-index: -1;
}

.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 18px;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 18px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 0.5s;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
}

nav i.fa {
    display: none;
}

/* --------decoration--------- */

.decoration{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}

h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 18px;
    font-weight: 300;
    line-height: 22px;
    padding: 16px;
}

.row{
    margin: 5%;
    display: flex;
    justify-content: space-between;
}

.decoration-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
}

h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.decoration-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* Work section */
.work {
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.work-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.work-col img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    border-radius: 10px;
}

.layer:hover {
    background: rgba(226, 0, 0, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* Facilities section */
.facilities {
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 80px;
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.facilities-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.facilities-col video.facility-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    pointer-events: none;
}

.facilities-col p {
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 10px;
    font-size: 20px;
    color: #222;
}

/* Testimonials section */
.testimonials {
    width: 90%;
    margin: auto;
    padding-top: 80px;
    text-align: center;
}

.testimonial-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
    transition: 0.3s;
}

.testimonial-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.testimonial-col img {
    height: 80px;
    width: 80px;
    margin-right: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-col p {
    padding: 0;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}

.testimonial-col .fa {
    color: #f44336;
}

/* Call to action section */
.cta {
    margin: 100px auto;
    width: 90%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(contact.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}

/* Contact section */
:root {
    --primary-color: #0ef;
    --text-color: #fff;
    --bg-color: #1f242d;
    --secondary-bg: #323946;
}

.contact {
    padding: 4rem 7% 2rem;
    background: var(--bg-color);
    min-height: 600px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact .heading {
    font-size: 2.6rem;
    text-align: center;
    margin-top: 10px;
    color: var(--text-color);
}

.contact .heading span {
    color: var(--primary-color);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.contact form {
    max-width: 880px;
    margin: 0 auto 3rem;
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-field {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: left;
}

.input-box .input-field {
    width: 49%;
}

.input-field label {
    display: block;
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact form .input-field input,
.contact form .input-field textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.contact form .input-field input:focus,
.contact form .input-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0.8rem rgba(14, 255, 255, 0.3);
    outline: none;
}

.contact form .input-field textarea {
    resize: none;
    min-height: 120px;
}

.textarea-field {
    width: 100%;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #00c8d7;
    transform: translateY(-3px);
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    margin-right: 1rem;
}

.btn-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Footer section */
.footer {
    top: -20px;
    width: 100%;
    text-align: center;
    padding:  10px;
    background: #f8f8f8;
    
}

.footer h4 {
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 600;
    font-size: 34px;
}

.footer p {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 5px;
    padding-bottom: 10px;
    color: rgb(224, 102, 102);
}

/* Footer icons - fixed spacing */
.icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
}

.icons a {
    text-decoration: none;
}

.icons a i {
    color: #f44336;
    font-size: 22px;
    transition: color 0.3s;
}

.icons a i:hover {
    color: #333;
}

.footer-text {
    margin-top: 0;
    color: #555;
}

/* Gallery styles - improved for better responsiveness */
.gallery {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 50px;
}

.gallery-container {
    position: relative;
    margin: auto;
    max-width: 100%;
}

.gallery-slide {
    display: none;
    width: 100%;
}

.gallery-slide img {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    display: block;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    transition: 1s ease;
    border-radius: 8px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.prev { left: 10px; }

.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dots indicator */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Tablet and below (up to 1024px) */
@media (max-width: 1024px) {
    .text-box h1 {
        font-size: 52px;
    }

    .gallery-slide img {
        max-width: 700px;
    }
}

/* Medium devices (up to 768px) */
@media (max-width: 768px) {
    .text-box h1 {
        font-size: 42px;
    }

    .row {
        flex-direction: column;
    }

    .decoration-col,
    .work-col,
    .facilities-col,
    .testimonial-col {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .contact {
        padding: 4rem 5% 2rem;
    }

    .input-box .input-field {
        width: 100%;
    }

    .gallery-slide img {
        max-width: 400px;
        height: 260px;
    }

    .icons,
    .iconss {
        gap: 15px;
    }

    .work-col img {
        height: 250px;
    }

    .text-box p {
        font-size: 24px;
        font-weight: bold;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 999;
        transition: 0.5s;
    }

    nav i.fa {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px 0 0 20px;
    }

    .nav-links ul li a {
        font-size: 16px;
    }

    .cta h1 {
        font-size: 24px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .prev,
    .next {
        padding: 8px;
        font-size: 14px;
    }

    .dot {
        height: 8px;
        width: 8px;
    }

    nav img {
        width: 140px;
    }
}

/* Small devices (phones - up to 480px) */
@media (max-width: 480px) {
    .text-box h1 {
        font-size: 28px;
    }

    .footer h4 {
        font-size: 26px;
    }

    .contact .heading {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1.2rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    .iconss {
        gap: 15px;
    }

    .iconss i {
        font-size: 24px;
    }

    .text-box p {
        font-size: 18px;
    }

    .gallery-slide img {
        max-width: 100%;
        height: auto;
    }

    .nav-links {
        width: 180px;
    }

    .nav-links ul li a {
        font-size: 14px;
    }

    .hero-btn {
        font-size: 14px;
    }
}
