/* ================================================
   PIPE INSTALLATION ANIMATION - STYLES
   Premium, Apple-quality aesthetic
   ================================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================================
   PAGE LOADER
   ================================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loader-logo {
    height: 80px;
    width: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #ff2a2a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

html {
    scroll-behavior: smooth;
    
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: relative;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 15px 0;
}

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff2a2a;
}

.nav-quote-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: #ff2a2a;
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-quote-btn:hover {
    background: #e02020;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav dropdown */
.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999999999999999999999999;
}

.nav-links.active li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.nav-links.active li:last-child {
    border-bottom: none;
}

.nav-links.active li a {
    font-size: 18px;
}

/* Make nav-container position relative for dropdown */
.nav-container {
    position: relative;
}

/* ================================================
   SMART DRAIN BANNER
   ================================================ */
.smart-drain-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.banner{
    width: 100%;
}

.mobilebanner{
       width: 100%;
       display: none;
}

.banner-content{
    position: relative;
    width: 80%;
    max-width: 1800px;
}



.intro {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 40px;
}

.smart-drain-banner h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    color: white;
}



.tagline {
    color: #ffffff;
    font-weight: 400;
    font-size: 40px;
}

.india-btn {
    bottom: 0;
    left: 0;
    position: absolute;
    margin-top: 30px;
    padding: 48px 38px;
    border-radius: 62px;
    background: #111;
    color: white;
    border: none;
    font-size: 45px;
    cursor: pointer;
}

