/* 
theme.css -
provide unique feature for main.html
have been connect with "./main.html"
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    background: linear-gradient(
        180deg,
        #b3e5fc 0%,
        #ffffff 35%,
        #ffffff 65%,
        #b3e5fc 100%
    );
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: #1a3a4b;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #9ccde4 0%,
        #cae1ed 12%,
        transparent 28%,
        transparent 72%,
        #cae1ed 88%,
        #9ccde4 100%
    );
    pointer-events: none;
    z-index: 0;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #b3e5fc 0%,
        #ffffff 35%,
        #ffffff 65%,
        #b3e5fc 100%
    );     
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
    opacity: 1;
    visibility: visible;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    position: fixed;  
    width: 200px;
    height: auto;
    z-index: 10000;
}

#bottom-logo {
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.loading-text {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    color: #7a8c96;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    z-index: 10001;
    transition: opacity 0.6s ease;
}

.loading-subtext {
    position: fixed;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    color: #7a8c96;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    font-weight: 400;
    z-index: 10001;
    transition: opacity 0.6s ease;
    text-align: center;
    line-height: 1.4;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader.fade-out .loading-text {
    opacity: 0;
}

.navbar {
    position: relative;
    width: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
    transform: translateY(-100%);
    transition: transform 0.6s ease;
}

.navbar.show {
    transform: translateY(0);
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container a {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: #1e3b47;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.nav-container a:hover {
    background: rgba(11, 79, 108, 0.08);
    color: #0b4f6c;
}

.nav-container a.active {
    color: #0b4f6c;
    font-weight: 600;
    border-bottom: 2px solid #0b4f6c;
}

.hero {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 350px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 300px;
}

.glass-card {
    position: fixed;
    left: 0;
    width: 350px;
    height: 200px;
    border-radius: 22px;
    background: url("images/waterdrop.png") center/cover no-repeat;
    background-color: rgba(255, 255, 255, 0.7);
    background-blend-mode: overlay;
    box-shadow: 
        0 12px 24px rgba(11, 79, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:first-of-type {
    top: 100px;
}

.card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b4f6c;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
    letter-spacing: -0.01rem;
    text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.card-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #1e3b47;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.01em;
    text-shadow: 0 0 4px rgba(255,255,255,0.5);
}

.glass-card-image {
    background: url("images/Lightning.png") center/cover no-repeat;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: overlay;
    top: 620px;
}

.glass-card-eco {
    background: url("images/EcoFriendly.png") center/cover no-repeat;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: overlay;
    top: 360px;
}

.glass-card:hover {
    transform: scale(1.03);
    box-shadow: 
        0 16px 30px rgba(11, 79, 108, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.7),
        inset 0 -2px 6px rgba(0, 0, 0, 0.08);
}

.waterdrop-deco {
    position: absolute;
    width: 180px;
    height: auto;
    filter: blur(6px);
    opacity: 0.35;
    pointer-events: none;
    transform: scale(1.4) translateX(10px);
    z-index: 0;
}

.hero-text-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 2rem 1rem;
}

/* .interlace-container {
    position: relative;
    width : 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interlace-img-under {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
    opacity: 0.45;
    filter: drop-shadow(0 0 20px rgba(11, 79, 108, 0.15));
}

.interlace-text {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin: 0 1rem;
} */

/* .interlace-text */ .main-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.75rem 9;
    color: #0b4f6c;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.95),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(11, 79, 108, 0.4),
}

/* .interlace-text */ .tagline {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-top: 0.75rem;
    color: #1e3b47;
    text-shadow:
        0 0 12px rgba (255, 255, 255, 0.9), 
        0 0 24px rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.learn-more-btn {
    display: inline-block;
    margin-top: 4rem;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-decoration: none;
    color: #064f6c;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(11, 79, 108, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
}

.learn-more-btn:hover {
    background: rgba(11, 79, 108, 0.1);
    border-color: #064f6c;
    color: #064f6c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 79, 108, 0.08);
}

.hero-image {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-items: center;
}

.product-hero {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(11, 79, 108, 0.2));
    transition: transform 0.3s ease;
}

.product-hero:hover {
    transform: scale(1.02);
}

.bottom-section {
    width: 100%;
    max-width: 800px;
    padding: 1rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.company-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.company-logo:hover {
    opacity: 1;
}

.company-name {
    font-size: 0.95rem;
    color: #2c4b5c;
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: 700;
}

.footer-note {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    color: #7a8c96;
    z-index: 3;
    line-height: 1.4;
    max-width: 320px;
    pointer-events: none;
}

.intro-label {
    position: absolute;
    top: 6rem;             
    left: -450px;        
    color: #0b4f6c;
    font-size: 2.2rem;   
    font-weight: 600;
    text-transform: uppercase; 
    white-space: nowrap;
    z-index: 6;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.glass-card,
.glass-card-eco,
.glass-card-image {
    transition: left 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text {
        min-height: auto;
        text-align: center;
    }

    .hero-text-content {
        text-align: center;
        padding: 1rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .product-hero {
        max-width: 280px;
    }

    .glass-card {
        left: 0px;
        width: 240px;
        height: 180px;
    }

    .glass-card:first-of-type {
        top: 80px;
    }

    .glass-card-image {
        top: 520px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-text {
        font-size: 0.75rem;
    }

    .nav-container a {
        font-size: 0.85rem;
        padding: 0.75rem 0.3rem;
    }

    .company-logo {
        max-width: 90px;
    }

    .company-name {
        font-size: 0.8rem;
    }

    .footer-note {
        font-size: 0.65rem;
        max-width: 240px;
    }

    .glass-card-eco {
        top: 300px;
    }

     .intro-label {
        left: -180px;
        top: 2.2rem;
        font-size: 1.6rem;
    }
}

.skip-intro #preloader {
    display: none !important;
}

.main-title,
.tagline,
.learn-more-btn,
.product-hero,
.footer-note {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-title.show,
.tagline.show,
.learn-more-btn.show,
.product-hero.show,
.footer-note.show {
    opacity: 1;
}

.interlace-img-over,
.interlace-container,
.interlace-img-under,
.interlace-text {
    display: none;
}