/* GOOGLE FONT */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
scroll-behavior:smooth;
}

/* ROOT */

:root{
--text:#ffffff;
--card:rgba(255,255,255,0.12);
--primary:#38bdf8;
}

/* BODY */

body{

font-family:'Poppins',sans-serif;

background:
linear-gradient(
135deg,
#0f172a,
#1e3a8a,
#0f766e
);

background-size:400% 400%;

animation:bg 15s ease infinite;

color:var(--text);

transition:0.4s;

overflow-x:hidden;

position:relative;

}

/* DARK MODE */

body.dark{

background:
linear-gradient(
135deg,
#020617,
#111827,
#1e293b
);

}

/* BACKGROUND ANIMATION */

@keyframes bg{

0%{
background-position:0% 50%;
}

50%{
background-position:100% 50%;
}

100%{
background-position:0% 50%;
}

}

/* LOADER */

#loader{

position:fixed;

width:100%;
height:100vh;

background:#020617;

display:flex;
justify-content:center;
align-items:center;

z-index:9999;

}

.spinner{

width:65px;
height:65px;

border:6px solid rgba(255,255,255,0.3);
border-top:6px solid white;

border-radius:50%;

animation:spin 1s linear infinite;

}

@keyframes spin{

100%{
transform:rotate(360deg);
}

}

/* PARTICLES */

#particles{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

z-index:-1;

pointer-events:none;

}

/* GLASS EFFECT */

.glass{

background:var(--card);

backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.15);

border-radius:25px;

box-shadow:
0 8px 32px rgba(0,0,0,0.2);

}

/* NAVBAR */

.navbar{

position:fixed;

top:15px;

left:50%;

transform:translateX(-50%);

width:95%;

padding:20px 6%;

display:flex;

justify-content:space-between;
align-items:center;

z-index:1000;

background:rgba(255,255,255,0.1);

backdrop-filter:blur(18px);

border:1px solid rgba(255,255,255,0.15);

border-radius:25px;

}

/* LOGO */

.logo{

font-size:2.2rem;

font-weight:700;

color:white;

}

/* NAV LINKS */

.nav-links{

display:flex;

gap:35px;

list-style:none;

}

.nav-links a{

text-decoration:none;

color:white;

font-size:1.05rem;

font-weight:500;

transition:0.3s;

position:relative;

}

/* NAV HOVER */

.nav-links a::after{

content:"";

position:absolute;

left:0;
bottom:-5px;

width:0%;

height:2px;

background:#38bdf8;

transition:0.4s;

}

.nav-links a:hover::after{
width:100%;
}

.nav-links a:hover{
color:#38bdf8;
}

/* RIGHT NAV */

.nav-right{

display:flex;

align-items:center;

gap:20px;

}

/* THEME BUTTON */

#theme-toggle{

border:none;

background:none;

font-size:22px;

cursor:pointer;

color:white;

transition:0.3s;

}

#theme-toggle:hover{
transform:rotate(20deg);
}

/* HAMBURGER */

.hamburger{

display:none;

flex-direction:column;

gap:5px;

cursor:pointer;

}

.hamburger span{

width:28px;
height:3px;

background:white;

border-radius:5px;

}

/* HERO */

.hero{

height:100vh;

display:flex;

flex-direction:column;

justify-content:center;
align-items:center;

text-align:center;

padding:20px;

position:relative;

overflow:hidden;

}

/* HERO TITLE */

.hero h1{

font-size:5rem;

font-weight:800;

line-height:1.2;

color:white;

text-shadow:
0 0 20px rgba(0,0,0,0.4);

}

/* GRADIENT NAME */

.hero span{

background:
linear-gradient(
45deg,
#38bdf8,
#8b5cf6
);

background-clip:text;
-webkit-background-clip:text;

color:transparent;
-webkit-text-fill-color:transparent;

}

/* TYPING */

.hero h2{

margin-top:15px;

font-size:2rem;

font-weight:600;

color:#ffffff;

min-height:50px;

text-shadow:
0 0 10px rgba(0,0,0,0.3);

}

