/* ==========================================
   CIPHERVERSE - CIPHER LAB CSS (PART 1)
========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#081420;
    color:#fff;
    overflow-x:hidden;
}

/*======================
 NAVBAR
=======================*/

header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    position:sticky;
    top:0;
    background:rgba(10,20,35,.9);
    backdrop-filter:blur(10px);
    z-index:1000;
    box-shadow:0 2px 15px rgba(0,0,0,.3);
}

.logo{
    font-size:30px;
    font-weight:700;
    color:#38bdf8;
}

nav{
    display:flex;
    gap:25px;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

nav a:hover,
nav a.active{
    color:#38bdf8;
}

/*======================
 HERO
=======================*/

.hero{
    min-height:90vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:60px 10%;
    background:linear-gradient(135deg,#081420,#102a43,#0f172a);
}

.hero-content{
    max-width:850px;
}

.hero h1{
    font-size:60px;
    margin-bottom:20px;
    color:#38bdf8;
}

.hero p{
    font-size:20px;
    color:#d1d5db;
    line-height:1.8;
    margin-bottom:35px;
}

.btn{
    display:inline-block;
    padding:15px 35px;
    border-radius:40px;
    text-decoration:none;
    color:white;
    background:#38bdf8;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#0ea5e9;
    transform:translateY(-5px);
}

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

section{
    padding:70px 8%;
}

section h2{
    text-align:center;
    font-size:38px;
    margin-bottom:25px;
    color:#38bdf8;
}

.section-text{
    text-align:center;
    color:#cbd5e1;
    max-width:800px;
    margin:auto;
    margin-bottom:40px;
}

/*======================
 CARDS
=======================*/

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    padding:30px;
    backdrop-filter:blur(10px);
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
    border-color:#38bdf8;
    box-shadow:0 0 20px rgba(56,189,248,.3);
}

.card h3{
    color:#38bdf8;
    margin-bottom:15px;
}

.card p{
    color:#d1d5db;
    line-height:1.7;
}

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

button{
    padding:12px 24px;
    border:none;
    border-radius:30px;
    background:#38bdf8;
    color:white;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    margin:10px 5px;
}

button:hover{
    background:#0284c7;
    transform:translateY(-3px);
}

/*======================
 TEXTAREA
=======================*/

textarea{
    width:100%;
    min-height:170px;
    background:#102a43;
    color:white;
    border:2px solid #1e3a5f;
    border-radius:15px;
    padding:18px;
    font-size:16px;
    resize:none;
    outline:none;
    transition:.3s;
}

textarea:focus{
    border-color:#38bdf8;
    box-shadow:0 0 15px rgba(56,189,248,.4);
}

/*======================
 INPUT
=======================*/

input[type="range"]{
    width:100%;
    margin-top:20px;
    cursor:pointer;
}

/*======================
 ENCRYPT PANEL
=======================*/

.encrypt-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.input-box label{
    display:block;
    margin-bottom:12px;
    font-weight:600;
    color:#38bdf8;
}

.button-group{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:30px;
}

/*======================
 TABLE
=======================*/

table{
    width:100%;
    border-collapse:collapse;
    margin-top:30px;
}

table th{
    background:#38bdf8;
    padding:15px;
}

table td{
    background:#102a43;
    padding:15px;
    text-align:center;
    border:1px solid rgba(255,255,255,.1);
}

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

footer{
    background:#06101b;
    padding:30px;
    text-align:center;
    color:#94a3b8;
}

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

@media(max-width:900px){

.hero h1{
    font-size:42px;
}

.hero p{
    font-size:18px;
}

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

header{
    flex-direction:column;
    gap:15px;
}

nav{
    flex-wrap:wrap;
    justify-content:center;
}

}
/* ==========================================
   CIPHERVERSE - CIPHER LAB CSS (PART 2)
   CIPHER WHEEL DESIGN
========================================== */

/* ==========================
   WHEEL SECTION
========================== */

#wheel{
    text-align:center;
    padding:80px 20px;
}

.wheel-container{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:50px 0;
}

/* ==========================
   MAIN WHEEL
========================== */

