*{
    padding:0px;
    margin: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 85px;
}
nav{
    background-color: #041F43;

    
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    position: sticky;
    top:0;
    z-index: 100;
}
nav a{
    text-decoration: none;
    margin: 10px;
    color:white;
    padding:5px;
    border-bottom: 2px solid transparent;
}
nav a:hover{
    border-color: goldenrod;
    color:rgb(32, 209, 218);
    

}
nav h2{
    color:white;
    margin-left: 10px;
    
}
.head{
    position: relative;
    overflow: hidden;              /* clips the rays to the section */
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;
    color: white;
    border: 3px solid goldenrod;
    background: linear-gradient(90deg, #FF9A00, #FFC20E);
}

.text{
    position: relative;
    z-index: 2;                    /* text stays above the rays */
    font-size:25px;
    text-align: center;
    color: #041F43;
}

.logo{
    position: relative;
    z-index: 1;
}

.logo img{
    position: relative;            /* logo stays above glow and rays */
    height: 100px;
    display: block;
}

/* glow centred on the logo */
.logo::before{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, #FFE36B 0, rgba(255,227,107,0) 70%);
    z-index: -1;
}

/* rays spinning around the logo's centre */
.logo::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300vmax;
    height: 300vmax;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255,255,255,.22) 0 7deg,
        transparent 7deg 18deg
    );
    transform: translate(-50%, -50%);
    animation: spin 90s linear infinite;
    z-index: -1;
}

@keyframes spin{
    from{ transform: translate(-50%, -50%) rotate(0deg) }
    to  { transform: translate(-50%, -50%) rotate(360deg) }
}

@media (prefers-reduced-motion: reduce){
    .logo::after{ animation: none }
}
.vv{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin:25px;
   
    

    border-radius: 25px;
    box-shadow: 10px 5px 25px rgb(84, 84, 84);
    
    padding: 20px;
}
.section-tag{
    background: #041F43;
    padding:6px;
    border-radius:20px ;
    color:white;
    font-size: 18px;
}
.story{
    background-color: #FFF8E7;
    padding: 20px;
    border-radius: 20px;
}
.why-section{
    background-color: #EAF4FF;
    padding: 20px;
    border-radius: 20px;

}
.story h2{
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 30px;
    color: #041F43;
}
.story span,.why-section span{
    padding: 10px;
}
.story p{
    margin-bottom:10px;
    font-size: 18px;
}
.why-section h2{
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 30px;
    color:#041F43;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.feature-card {
    padding: 25px 12px;
    text-align: center;
    border-radius: 20px;
    transition: 0.3s;
    color:#041F43;
    background-color: #E3F7E8;
    box-shadow: 0 5px 20px goldenrod;
    border: 2px solid transparent;
    
}
.feature-card p{
    color:black;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px #00000015;
    background: linear-gradient(90deg, #f7b046, #fdc620);
    border-color: rgb(81, 59, 2);
}

.feature-card h3{
    padding-bottom:10px;
    font-size: 20px;
}
.feature-card p{
    font-size: 18px;
}
.ll{
    
    margin:30px;
    background-color: white;
    border-radius: 20px;
    box-shadow:10px 5px 25px rgb(84, 84, 84);
    flex-wrap: wrap;
    height: auto;
    background-color:white;

}
.pro{
    background-color:#FFE8D6;
    border-radius: 20px;
}
.hh{
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    align-items: center;
    gap:20px;
    padding-bottom:20px;
    flex-wrap: wrap;
    height: auto;
    padding: 20px;
   
}
#eee{
    width: 100px;
}
.pro h2{
    
    font-size: 30px;
    color: #041F43;
    padding: 20px;

}
.pp img{
    width: 200px;   
    object-fit: contain;
    border-bottom:2px solid black ;
}


.pp{
    
    background-color: white;
    color:black;
    padding: 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    box-shadow: 4px 2px 20px goldenrod;
    transition: 0.3s;
    min-height: 180px;
    min-width: 210px;
    
    box-sizing: border-box;

   
    
    
}
.pp p{
    padding-top: 20px;
    font-size: 20px;
    
}
.pp:hover{
    transform: translateY(-12px);
    box-shadow: 0 10px 20px #00000015;
    background-color: #041F43;
    border-color: rgb(81, 59, 2);
    box-shadow: 10px 10px 10px goldenrod;
    color:white;
}

