/* 
    Template Name: Clean Wave - Swimming Pool Facility Management 
    Author: Antigravity
    Description: A responsive, modern and futuristic animated Bootstrap template
*/

/* --- CSS Variables --- */
:root {
    --primary-color: #00d2ff; /* Aqua blue */
    --primary-hover: #00a8cc;
    --text-dark: #4f4f4f; /* Dark gray for paragraphs */
    --bg-white: #ffffff; /* Main section background */
    --bg-black: #000000; /* Header and Footer background */
    --text-white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    min-width: 350px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
}

p {
    color: var(--text-dark);
    line-height: 1.6;
    text-align: justify;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.clearfix {
  overflow: auto;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Buttons */
.btn-primary, .btn-aqua {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-aqua:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
}

/* --- Header / Navbar --- */
header {
    background-color: var(--bg-black);
}

.navbar {
    background-color: var(--bg-black);
    padding: 15px 0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Nav Links Centered & Styling */
.navbar-nav {
    margin: 0 auto;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--primary-color);
    color: var(--text-white) !important;
}

/* Nav Icons */
.nav-icon {
    margin-right: 6px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.15);
}

/* Mobile Nav Menu Styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-black);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-item {
        margin: 15px 0;
        width: 80%;
        text-align: center;
    }
    .nav-link {
        font-size: 20px;
        padding: 15px !important;
        border-radius: 6px;
    }
    .nav-icon {
        margin-right: 12px;
        font-size: 1.2em;
    }
    /* Hamburger Menu Icon */
    .navbar-toggler {
        border-color: var(--primary-color);
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 210, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
}

/* --- Main Section Sections --- */
.section-padding {
    padding: 80px 0;
}

.bg-white {
    background-color: var(--bg-white) !important;
}

.bg-light-gray {
    background-color: #f8f9fa !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

.carousel-item {
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 70%;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-white);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 10;
}

/* Services Cards */
.service-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.2);
    border-color: var(--primary-color);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
}

/* Team Cards */
.team-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.team-card:hover {
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.team-img-wrapper {
    overflow: hidden;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-img-wrapper img,
.team-img-wrapper img:focus,
.team-img-wrapper img:hover {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
}

.testimonial-card h5 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.testimonial-card small {
    color: #888;
}

/* Testimonial Auto Scroll Container */
.testimonial-marquee {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: #f8f9fa;
}
.testimonial-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}
.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}
.testimonial-track > div {
    flex: 0 0 350px;
    padding: 0 15px;
    box-sizing: border-box;
    white-space: normal;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}



* {
    box-sizing: border-box;
}
/* body {font-family: "Lato", sans-serif;} */

.row.justify-content-center {
  display: flex;
}

/* Style the tab */
.tab {
  float: left;
  width: 20%;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  background-color: #f1f1f1;
  padding: 0;
}

/* Style the buttons inside the tab */
.tab button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 22px 0;
  border: none;
  border-radius: 6px 0 0 6px;
  box-sizing: border-box;

  background-color: inherit;
  color: var(--bg-black);
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;

  appearance: none;
  -webkit-appearance: none;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ccc;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: var(--primary-color);
  font-weight: bold;
}

/* Style the tab content */
.tabcontent {
  width: 80%;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 6px 6px 0;
  padding: 0 12px;
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        margin: 0 auto;
    }
}

/* Desktop layout */
/* .tab-wrapper {
    display: flex;
    width: 100%;
}

.tab {
    width: 25%;
    min-width: 180px;
}

.tabcontent {
    width: 75%;
} */

/* Mobile responsiveness */
/* @media screen and (max-width: 768px) {

    .container {
        width: 90%;
        margin: 0 auto;
    }

    /* .tab-wrapper {
        flex-direction: column;
    } *

    .tab {
        width: 100%;
        height: auto;
    }

    .tab button {
        width: 100%;
        font-size: 16px;
    }

    .tabcontent {
        width: 100%;
        border-left: 1px solid #ccc;
        border-top: none;
        height: auto;
    }
} */

/* --- Footer --- */
footer {
    background-color: var(--bg-black);
    color: var(--text-white);
    padding: 60px 0 20px;
}

footer h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

footer p {
    color: #ccc;
}

footer a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 10%;
    margin-right: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a.social-fb { background-color: #1877F2; }
.social-icons a.social-wa { background-color: #25D366; }
.social-icons a.social-tg { background-color: #0088cc; }

.social-icons a:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: #aaa;
}

@media screen and (max-width: 768px) {
    .footer-bottom p {
    margin-bottom: 0;
    font-size: 0.8em;
    color: #aaa;
}
}

/* Scroll to Top Button */
#scrollBtn {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#scrollBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollBtn:hover {
    background-color: var(--bg-black);
    transform: translateY(-3px);
}

/* Mobile responsive styles */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        width: 90%;
    }
    
    .hero-section, .carousel-item {
        min-height: 500px;
        height: 70vh;
    }

    .section-padding {
        padding: 50px 0;
    }

    #scrollBtn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .service-card img {
        height: 180px;
    }

    footer {
        padding: 40px 0 20px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section, .carousel-item {
        min-height: 400px;
        height: 60vh;
    }

    .section-padding {
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 20px;
        margin: 10px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