.cipher-wheel{
    position:relative;
    width:420px;
    height:420px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ==========================
   OUTER RING
========================== */

.outer-ring{
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    border:8px solid #38bdf8;
    background:linear-gradient(135deg,#102a43,#081420);
    box-shadow:
        0 0 20px rgba(56,189,248,.4),
        inset 0 0 20px rgba(56,189,248,.3);
    transition:1s ease;
}

/* ==========================
   INNER RING
========================== */

.inner-ring{
    position:absolute;
    width:300px;
    height:300px;
    border-radius:50%;
    border:8px solid #22c55e;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    box-shadow:
        0 0 20px rgba(34,197,94,.4),
        inset 0 0 20px rgba(34,197,94,.3);
    transition:transform .8s ease;
}

/* ==========================
   CENTER LOCK
========================== */

.wheel-center{
    width:90px;
    height:90px;
    background:#38bdf8;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    color:white;
    z-index:100;
    box-shadow:
        0 0 20px rgba(56,189,248,.7);
}

/* ==========================
   LETTER STYLE
========================== */

.outer-ring span,
.inner-ring span{

    position:absolute;

    width:30px;
    height:30px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-weight:bold;
    font-size:18px;

    border-radius:50%;

    transition:.4s;
}

.outer-ring span{

    color:white;

}

.inner-ring span{

    color:#22c55e;

}

/* Hover */

.outer-ring span:hover{

    background:#38bdf8;
    transform:scale(1.3);
    color:white;

}

.inner-ring span:hover{

    background:#22c55e;
    transform:scale(1.3);
    color:white;

}

/* ==========================
   SLIDER BOX
========================== */

.slider-box{

    max-width:500px;
    margin:auto;
    margin-top:40px;

}

.slider-box label{

    display:block;
    margin-bottom:15px;
    font-size:22px;
    font-weight:600;

}

#keyValue{

    color:#38bdf8;

}

/* Modern Slider */

#keySlider{

    width:100%;
    appearance:none;
    height:8px;
    border-radius:10px;
    background:#1e293b;
    outline:none;

}

#keySlider::-webkit-slider-thumb{

    appearance:none;

    width:25px;
    height:25px;

    border-radius:50%;

    background:#38bdf8;

    cursor:pointer;

    box-shadow:0 0 15px #38bdf8;

}

/* ==========================
   WHEEL ANIMATION
========================== */

.cipher-wheel:hover{

    transform:scale(1.03);

    transition:.4s;

}

.outer-ring{

    animation:outerGlow 5s infinite alternate;

}

.inner-ring{

    animation:innerGlow 5s infinite alternate;

}

@keyframes outerGlow{

0%{

box-shadow:
0 0 20px #38bdf8;

}

100%{

box-shadow:
0 0 45px #38bdf8;

}

}

@keyframes innerGlow{

0%{

box-shadow:
0 0 20px #22c55e;

}

100%{

box-shadow:
0 0 45px #22c55e;

}

}

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

@media(max-width:768px){

.cipher-wheel{

width:320px;
height:320px;

}

.outer-ring{

width:320px;
height:320px;

}

.inner-ring{

width:220px;
height:220px;

}

.wheel-center{

width:70px;
height:70px;
font-size:30px;

}

.outer-ring span,
.inner-ring span{

font-size:14px;

}

}
/* Cipher Selection */

.cipher-select{

margin:30px auto;

max-width:400px;

}

.cipher-select label{

display:block;

margin-bottom:10px;

font-size:20px;

font-weight:600;

color:#38bdf8;

}

.cipher-select select{

width:100%;

padding:15px;

font-size:18px;

border-radius:12px;

border:none;

background:#102a43;

color:white;

}
/* ================= INFO BOX ================= */

.info-box{

background:#102a43;

padding:35px;

border-radius:20px;

margin-top:30px;

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

}

.info-box h3{

color:#38bdf8;

margin-bottom:20px;

font-size:30px;

}

.info-box p{

line-height:1.8;

margin-bottom:20px;

}

.info-box ul{

padding-left:20px;

}

.info-box li{

margin:10px 0;

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

.stats-container{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

gap:25px;

margin-top:40px;

}

.stat-card{

background:#102a43;

padding:30px;

border-radius:20px;

text-align:center;

transition:.4s;

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

}

.stat-card:hover{

transform:translateY(-8px);

}

.stat-card h3{

font-size:40px;

color:#38bdf8;

margin-bottom:10px;

}

.stat-card p{

font-size:18px;

}
#counter{
    margin-top:10px;
    color:#38bdf8;
    font-weight:600;
}