/* ===========================
   DISHA COMPUTER EDUCATION
   3D HOME PAGE
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,Arial,sans-serif;
}

body{
    min-height:100vh;
    background:linear-gradient(135deg,#4f46e5,#7c3aed,#06b6d4);
    overflow-x:hidden;
}

/* Animated Background */
body::before{
    content:"";
    position:fixed;
    width:200%;
    height:200%;
    left:-50%;
    top:-50%;
    background:
    radial-gradient(circle,rgba(255,255,255,.12) 2px,transparent 2px);
    background-size:40px 40px;
    animation:bgMove 20s linear infinite;
    z-index:-2;
}

@keyframes bgMove{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

/* Navbar */

nav{
    width:90%;
    margin:20px auto;
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 35px;

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

    backdrop-filter:blur(15px);

    border-radius:20px;

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

}

.logo{
    color:#fff;
    font-size:28px;
    font-weight:bold;
}

.logo i{
    color:#ffd700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

nav ul li a:hover{
    color:#ffd700;
}

.login-btn{

    text-decoration:none;

    background:purple;

    color:#fff;

    padding:12px 28px;

    border-radius:40px;

    font-weight:bold;

    transition:.4s;
}

.login-btn:hover{

    transform:translateY(-5px);

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

}

/* Hero */

.hero{

display:flex;

justify-content:center;

align-items:center;

height:80vh;

}

.glass{

width:800px;

padding:60px;

text-align:center;

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

backdrop-filter:blur(20px);

border-radius:30px;

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

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

}

@keyframes upDown{

0%,100%{
transform:translateY(0);
}

50%{
transform:translateY(-10px);
}

}

.glass h1{

font-size:55px;

color:#fff;

margin-bottom:20px;

}

.glass p{

font-size:22px;

color:#fff;

margin-bottom:40px;

}

.start-btn{

display:inline-block;

text-decoration:none;

background:purple;

color:#fff;

padding:18px 45px;

border-radius:50px;

font-size:22px;

font-weight:bold;

transition:.4s;

}

.start-btn:hover{

transform:scale(1.1);

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

}

/* Mobile */

@media(max-width:900px){

nav{
flex-direction:column;
gap:20px;
}

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

.glass{
width:90%;
padding:40px;
}

.glass h1{
font-size:35px;
}

}
/* Dashboard */

.dashboard{

width:90%;

margin:40px auto 80px;

display:grid;

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

gap:25px;

}

.card{

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

backdrop-filter:blur(20px);

border-radius:25px;

padding:35px;

text-align:center;

color:white;

transition:.4s;

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

}

.card:hover{

transform:translateY(-12px) scale(1.05);

}

.card i{

font-size:55px;

margin-bottom:20px;

color:#ffd700;

}

.card h2{

font-size:42px;

margin-bottom:10px;

}

.card p{

font-size:22px;

}

@media(max-width:900px){

.dashboard{

grid-template-columns:1fr;

}

}
/* Attendance Table */

.attendance{

width:90%;

margin:60px auto;

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

backdrop-filter:blur(20px);

padding:30px;

border-radius:25px;

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

color:white;

}

.attendance h2{

margin-bottom:20px;

text-align:center;

font-size:35px;

}

table{

width:100%;

border-collapse:collapse;

}

th,td{

padding:15px;

text-align:center;

}

th{

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

}

tr{

border-bottom:1px solid rgba(255,255,255,.2);

}

td img{

width:55px;

height:55px;

border-radius:50%;

border:3px solid white;

}

.present{

background:#00c853;

color:white;

padding:10px 20px;

border:none;

border-radius:30px;

cursor:pointer;

margin-right:8px;

font-weight:bold;

}

.absent{

background:#e53935;

color:white;

padding:10px 20px;

border:none;

border-radius:30px;

cursor:pointer;

font-weight:bold;

}

.present:hover,

.absent:hover{

transform:scale(1.08);

transition:.3s;

}
/* Controls */

.controls{

width:90%;

margin:40px auto;

display:flex;

justify-content:space-between;

gap:20px;

}

.controls input{

flex:1;

padding:18px;

border:none;

border-radius:40px;

font-size:18px;

outline:none;

}

.add-btn{

padding:18px 35px;

background:#00c853;

color:white;

border:none;

border-radius:40px;

font-size:18px;

cursor:pointer;

font-weight:bold;

}

.counter{

width:90%;

margin:auto;

display:grid;

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

gap:25px;

margin-bottom:40px;

}

.count-card{

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

backdrop-filter:blur(20px);

padding:30px;

border-radius:25px;

text-align:center;

color:white;

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

}

.count-card h2{

font-size:50px;

margin-bottom:10px;

}

@media(max-width:900px){

.controls{

flex-direction:column;

}

.counter{

grid-template-columns:1fr;

}

}
/* ================= COURSES ================= */

.courses{

padding:60px 8%;

text-align:center;

background:#f8f9ff;

}

.courses h2{

font-size:35px;

margin-bottom:40px;

color:#2c3e50;

}

.course-container{

display:flex;

justify-content:center;

flex-wrap:wrap;

gap:25px;

}

.course-card{

width:250px;

background:#fff;

padding:30px;

border-radius:15px;

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

transition:.4s;

cursor:pointer;

}

.course-card i{

font-size:45px;

color:#5b21b6;

margin-bottom:20px;

}

.course-card h3{

margin-bottom:10px;

}

.course-card:hover{

transform:translateY(-10px);

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

}
/* ================= ACHIEVEMENT ================= */

.achievement{

padding:60px 8%;

background:linear-gradient(135deg,#5b21b6,#2563eb);

color:white;

text-align:center;

}

.achievement h2{

font-size:35px;

margin-bottom:40px;

}

.achievement-container{

display:flex;

justify-content:center;

flex-wrap:wrap;

gap:25px;

}

.achievement-card{

width:220px;

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

padding:30px;

border-radius:15px;

backdrop-filter:blur(10px);

transition:.3s;

}

.achievement-card:hover{

transform:scale(1.08);

}

.achievement-card h1{

font-size:45px;

margin-bottom:10px;

}
/* ================= DEVELOPER ================= */

.developer{

padding:60px;

text-align:center;

}

.developer-box{

max-width:450px;

margin:auto;

background:white;

padding:30px;

border-radius:20px;

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

}

.developer-box img{

width:140px;

height:140px;

border-radius:50%;

object-fit:cover;

margin-bottom:20px;

border:5px solid #5b21b6;

}

.developer-box h2{

margin:10px 0;

}
/* ================= FLOAT BUTTON ================= */

.floating-buttons{

position:fixed;

right:25px;

bottom:30px;

display:flex;

flex-direction:column;

gap:15px;

z-index:999;

}

.floating-buttons a{

width:60px;

height:60px;

border-radius:50%;

display:flex;

justify-content:center;

align-items:center;

color:white;

font-size:24px;

text-decoration:none;

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

transition:.3s;

}

.call{

background:#2563eb;

}

.whatsapp{

background:#25D366;

}

.location{

background:#ef4444;

}

.floating-buttons a:hover{

transform:scale(1.15);

}
/* ================= WHY CHOOSE US ================= */

.why-us{
    width:90%;
    margin:60px auto;
    text-align:center;
}

.why-us h2{
    color:#fff;
    font-size:38px;
    margin-bottom:40px;
    text-shadow:0 5px 15px rgba(0,0,0,.3);
}

.why-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.why-card{
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(20px);
    border-radius:20px;
    padding:30px;
    color:#fff;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    transition:.4s;
}

.why-card:hover{
    transform:translateY(-10px);
}

.why-card i{
    font-size:50px;
    color:#FFD700;
    margin-bottom:15px;
}

.why-card h3{
    font-size:24px;
    margin-bottom:10px;
}

.why-card p{
    font-size:16px;
}

@media(max-width:900px){

.why-container{

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

}

}

@media(max-width:600px){

.why-container{

grid-template-columns:1fr;

}

}
/*================ LOADER ================*/

#loader{

position:fixed;

top:0;
left:0;

width:100%;
height:100vh;

background:

linear-gradient(rgba(0,0,0,.75),rgba(0,0,0,.75)),

url("https://static.vecteezy.com/system/resources/previews/002/275/401/large_2x/cyber-security-protection-technology-background-vector.jpg");

background-size:cover;
background-position:center;

display:flex;

justify-content:center;

align-items:center;

z-index:999999;

transition:1s;

}

.loader-content{

text-align:center;

color:white;

}

.profile{

position:relative;

width:180px;

height:180px;

margin:auto;

}

.profile img{

width:180px;

height:180px;

border-radius:50%;

border:5px solid white;

object-fit:cover;

}

.ring{

position:absolute;

top:-12px;
left:-12px;

width:204px;
height:204px;

border-radius:50%;

border:6px solid transparent;

border-top:6px solid cyan;

border-right:6px solid #00ffcc;

animation:spin 2s linear infinite;

}

@keyframes spin{

100%{

transform:rotate(360deg);

}

}

.loader-content h1{

margin-top:25px;

font-size:38px;

}

.loader-content h3{

margin-top:10px;

color:#FFD700;

}

.progress{

width:350px;

height:12px;

background:#444;

margin:25px auto;

border-radius:50px;

overflow:hidden;

}

#progressBar{

width:0;

height:100%;

background:linear-gradient(90deg,cyan,#00ff66);

}

#percent{

font-size:28px;

font-weight:bold;

margin-bottom:15px;

}

#status{

font-size:18px;

letter-spacing:1px;

}
/*=========== AI BUTTON ===========*/