.con{
    margin:30px;
    background-color:#c4fbd2;
    border-radius: 20px;
    box-shadow:10px 5px 25px rgb(84, 84, 84);
    flex-wrap: wrap;
    height: auto;

}
.con h1{
    padding: 20px;
    color: #041F43;
}
.con p{
    padding: 5px;
    padding-left:20px ;
    font-size: 18px;
    color:rgb(52, 51, 51);
}
.con button{
    margin: 15px;
    padding: 12px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(90deg, #FF9A00, #FFC20E);
    transition: 0.3s;
    border: 2px solid transparent;
    animation-name: fff;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;  
}
@keyframes fff{
    
    50%{transform: scale(1.1);}
    
}
.con button:hover{
    background: linear-gradient(90deg, #E67800, #FFB300);
    transform: translateY(-8px);
    box-shadow: 2px 10px 13px goldenrod;
    border-color: rgb(81, 59, 2);
    cursor: pointer;

}
.con button:active{
    background: linear-gradient(90deg, #FF9A00, #FFC20E);
    transform: scale(1);
    border-color:  rgb(81, 59, 2);

}
.bottom{
    text-align: center;
    padding-top: 30px;
}



/* FLOATING SOAP BUBBLES */

.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubbles span {
    position: absolute;
    bottom: -60px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.4)
    );

    border: 1px solid rgba(255,255,255,0.7);

    box-shadow:
        inset -5px -5px 12px rgba(255,255,255,0.3),
        0 0 12px rgba(255,255,255,0.3);

    animation: bubbleFloat 8s linear infinite;
}

/* Different bubble positions */

.bubbles span:nth-child(1) {
    left: 5%;
    animation-duration: 7s;
}

.bubbles span:nth-child(2) {
    left: 15%;
    width: 22px;
    height: 22px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubbles span:nth-child(3) {
    left: 28%;
    width: 45px;
    height: 45px;
    animation-duration: 9s;
    animation-delay: 1s;
}

.bubbles span:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.bubbles span:nth-child(5) {
    left: 55%;
    width: 25px;
    height: 25px;
    animation-duration: 8s;
    animation-delay: 2s;
}

.bubbles span:nth-child(6) {
    left: 65%;
    width: 50px;
    height: 50px;
    animation-duration: 12s;
}

.bubbles span:nth-child(7) {
    left: 75%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.bubbles span:nth-child(8) {
    left: 85%;
    width: 30px;
    height: 30px;
    animation-duration: 7s;
    animation-delay: 1s;
}

.bubbles span:nth-child(9) {
    left: 95%;
    width: 45px;
    height: 45px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.bubbles span:nth-child(10) {
    left: 48%;
    width: 18px;
    height: 18px;
    animation-duration: 8s;
    animation-delay: 5s;
}

/* BUBBLE MOVEMENT */

@keyframes bubbleFloat {

    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-250px) translateX(25px) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-550px) translateX(-20px) scale(1.2);
        opacity: 0;
    }

}


/* FULL PAGE BUBBLE EFFECT */

.bubble-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 99;
}

.bubble-container span {
    position: absolute;
    bottom: -100px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.15) 45%,
        rgba(255,255,255,0.4)
    );

    border: 1px solid rgba(255,255,255,0.8);

    box-shadow:
        inset -5px -5px 10px rgba(255,255,255,0.3),
        0 0 12px rgba(255,255,255,0.5);

    animation: floatBubble 12s linear infinite;
}

/* Bubble positions */

.bubble-container span:nth-child(1) {
    left: 5%;
    animation-duration: 9s;
}

.bubble-container span:nth-child(2) {
    left: 15%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
}

.bubble-container span:nth-child(3) {
    left: 28%;
    width: 45px;
    height: 45px;
    animation-delay: 4s;
}

.bubble-container span:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
}

.bubble-container span:nth-child(5) {
    left: 52%;
    width: 25px;
    height: 25px;
    animation-delay: 3s;
}

.bubble-container span:nth-child(6) {
    left: 65%;
    width: 50px;
    height: 50px;
    animation-delay: 5s;
}

.bubble-container span:nth-child(7) {
    left: 75%;
    animation-delay: 2s;
}

.bubble-container span:nth-child(8) {
    left: 85%;
    width: 30px;
    height: 30px;
    animation-delay: 4s;
}

.bubble-container span:nth-child(9) {
    left: 95%;
    width: 40px;
    height: 40px;
    animation-delay: 6s;
}

.bubble-container span:nth-child(10) {
    left: 48%;
    width: 18px;
    height: 18px;
    animation-delay: 7s;
}

/* Bottom to top animation */

@keyframes floatBubble {

    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-55vh) translateX(35px) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-115vh) translateX(-25px) scale(1.2);
        opacity: 0;
    }
}


/* SCROLL REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation delays for product cards */

.pp.reveal {
    transition-delay: 0s;
}

.pp.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.pp.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.pp.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}




/* 3D TILT PRODUCT CARDS */

.pp {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Product image 3D effect */

.pp img {
    transition: transform 0.3s ease;
    transform: translateZ(20px);
}

/* Product name */

.pp p {
    transform: translateZ(30px);
}

/* Hover shadow */

.pp:hover {
    box-shadow: 10px 15px 30px rgba(0,0,0,0.3),
                0 0 15px goldenrod;
}

/* Disable tilt on touch devices */

@media (hover: none) {
    .pp {
        transform: none !important;
    }
}





/* CLICK RIPPLE EFFECT */

.ripple {
    position: fixed;

    width: 15px;
    height: 15px;

    border: 0.1px solid aqua;
    border-radius: 50%;

    background: rgba(255, 193, 7, 0.25);

    pointer-events: none;

    transform: translate(-40%, -40%) scale(0);

    animation: rippleEffect 0.7s ease-out forwards;

    z-index: 9999;
}

@keyframes rippleEffect {

    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(7);
        opacity: 0;
    }

}




@media (max-width: 768px) {


    nav {
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
}

nav h2 {
    margin-left: 0;
    font-size: 20px;
}

.xx {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

nav a {
    display: flex;
    flex-direction: column;   /* icon on top, text below */
    align-items: center;
    gap: 3px;
    margin: 0;
    padding: 4px 6px;
    font-size: 12px;
    text-align: center;
}

nav a i {
    font-size: 18px;
}

    .vv {
        grid-template-columns: minmax(0, 1fr);  /* lets the column shrink */
        margin: 10px;
        padding: 10px;
        gap: 20px;
    }

    .story, .why-section {
        min-width: 0;   /* stops content from forcing the box wider */
    }

    .features {
    grid-template-columns: 1fr;
}

    .head {
        flex-direction: column;
        
    }

    .text {
        font-size: 18px;
    }
    .ll {
        grid-template-columns: 1fr;
        margin: 10px;
        padding: 20px;
        margin-top: 20px;
    }
    .con {
        grid-template-columns: 1fr;
        margin: 10px;
        padding: 20px;
        margin-top: 20px;
    }

}