/* ==========================
   GLOBAL STYLES
========================== */

:root{
--primary:#0b74ff;
--secondary:#00a8ff;
--dark:#0f172a;
--light:#ffffff;
--bg:#f4f8ff;
--text:#1f2937;
--card:rgba(255,255,255,0.75);
--shadow:0 10px 30px rgba(0,0,0,.08);
--border:rgba(255,255,255,.25);
}

body.dark{
--bg:#08111f;
--text:#ffffff;
--card:rgba(16,24,40,.75);
--shadow:0 10px 30px rgba(0,0,0,.35);
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:var(--bg);
color:var(--text);
overflow-x:hidden;
transition:.4s ease;
}

/* ==========================
   LOADER
========================== */

.loader{
position:fixed;
inset:0;
background:#fff;
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.spinner{
width:60px;
height:60px;
border:5px solid #ddd;
border-top:5px solid var(--primary);
border-radius:50%;
animation:spin 1s linear infinite;
}

@keyframes spin{
100%{
transform:rotate(360deg);
}
}

/* ==========================
   NAVBAR
========================== */

header{
position:fixed;
top:0;
width:100%;
z-index:1000;
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 8%;
backdrop-filter:blur(15px);
background:rgba(255,255,255,.15);
border-bottom:1px solid rgba(255,255,255,.2);
}

.logo{
display:flex;
align-items:center;
gap:10px;
font-size:22px;
font-weight:700;
color:var(--primary);
}

.nav-links{
display:flex;
list-style:none;
gap:25px;
}

.nav-links a{
text-decoration:none;
color:var(--text);
font-weight:500;
transition:.3s;
}

.nav-links a:hover{
color:var(--primary);
}

.theme-toggle,
.menu-btn{
font-size:20px;
cursor:pointer;
}

.menu-btn{
display:none;
}

/* ==========================
   HERO
========================== */

.hero{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
overflow:hidden;
padding:20px;
}

.hero::before{
content:"";
position:absolute;
width:700px;
height:700px;
background:linear-gradient(
135deg,
var(--primary),
var(--secondary)
);
border-radius:50%;
top:-250px;
right:-250px;
opacity:.15;
}

.hero::after{
content:"";
position:absolute;
width:600px;
height:600px;
background:linear-gradient(
135deg,
var(--secondary),
var(--primary)
);
border-radius:50%;
left:-250px;
bottom:-250px;
opacity:.15;
}

.hero-content{
max-width:850px;
z-index:10;
}

.avatar{
width:180px;
height:180px;
margin:auto;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:70px;
color:white;
background:linear-gradient(
135deg,
var(--primary),
var(--secondary)
);
box-shadow:0 20px 50px rgba(11,116,255,.35);
animation:float 4s ease-in-out infinite;
}

@keyframes float{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-15px);
}

100%{
transform:translateY(0px);
}

}

.hero h1{
font-size:4rem;
margin-top:25px;
font-weight:800;
}

.hero h2{
font-size:1.5rem;
margin-top:10px;
color:var(--primary);
font-weight:600;
}

.hero p{
margin-top:25px;
font-size:1rem;
line-height:1.8;
max-width:700px;
margin-left:auto;
margin-right:auto;
}

/* ==========================
   BUTTONS
========================== */