/* HERO TEXT */

.hero p{

margin:20px 0;

font-size:1.2rem;

color:#e2e8f0;

}

/* HERO BUTTONS */

.hero-btns{

display:flex;

gap:20px;

margin-top:20px;

flex-wrap:wrap;

justify-content:center;

}

/* BUTTON */

.btn{

padding:14px 32px;

border:none;

border-radius:40px;

background:
linear-gradient(
45deg,
#38bdf8,
#8b5cf6
);

color:white;

font-size:1rem;

font-weight:600;

text-decoration:none;

cursor:pointer;

transition:0.4s;

box-shadow:
0 10px 25px rgba(56,189,248,0.3);

}

.btn:hover{

transform:
translateY(-6px)
scale(1.05);

box-shadow:
0 15px 30px rgba(139,92,246,0.4);

}

/* SECTION */

.section{

padding:120px 10%;

}

/* SECTION TITLE */

.section h2{

font-size:2.5rem;

margin-bottom:40px;

text-align:center;

color:white;

}

/* ABOUT */

.about-container{

display:flex;

align-items:center;
justify-content:center;

gap:60px;

flex-wrap:wrap;

padding:40px;

}

.about-container img{

width:280px;
height:280px;

object-fit:cover;

border-radius:25px;

border:3px solid rgba(255,255,255,0.2);

}

.about-container p{

font-size:1.1rem;

line-height:1.8;

max-width:600px;

color:#e2e8f0;

}

/* GRID */

.grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(220px,1fr));

gap:30px;

}

/* CERTIFICATE GRID */

#certificate-container{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(240px,1fr));

gap:25px;

}

/* SKILLS */

.skill{

padding:35px;

text-align:center;

transition:0.4s;

}

.skill i{

font-size:38px;

margin-bottom:12px;

color:#38bdf8;

}

.skill p{

font-size:1.1rem;

font-weight:500;

}

.skill:hover{

transform:
translateY(-10px)
scale(1.05);

box-shadow:
0 15px 30px rgba(56,189,248,0.25);

}

/* CATEGORY BUTTONS */

#categories{

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

margin-top:40px;

}

#categories button{

padding:12px 30px;

border:none;

border-radius:40px;

background:
rgba(255,255,255,0.12);

color:white;

font-size:1rem;

font-weight:600;

cursor:pointer;

backdrop-filter:blur(10px);

transition:0.4s;

}

#categories button:hover{

background:
linear-gradient(
45deg,
#38bdf8,
#8b5cf6
);

transform:
translateY(-5px);

}

/* PROJECT CONTAINER */

#project-container{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));

gap:25px;

margin-top:40px;

}

/* PROJECT CARD */

.project{

padding:20px;

border-radius:25px;

overflow:hidden;

transition:0.4s;

background:
rgba(255,255,255,0.12);

backdrop-filter:blur(15px);

border:
1px solid rgba(255,255,255,0.15);

cursor:pointer;

position:relative;

}

.project img{

width:100%;
height:180px;

object-fit:cover;

border-radius:18px;

margin-bottom:15px;

}

.project h3{

font-size:1.5rem;

margin-bottom:10px;

color:white;

}

.project p{

color:#e2e8f0;

line-height:1.6;

}

.project:hover{

transform:
translateY(-10px)
scale(1.03);

box-shadow:
0 20px 40px rgba(0,0,0,0.3);

}

/* CERTIFICATE */

.cert{

padding:20px;

text-align:center;

cursor:pointer;

transition:0.4s;

}

.cert img{

width:100%;
height:170px;

object-fit:cover;

border-radius:15px;

margin-bottom:12px;

}

.cert:hover{

transform:
translateY(-10px);

}

/* CONTACT */

.contact-container{

display:grid;

grid-template-columns:1fr 1fr;

gap:40px;

padding:40px;

}

.contact-container h3{

font-size:2rem;

margin-bottom:20px;

}

