/* ==========================================
   DIGITAL JAPA MALA
   STYLE.CSS
==========================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:linear-gradient(135deg,#e99211,#b37d6b,#dbc681);
    
    min-height:100vh;

    overflow-x:hidden;

    color:#3d2200;

    position:relative;

}

/* Background */

.background-overlay{

    position:fixed;

    inset:0;

    background:
    radial-gradient(circle at top,#fff8e8 0%,transparent 60%),
    radial-gradient(circle at bottom,#ffd9a0 0%,transparent 70%);

    opacity:.35;

    z-index:-1;

}

/* ==========================================
   CONTAINER
==========================================*/

.container{

    width:min(1100px,95%);

    margin:25px auto;

    padding:30px;

    background:rgba(255,255,255,.25);

    backdrop-filter:blur(12px);

    border-radius:28px;

    box-shadow:
    0 15px 40px rgba(0,0,0,.15);

}

/* ==========================================
   HEADER
==========================================*/

header{

    text-align:center;

    margin-bottom:35px;

}

header h1{

    font-family:'Cinzel',serif;

    font-size:48px;

    color:linear-gradient(135deg,#26a69a,#00796b);

    letter-spacing:2px;

}

header h2{

    margin-top:10px;

    font-size:24px;

    color:#5d3700;

    font-weight:500;

}

.divider{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin:18px 0;

}

.divider span{

    width:80px;

    height:2px;

    background:#d39c32;

}

/* ==========================================
   MALA SECTION
==========================================*/

.mala-section{

    display:flex;

    justify-content:center;

    align-items:center;

    margin:25px 0 40px;

}

.mala-container{

    position:relative;

    width:520px;

    height:520px;

    display:flex;

    justify-content:center;

    align-items:center;

}

#mala{

    position:absolute;

    width:100%;

    height:100%;

}

#mala::before{

    content:"";

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    width:420px;

    height:420px;

    border-radius:50%;

    border:3px dashed rgba(138,95,30,.20);

}

/* ==========================================
   BEADS
==========================================*/

.bead{

    position:absolute;

    width:18px;

    height:18px;

    border-radius:50%;

    background:#8b5a2b;

    box-shadow:
    inset 0 2px 4px rgba(255,255,255,.4),
    0 3px 6px rgba(0,0,0,.25);

    transform-origin:center center;

    transition:.25s;

}

.bead.active{

    background:#ff9800;

    transform:scale(1.35);

    box-shadow:
    0 0 12px orange,
    0 0 25px gold;

}

.bead.guru{

    width:28px;

    height:28px;

    background:#d32f2f;

}

/* ==========================================
   COUNTER
==========================================*/

.counter-box{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    width:240px;

    height:240px;

    border-radius:50%;

    background: linear-gradient(#fffef9,#fbecc6);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    box-shadow:
    0 10px 30px rgba(0,0,0,.20);

    padding:18px;

}

.counter-box h3{

    font-size:18px;

    color:#7b3f00;

    margin-bottom:8px;

    letter-spacing:1px;

}

.counter-box h1{

    font-size:70px;

    line-height:1;

    color:#e65100;

    font-weight:700;

}

.counter-box p{

    margin-top:6px;

    font-size:28px;

    color:#5d3700;

}

.small-divider{

    display:flex;

    align-items:center;

    gap:10px;

    margin:12px 0;

}

.small-divider span{

    width:35px;

    height:2px;

    background:#c6922d;

}

.counter-box h4{

    font-size:15px;

    color:#6d4c41;

    font-weight:500;

}
/* ==========================================
   BUTTONS
==========================================*/

.button-area{

    display:grid;
    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin:40px 0;

}

.button-area button{

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:22px;

    padding:18px;

    background:linear-gradient(135deg,#ff9800,#ff5722);

    color:#fff;

    font-size:42px;

    font-weight:600;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:10px;

    transition:.3s;

    box-shadow:0 10px 20px rgba(0,0,0,.20);

}

.button-area button span{

    font-size:15px;

    letter-spacing:1px;

}

.button-area button:hover{

    transform:translateY(-5px);

    box-shadow:0 15px 30px rgba(0,0,0,.30);

}

.button-area button:active{

    transform:scale(.95);

}

/* Individual Button Colors */

#countBtn{

    background:linear-gradient(135deg,#ec9914da,#f38a11);

}

#resetBtn{

    background:linear-gradient(135deg,#795548,#4e342e);

}

#clearBtn{

    background:linear-gradient(135deg,#b71c1c,#7f0000);

}

#musicBtn{

    background:linear-gradient(135deg,#26a69a,#00796b);

}

/* ==========================================
   STATISTICS
==========================================*/

.stats{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

    margin-top:20px;

}

.card{

    background:rgba(255,255,255,.85);

    border-radius:25px;

    padding:30px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.card h3{

    color:#7b3f00;

    font-size:20px;

    margin-bottom:12px;

}

.card h1{

    font-size:52px;

    color:#ff6f00;

}

/* ==========================================
   MANTRA
==========================================*/

.mantra{

    margin-top:40px;

}

.quote{

    background:rgba(255,255,255,.88);

    border-radius:25px;

    padding:35px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.quote span{

    display:block;

    font-size:60px;

    color:#ff9800;

    margin-bottom:10px;

}

.quote p{

    font-size:22px;

    line-height:2;

    color:#5d3700;

    font-weight:500;

}

/* ==========================================
   FOOTER
==========================================*/

footer{

    margin-top:35px;

    text-align:center;

    color:#6d4c41;

    font-size:16px;

    font-weight:500;

}

/* ==========================================
   POPUP
==========================================*/

.popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.60);

    display:flex;

    justify-content:center;

    align-items:center;

    visibility:hidden;

    opacity:0;

    transition:.3s;

    z-index:999;

}

.popup.show{

    visibility:visible;

    opacity:1;

}

.popup-content{

    width:90%;

    max-width:420px;

    background:#fff;

    border-radius:25px;

    padding:35px;

    text-align:center;

    animation:popupScale .4s ease;

}

.popup-content h2{

    color:#ff6f00;

    margin-bottom:20px;

}

.popup-content p{

    font-size:18px;

    line-height:1.8;

    color:#5d3700;

}

.popup-content button{

    margin-top:25px;

    border:none;

    cursor:pointer;

    border-radius:15px;

    padding:15px 35px;

    font-size:18px;

    color:#fff;

    background:linear-gradient(135deg,#ff9800,#ff5722);

}

@keyframes popupScale{

    from{

        transform:scale(.7);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

/* ==========================================
   LOTUS RAIN
==========================================*/

.lotus{

    position:fixed;

    top:-50px;

    font-size:32px;

    pointer-events:none;

    z-index:1000;

    animation:fall linear forwards;

}

@keyframes fall{

    from{

        transform:translateY(-50px) rotate(0deg);

        opacity:1;

    }

    to{

        transform:translateY(110vh) rotate(360deg);

        opacity:0;

    }

}

/* ==========================================
   FLOAT ANIMATION
==========================================*/

.counter-box{

    animation:float 4s ease-in-out infinite;

}

@keyframes float{

    0%{

        transform:translate(-50%,-50%);

    }

    50%{

        transform:translate(-50%,-53%);

    }

    100%{

        transform:translate(-50%,-50%);

    }

}
/* ==========================================
   RESPONSIVE DESIGN
==========================================*/

/* ===========================
   TABLET
=========================== */

@media (max-width:992px){

.container{

    width:96%;
    padding:20px;

}

header h1{

    font-size:38px;

}

header h2{

    font-size:20px;

}

.mala-container{

    width:420px;
    height:420px;

}

#mala::before{

    width:340px;
    height:340px;

}

.counter-box{

    width:190px;
    height:190px;

}

.counter-box h1{

    font-size:56px;

}

.counter-box p{

    font-size:22px;

}

.button-area{

    grid-template-columns:repeat(2,1fr);

}

.button-area button{

    font-size:34px;

}

}


/* ===========================
   MOBILE
=========================== */

@media (max-width:768px){

.container{

    width:100%;
    margin:0;
    border-radius:0;
    padding:15px;

}

header{

    margin-bottom:20px;

}

header h1{

    font-size:32px;

}

header h2{

    font-size:18px;

}

.divider span{

    width:45px;

}

.mala-container{

    width:320px;
    height:320px;

}

#mala::before{

    width:255px;
    height:255px;

}

.bead{

    width:16px;
    height:16px;

}

.bead.guru{

    width:24px;
    height:24px;

}

.counter-box{

    width:165px;
    height:165px;

}

.counter-box h3{

    font-size:13px;
    margin-bottom:5px;

}

.counter-box h1{

    font-size:42px;

}

.counter-box p{

    font-size:18px;

}

.counter-box h4{

    font-size:11px;

}

.small-divider{

    margin:8px 0;

}

.small-divider span{

    width:25px;

}

.button-area{

    grid-template-columns:repeat(2,1fr);

    gap:12px;

}

.button-area button{

    font-size:28px;

    padding:14px;

}

.button-area button span{

    font-size:12px;

}

.stats{

    grid-template-columns:1fr;

    gap:15px;

}

.card{

    padding:20px;

}

.card h3{

    font-size:16px;

}

.card h1{

    font-size:40px;

}

.quote{

    padding:20px;

}

.quote span{

    font-size:45px;

}

.quote p{

    font-size:17px;
    line-height:1.8;

}

footer{

    font-size:13px;
    padding-bottom:20px;

}

.popup-content{

    width:92%;
    padding:25px;

}

.popup-content h2{

    font-size:26px;

}

.popup-content p{

    font-size:16px;

}

}


/* ===========================
   SMALL PHONES
=========================== */

@media (max-width:480px){

header h1{

    font-size:28px;

}

header h2{

    font-size:16px;

}

.mala-container{

    width:280px;
    height:280px;

}

#mala::before{

    width:220px;
    height:220px;

}

.bead{

    width:14px;
    height:14px;

}

.bead.guru{

    width:22px;
    height:22px;

}

.counter-box{

    width:145px;
    height:145px;

}

.counter-box h3{

    font-size:12px;

}

.counter-box h1{

    font-size:36px;

}

.counter-box p{

    font-size:16px;

}

.counter-box h4{

    font-size:10px;

}

.button-area{

    grid-template-columns:1fr 1fr;

}

.button-area button{

    font-size:24px;

    padding:12px;

}

.button-area button span{

    font-size:11px;

}

.card h1{

    font-size:34px;

}

.quote p{

    font-size:15px;

}

}


/* ===========================
   LARGE DESKTOP
=========================== */

@media (min-width:1400px){

.container{

    max-width:1200px;

}

.mala-container{

    width:580px;
    height:580px;

}

#mala::before{

    width:470px;
    height:470px;

}

.counter-box{

    width:260px;
    height:260px;

}

.counter-box h1{

    font-size:80px;

}

.button-area button{

    font-size:48px;

}

}
