/* ================= GLOBAL SETTINGS ================= */

:root{
--primary:#2563EB;
--accent:#22C55E;
--highlight:#F59E0B;
--bg:#F1F5F9;
--text:#0F172A;
--card:#ffffff;
--shadow:0 10px 25px rgba(0,0,0,0.08);
}

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

body{
font-family: "Segoe UI", system-ui, sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.6;
}

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

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 40px;
background:white;
box-shadow:0 4px 14px rgba(0,0,0,0.05);
position:sticky;
top:0;
z-index:1000;
}

.logo{
font-size:22px;
font-weight:700;
color:var(--primary);
}

nav a{
margin-left:24px;
text-decoration:none;
color:var(--text);
font-weight:500;
transition:0.2s;
}

nav a:hover{
color:var(--primary);
}

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

.hero{
display:flex;
align-items:center;
justify-content:space-between;
padding:80px;
background:linear-gradient(135deg,#2563EB,#3B82F6);
color:white;
}

.hero-left{
max-width:500px;
}

.hero-left h1{
font-size:42px;
margin-bottom:16px;
}

.hero-left p{
margin-bottom:25px;
opacity:0.9;
}

.hero img{
width:420px;
border-radius:16px;
box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

/* Buttons */

.primary-btn{
background:var(--highlight);
color:white;
padding:14px 28px;
border-radius:10px;
text-decoration:none;
font-weight:600;
margin-right:10px;
transition:0.3s;
}

.primary-btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

.secondary-btn{
border:2px solid white;
color:white;
padding:14px 28px;
border-radius:10px;
text-decoration:none;
font-weight:500;
transition:0.3s;
}

.secondary-btn:hover{
background:white;
color:var(--primary);
}

/* ================= FEATURES ================= */

.features{
display:flex;
justify-content:center;
gap:30px;
padding:70px 40px;
flex-wrap:wrap;
}

.feature-card{
background:white;
padding:30px;
width:260px;
border-radius:14px;
text-align:center;
box-shadow:var(--shadow);
transition:0.3s;
}

.feature-card:hover{
transform:translateY(-5px);
}

.feature-card h3{
margin-bottom:10px;
color:var(--primary);
}

/* ================= LEADERBOARD PREVIEW ================= */

.leaderboard-preview{
padding:60px 20px;
text-align:center;
}

.leaderboard-preview h2{
margin-bottom:25px;
font-size:28px;
}

.leaderboard-card{
background:white;
padding:16px 20px;
margin:12px auto;
max-width:420px;
border-radius:12px;
box-shadow:var(--shadow);
display:flex;
justify-content:space-between;
align-items:center;
font-weight:500;
}

/* ================= LOGIN / TEST PORTAL ================= */

.container{
max-width:420px;
margin:60px auto;
background:white;
padding:30px;
border-radius:14px;
box-shadow:var(--shadow);
text-align:center;
}

.container h2{
margin-bottom:20px;
color:var(--primary);
}

input{
width:100%;
padding:12px;
margin-bottom:15px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}

button{
width:100%;
padding:12px;
border:none;
background:var(--primary);
color:white;
font-weight:600;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

button:hover{
background:#1D4ED8;
}

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

.quiz-container{
max-width:700px;
margin:40px auto;
background:white;
padding:30px;
border-radius:14px;
box-shadow:var(--shadow);
}

#question{
margin-bottom:20px;
font-size:22px;
}

#options{
display:flex;
flex-direction:column;
gap:12px;
margin-bottom:20px;
}

.option-btn{
padding:12px;
border-radius:8px;
border:1px solid #ddd;
background:white;
cursor:pointer;
transition:0.2s;
}

.option-btn:hover{
background:#EFF6FF;
border-color:var(--primary);
}

#nextBtn{
background:var(--accent);
}

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

#resultContainer{
text-align:center;
padding:40px;
background:white;
margin:40px auto;
max-width:500px;
border-radius:14px;
box-shadow:var(--shadow);
}

#resultContainer h2{
color:var(--accent);
}

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

.footer{
margin-top:60px;
padding:20px;
text-align:center;
background:white;
box-shadow:0 -4px 10px rgba(0,0,0,0.05);
}

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

@media (max-width:900px){

.hero{
flex-direction:column;
text-align:center;
padding:50px 20px;
}

.hero img{
width:90%;
margin-top:30px;
}

.features{
flex-direction:column;
align-items:center;
}

.navbar{
padding:15px 20px;
}

nav{
display:none;
}

}