.contact-container p{

line-height:1.7;

margin-bottom:20px;

}

.contact-container a{

text-decoration:none;

color:#38bdf8;

font-weight:500;

}

.contact-container a:hover{

text-decoration:underline;

}

/* FORM */

.contact-container input,
.contact-container textarea{

width:100%;

padding:14px;

margin-bottom:18px;

border:none;

outline:none;

border-radius:15px;

background:
rgba(255,255,255,0.1);

color:white;

font-size:1rem;

}

.contact-container textarea{

height:140px;

resize:none;

}

/* MODAL */

.modal{

position:fixed;

top:50%;
left:50%;

transform:
translate(-50%,-50%)
scale(0);

width:60%;

padding:25px;

z-index:2000;

transition:0.4s;

}

.modal.active{

transform:
translate(-50%,-50%)
scale(1);

}

.modal span{

font-size:38px;

cursor:pointer;

float:right;

color:white;

}

/* FOOTER */

.footer{

text-align:center;

padding:30px;

font-size:1rem;

color:#e2e8f0;

}

/* SHOW BUTTON */

.show-btn-container{

display:flex;

justify-content:center;

margin-top:40px;

width:100%;

}

/* SCROLL ANIMATION */

.section{
animation:fadeIn 1s ease;
}

@keyframes fadeIn{

from{
opacity:0;
transform:translateY(40px);
filter:blur(10px);
}

to{
opacity:1;
transform:translateY(0);
filter:blur(0);
}

}

/* ACTIVE LINK */

.active-link{
color:#38bdf8 !important;
}

/* HERO GLOW */

.hero-glow{

position:absolute;

width:450px;
height:450px;

background:#38bdf8;

filter:blur(140px);

opacity:0.18;

border-radius:50%;

z-index:-1;

animation:floatGlow 6s ease-in-out infinite;

}

@keyframes floatGlow{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-30px);
}

100%{
transform:translateY(0);
}

}

/* PROJECT OVERLAY */

.project-overlay{

position:absolute;
inset:0;

background:rgba(0,0,0,0.6);

display:flex;
justify-content:center;
align-items:center;

opacity:0;

font-size:1.2rem;
font-weight:600;

transition:0.4s;

}

.project:hover .project-overlay{
opacity:1;
}

/* PROGRESS BAR */

#progress-bar{

position:fixed;

top:0;
left:0;

height:4px;

width:0%;

background:
linear-gradient(
90deg,
#38bdf8,
#8b5cf6
);

z-index:99999;

}

/* TOP BUTTON */

#topBtn{

position:fixed;

right:25px;
bottom:25px;

width:55px;
height:55px;

border:none;

border-radius:50%;

background:
linear-gradient(
45deg,
#38bdf8,
#8b5cf6
);

color:white;

font-size:20px;

cursor:pointer;

display:none;

z-index:9999;

}

/* MOBILE */

@media(max-width:768px){

.navbar{
padding:18px 5%;
}

.nav-links{

position:absolute;

top:90px;

right:-100%;

flex-direction:column;

background:
rgba(15,23,42,0.95);

padding:25px;

width:240px;

border-radius:20px;

transition:0.4s;

}

.nav-links.active{
right:20px;
}

.hamburger{
display:flex;
}

/* HERO FIX */

.hero{

padding-top:140px;

height:auto;

min-height:100vh;

justify-content:flex-start;

}

.hero h1{

font-size:3rem;

margin-top:20px;

line-height:1.2;

}

.hero h2{
font-size:1.5rem;
}

.hero p{
font-size:1rem;
}

.hero-btns{
flex-direction:column;
}

.section{
padding:100px 7%;
}

.about-container{
text-align:center;
}

.contact-container{
grid-template-columns:1fr;
}

.modal{
width:90%;
}

.show-btn-container{
margin-top:25px;
}

#show-more-certificates{

width:100%;

max-width:260px;

font-size:0.95rem;

padding:14px 20px;

}

}