.india-btn span {
    background: linear-gradient(180deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.banner-text{
    position: absolute;
    top: 15%;
    left: 80px;
    color: white;
}

/* ================================================
   AVAILABLE COLORS SECTION
   ================================================ */
.color-section {
    display: flex;
    justify-content: center;
    background: white;
    margin: 100px 0;
}

.color-container {
    display: flex;
    align-items: center;
    gap: 80px;
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
}

.color-text{
    width: 50%;
}

.color-image{
    width: 50%;
}

.color-image img{
    width: 100%;
}


.small-title {
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.color-text h2 {
    font-size: 55px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.color-text p {
    color: #555;
    font-size: 30px;
    margin-bottom: 20px;
}

.quote-btn {
    font-size: 20px;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    background: #ff2a2a;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.product-list-btn {
    font-size: 20px;
    padding: 14px 30px;
    border-radius: 8px;
    border: 2px solid #ff2a2a;
    background: transparent;
    color: #ff2a2a;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

.product-list-btn:hover {
    background: #ff2a2a;
    color: white;
}

.color-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.color-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.color-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.color-thumb.active {
    opacity: 1;
    border-color: #ff2a2a;
    box-shadow: 0 2px 10px rgba(255, 42, 42, 0.3);
}

/* Hide mobile thumbnails on desktop */
.mobile-thumbnails {
    display: none;
}

/* ================================================
   PIPE ANIMATION SECTION
   ================================================ */
.pipe-section {
    min-height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient gradient */
.pipe-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(30, 30, 40, 0.4) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Pipe Container */
.pipe-container {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 2752 / 1536;
}

/* Sequence Canvas */
#sequence-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* ================================================
   FEATURES SECTION
   ================================================ */
.features-section {
    background: #f8f8f8;
    padding: 100px 0;
}

.features-container {
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #fff0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: #ff2a2a;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
    background: white;
    padding: 100px 0;
}

.about-container {
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 48px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-desc {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ff2a2a;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.about-video {
    flex: 1;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

.video-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-dot.active {
    background: #ff2a2a;
    transform: scale(1.2);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    background: #111;
    padding: 100px 0;
}

.contact-container {
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
}

.contact-info {
    flex: 1;
}

.contact-info .small-title {
    color: #ff2a2a;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 18px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: #ff2a2a;
}

.contact-item span {
    font-size: 18px;
    color: white;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #1a1a1a;
    color: white;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff2a2a;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    background: #ff2a2a;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: #e02020;
    transform: translateY(-2px);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #000;
    padding: 80px 0 0;
}

.footer-container {
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #222;
}

.footer-brand p {
    color: #888;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 20px;
}

.footer-logo {
    height: 50px;
    
}

.footer-links h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff2a2a;
}

.footer-bottom {
    width: 80%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 14px;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

/* Large tablets / Small desktops (1201px - 1800px) */
@media (min-width: 1601px) and (max-width: 1801px){

    /* body{
        background-color: #138808;
    } */

    .banner-content{
        position: relative;
        width: 100%;
        max-width: 1500px;
}

    .india-btn {
        font-size: 35px;
        padding: 47px 56px;
    }

}


@media (min-width: 1300px) and (max-width: 1600px){

    /* body{
        background-color: #138808;
    } */

    .banner-content{
        position: relative;
        width: 100%;
        max-width: 1250px;
}

    .india-btn {
        font-size: 27px;
        padding: 42px 56px;
        border-radius: 48px;
    }

}

@media (min-width: 1000px) and (max-width: 1299px){

    .banner-content{
        position: relative;
        width: 100%;
        max-width: 950px;
}

    .india-btn {
        font-size: 25px;
        padding: 30px 24px;
        border-radius: 34px;
    }

    .smart-drain-banner h1 {
    font-size: 39px;
}

    .color-text h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-info h2 {
    font-size: 40px;
}

.color-container{
    flex-direction: column;
}

.about-container{
    flex-direction: column;
}
}
    


@media (min-width: 800px) and (max-width: 999px){
         .banner-content{
        position: relative;
        width: 100%;
        max-width: 750px;
}

        .india-btn {
        font-size: 18px;
        padding: 24px 24px;
        border-radius: 25px;
    }

    .smart-drain-banner h1 {
    font-size: 30px;
}

.tagline {
        font-size: 20px;
    }

    .intro {
        font-size: 15px;
    }

    .color-text h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.color-container{
    width: 100%;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-info h2 {
    font-size: 40px;
}

.color-container{
    flex-direction: column;
}

.about-container{
    flex-direction: column;
}

}


@media (min-width: 600px) and (max-width: 799px){

      .banner-content{
        position: relative;
        width: 100%;
        max-width: 600px;
}

    .india-btn {
        font-size: 15px;
        padding: 20px 20px;
        border-radius: 40px;
    }

    .banner{
        display: none;
    }

        .india-btn {
        font-size: 14px;
        padding: 30px 20px;
        border-radius: 23px;
    }

    .mobilebanner{
        display: block;
    }


        /* .india-btn {
        font-size: 18px;
        padding: 24px 24px;
        border-radius: 25px;
    } */

    .smart-drain-banner h1 {
    font-size: 30px;
}

.tagline {
        font-size: 20px;
    }

    .intro {
        font-size: 15px;
    }

    .color-text h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.color-container{
    width: 100%;
}

.about-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-info h2 {
    font-size: 40px;
}

.color-container{
    flex-direction: column;
}

.about-container{
    flex-direction: column;
}

}









@media (min-width: 901px) and (max-width: 1200px) {
    

    

    .banner-text {
        left: 40px;
    }



   

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets landscape (601px - 900px) */
@media (min-width: 601px) and (max-width: 900px) {
    .nav-container {
        width: 90%;
    }

     .pipe-container {
        height: 80vh;
    }

    #sequence-canvas {
        object-fit: cover;
    }

    .nav-links {
        display: none;
    }

    .nav-quote-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }


    .banner-text {
        left: 20px;
        top: 10%;
    }

    .intro {
        font-size: 20px;
    }

    .smart-drain-banner h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 20px;
    }

    /* .india-btn {
        font-size: 24px;
        padding: 25px 20px;
        border-radius: 40px;
    } */

    .color-container {
        flex-direction: column;
        text-align: center;
        width: 90%;
        gap: 40px;
    }

    .color-text,
    .color-image {
        width: 100%;
    }

    .color-text h2 {
        font-size: 32px;
    }

    .color-section {
        margin: 60px 0;
    }

    /* Show thumbnails beside main image on tablet */
    .color-text .color-thumbnails {
        display: none;
    }

    .color-image {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .color-image > img {
        order: 2;
        width: 80%;
    }

    .mobile-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 8px;
        order: 1;
        flex-shrink: 0;
    }

    .mobile-thumbnails .color-thumb {
        width: 45px;
        height: 45px;
    }

    .features-container {
        width: 90%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-header h2 {
        font-size: 36px;
    }

    .about-container {
        flex-direction: column;
        width: 90%;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .about-video {
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
        width: 90%;
    }

    .contact-info h2 {
        font-size: 36px;
    }

    .footer-container {
        width: 90%;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom {
        width: 90%;
    }
}

/* Mobile (0px - 600px) */
@media (max-width: 600px) {
    .nav-container {
        width: 90%;
    }

    .nav-links {
        display: none;
    }

    .nav-quote-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo img {
        height: 45px;
    }

    .banner-content {
        width: 90%;
    }

    .banner-text {
        left: 15px;
        top: 8%;
    }

    .intro {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .banner {
        display: none;
    }

    .mobilebanner {
        display: block;
    }

    .smart-drain-banner h1 {
        font-size: 27px;
        margin-bottom: 10px;
    }

    .tagline {
        font-size: 11px;
    }

    .india-btn {
        font-size: 9px;
        padding: 15px 6px;
        border-radius: 12px;
    }

    .color-container {
        flex-direction: column;
        text-align: center;
        width: 90%;
        gap: 40px;
    }

    .color-text,
    .color-image {
        width: 100%;
    }

    .color-section {
        margin: 30px 0;
    }

    .color-text h2 {
        font-size: 26px;
    }

    .color-text p {
        font-size: 16px;
    }

    .quote-btn,
    .product-list-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .product-list-btn {
        margin-left: 10px;
    }

    /* Show thumbnails beside main image on mobile */
    .color-text .color-thumbnails {
        display: none;
    }

    .color-image {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .color-image > img {
        order: 2;
        width: 80%;
    }

    .mobile-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 5px;
        order: 1;
        flex-shrink: 0;
    }

    .mobile-thumbnails .color-thumb {
        width: 35px;
        height: 35px;
    }

    .features-container {
        width: 90%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-header h2 {
        font-size: 28px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .features-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }

    .pipe-container {
        height: 80vh;
    }

    #sequence-canvas {
        object-fit: cover;
    }

    .about-container {
        flex-direction: column;
        width: 90%;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-desc {
        font-size: 16px;
    }

    .about-video {
        width: 100%;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 25px;
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-container {
        flex-direction: column;
        width: 90%;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-desc {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-container {
        width: 90%;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand {
        order: -1;
    }

    .footer-bottom {
        width: 90%;
    }

    .video-progress {
        bottom: 10px;
    }

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