.hero-buttons{
display:flex;
justify-content:center;
gap:15px;
margin-top:35px;
flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
padding:14px 28px;
border-radius:50px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.btn-primary{
background:var(--primary);
color:white;
}

.btn-secondary{
border:2px solid var(--primary);
color:var(--primary);
}

.btn-primary:hover,
.btn-secondary:hover{
transform:translateY(-3px);
}

/* ==========================
   STATS
========================== */

.stats{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:25px;
padding:100px 8%;
}

.stat-card{
background:var(--card);
backdrop-filter:blur(12px);
padding:35px;
border-radius:20px;
text-align:center;
box-shadow:var(--shadow);
border:1px solid var(--border);
}

.stat-card h3{
font-size:3rem;
color:var(--primary);
}

.stat-card p{
margin-top:10px;
}

/* ==========================
   SECTION TITLES
========================== */

.section-title{
text-align:center;
margin-bottom:60px;
}

.section-title h2{
font-size:2.7rem;
margin-bottom:10px;
}

.section-title p{
color:#7c8699;
}

/* ==========================
   GLASS CARD
========================== */

.glass-card{
max-width:1000px;
margin:auto;
padding:40px;
border-radius:25px;
background:var(--card);
backdrop-filter:blur(20px);
box-shadow:var(--shadow);
border:1px solid var(--border);
line-height:2;
}

/* ==========================
   SECTIONS
========================== */

.about,
.skills,
.experience,
.education,
.contact{
padding:100px 8%;
}

/* ==========================
   SKILLS
========================== */

.skills-container{
max-width:900px;
margin:auto;
}

.skill{
margin-bottom:30px;
}

.skill-info{
display:flex;
justify-content:space-between;
margin-bottom:8px;
font-weight:600;
}

.progress{
height:14px;
background:#dbe4f0;
border-radius:30px;
overflow:hidden;
}

.progress-bar{
height:100%;
width:0;
background:linear-gradient(
90deg,
var(--primary),
var(--secondary)
);
border-radius:30px;
transition:2s ease;
}

/* ==========================
   TIMELINE
========================== */

.timeline{
max-width:1000px;
margin:auto;
position:relative;
}

.timeline::before{
content:"";
position:absolute;
left:30px;
top:0;
width:4px;
height:100%;
background:var(--primary);
}

.timeline-item{
position:relative;
padding-left:80px;
margin-bottom:50px;
}

.timeline-item::before{
content:"";
position:absolute;
left:18px;
top:10px;
width:28px;
height:28px;
border-radius:50%;
background:var(--primary);
}

.timeline-content{
background:var(--card);
padding:25px;
border-radius:20px;
box-shadow:var(--shadow);
backdrop-filter:blur(10px);
}

.timeline-content h3{
margin-bottom:10px;
}

.timeline-content span{
color:var(--primary);
font-weight:600;
}

/* ==========================
   EDUCATION
========================== */

.education-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
}

.edu-card{
background:var(--card);
padding:35px;
border-radius:20px;
text-align:center;
box-shadow:var(--shadow);
backdrop-filter:blur(12px);
transition:.3s;
}

.edu-card:hover{
transform:translateY(-8px);
}

.edu-card i{
font-size:40px;
color:var(--primary);
margin-bottom:20px;
}

.edu-card h3{
margin-bottom:10px;
}

/* ==========================
   CONTACT
========================== */

.contact-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.contact-card{
background:var(--card);
padding:35px;
text-align:center;
border-radius:20px;
box-shadow:var(--shadow);
}

.contact-card i{
font-size:35px;
color:var(--primary);
margin-bottom:15px;
}

/* ==========================
   FOOTER
========================== */

footer{
text-align:center;
padding:30px;
background:var(--primary);
color:white;
}

/* ==========================
   ANIMATIONS
========================== */

.reveal{
opacity:0;
transform:translateY(40px);
transition:1s;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* ==========================
   MOBILE
========================== */

@media(max-width:900px){

.hero h1{
font-size:2.8rem;
}

.stats{
grid-template-columns:1fr;
}

.nav-links{
position:fixed;
top:80px;
right:-100%;
width:280px;
height:100vh;
background:var(--bg);
flex-direction:column;
padding-top:50px;
align-items:center;
transition:.4s;
}

.nav-links.active{
right:0;
}

.menu-btn{
display:block;
}

.timeline-item{
padding-left:60px;
}

}

@media(max-width:600px){

.hero h1{
font-size:2.2rem;
}

.hero h2{
font-size:1.1rem;
}

.avatar{
width:140px;
height:140px;
font-size:55px;
}

.section-title h2{
font-size:2rem;
}

}