#aiButton{

position:fixed;

right:25px;

bottom:30px;

width:70px;

height:70px;

border-radius:50%;

background:linear-gradient(135deg,#4f46e5,#7c3aed);

display:flex;

justify-content:center;

align-items:center;

font-size:30px;

color:white;

cursor:pointer;

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

z-index:9999;

animation:robotFloat 2s infinite;

}

@keyframes robotFloat{

50%{

transform:translateY(-8px);

}

}

#chatBox{

position:fixed;

right:25px;

bottom:110px;

width:360px;

height:520px;

background:white;

border-radius:20px;

display:none;

overflow:hidden;

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

z-index:9999;

}

.chatHeader{

background:#4f46e5;

color:white;

padding:18px;

font-size:18px;

font-weight:bold;

display:flex;

justify-content:space-between;

}

#closeChat{

cursor:pointer;

font-size:24px;

}

#chatBody{

height:390px;

padding:18px;

overflow:auto;

background:#f5f7ff;

}

.bot-message{

background:#ececff;

padding:15px;

border-radius:15px;

line-height:28px;

}

.chatInput{

display:flex;

border-top:1px solid #ddd;

}

.chatInput input{

flex:1;

padding:15px;

border:none;

outline:none;

}

.chatInput button{

width:70px;

border:none;

background:#4f46e5;

color:white;

cursor:pointer;

}
.user-message{

background:#4f46e5;

color:#fff;

padding:12px;

border-radius:15px;

margin:10px 0;

margin-left:50px;

text-align:right;

}

.bot-message{

background:#ececff;

padding:12px;

border-radius:15px;

margin:10px 0;

margin-right:50px;

}
