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

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
scroll-behavior:smooth;
}

:root{
--bg0:#020617;
--bg1:#0b1222;
--bg2:#0f172a;
--card:#111c33;
--card2:#162447;
--text:#e5e7eb;
--muted:#cbd5e1;
--blue:#3b82f6;
--blue2:#60a5fa;
--ring:rgba(59,130,246,0.45);
--radius:14px;
--shadow:0 18px 45px rgba(0,0,0,0.45);
--shadow2:0 10px 25px rgba(0,0,0,0.35);
}

body{
background:
radial-gradient(900px 500px at 8% 10%, rgba(59,130,246,0.22), transparent 60%),
radial-gradient(900px 500px at 92% 20%, rgba(34,197,94,0.14), transparent 60%),
linear-gradient(120deg,var(--bg0),var(--bg2),#1e293b);
color:var(--text);
line-height:1.6;
overflow-x:hidden;
}

/* ===== HEADER ===== */

.header{
display:flex;
justify-content:space-between;
align-items:center;
padding:16px 10%;
background:rgba(2,6,23,0.85);
backdrop-filter:blur(10px);
border-bottom:1px solid rgba(148,163,184,0.12);
position:sticky;
top:0;
z-index:1000;
}

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

.nav-toggle{
display:none;
align-items:center;
justify-content:center;
width:42px;
height:42px;
border-radius:12px;
border:1px solid rgba(148,163,184,0.22);
background:rgba(2,6,23,0.55);
color:var(--text);
cursor:pointer;
transition:transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nav-toggle i{
font-size:26px;
}

.nav-toggle:hover{
transform:translateY(-1px);
box-shadow:0 10px 25px rgba(0,0,0,0.35);
border-color:rgba(96,165,250,0.55);
}

.nav a{
color:white;
margin-left:25px;
text-decoration:none;
font-weight:500;
position:relative;
transition:color 0.25s;
}

.nav a::after{
content:"";
position:absolute;
left:0;
right:0;
bottom:-8px;
height:2px;
border-radius:999px;
background:linear-gradient(90deg,var(--blue),var(--blue2));
transform:scaleX(0);
transform-origin:left;
transition:transform 0.25s;
}

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

.nav a.active{
color:var(--blue2);
}

.nav a.active::after{
transform:scaleX(1);
}

.nav a:hover::after{
transform:scaleX(1);
}

.nav a:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.btn2:focus-visible,
.project-card a:focus-visible,
.social a:focus-visible{
outline:3px solid var(--ring);
outline-offset:3px;
}

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

.home{
display:flex;
align-items:center;
justify-content:space-between;
padding:clamp(84px, 9vw, 120px) 10%;
gap:60px;
flex-wrap:wrap;
}

.home-text{
flex:1;
min-width:300px;
}

.home-text h1{
font-size:clamp(32px, 4.2vw, 52px);
margin-bottom:15px;
line-height:1.2;
}

.home-text p{
margin-top:15px;
font-size:18px;
line-height:1.6;
}

.buttons{
margin-top:30px;
display:flex;
gap:15px;
flex-wrap:wrap;
}

/* ===== PROFILE IMAGE ===== */

.home-img{
flex:1;
display:flex;
justify-content:center;
}

.home-img img{
width:320px;
height:320px;
object-fit:cover;
border-radius:50%;
border:4px solid var(--blue);
box-shadow:var(--shadow);
transition:transform 0.35s, box-shadow 0.35s, filter 0.35s;
}

.home-img img:hover{
transform:translateY(-6px) scale(1.03);
filter:saturate(1.05) contrast(1.02);
}

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

.btn{
background:linear-gradient(45deg,#2563eb,var(--blue));
padding:12px 28px;
border-radius:30px;
color:white;
text-decoration:none;
font-weight:600;
transition:transform 0.25s, box-shadow 0.25s, filter 0.25s;
}

.btn:hover{
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(59,130,246,0.4);
filter:saturate(1.05);
}

.btn2{
border:2px solid var(--blue);
padding:12px 28px;
border-radius:30px;
color:var(--blue2);
text-decoration:none;
font-weight:600;
transition:transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn2:hover{
background:var(--blue);
color:white;
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(59,130,246,0.25);
}
.btn-cv{
background:#22c55e;
padding:12px 28px;
border-radius:30px;
color:white;
text-decoration:none;
font-weight:600;
transition:0.3s;
}

.btn-cv:hover{
transform:translateY(-3px);
box-shadow:0 8px 20px rgba(34,197,94,0.4);
}

/* ===== SECTIONS ===== */

section{
padding:clamp(64px, 7.5vw, 92px) 10%;
}

h2{
font-size:clamp(26px, 3.2vw, 38px);
margin-bottom:40px;
text-align:center;
color:var(--blue2);
letter-spacing:0.2px;
}

/* ===== ABOUT ===== */

.about p{
max-width:900px;
margin:auto;
text-align:center;
font-size:18px;
color:var(--muted);
}

/* ===== SKILLS ===== */

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

.skill-card{
background:linear-gradient(180deg, rgba(17,28,51,0.92), rgba(15,23,42,0.92));
border:1px solid rgba(148,163,184,0.12);
padding:25px;
border-radius:var(--radius);
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.22);
transition:transform 0.25s, background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.skill-card:hover{
transform:translateY(-6px);
background:linear-gradient(180deg, rgba(22,36,71,0.92), rgba(15,23,42,0.92));
box-shadow:var(--shadow2);
border-color:rgba(96,165,250,0.28);
}

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

/* ===== PROJECTS ===== */

.projects{
background:rgba(2,6,23,0.55);
}

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

.project-card{
background:linear-gradient(180deg, rgba(17,28,51,0.92), rgba(15,23,42,0.92));
border:1px solid rgba(148,163,184,0.12);
padding:25px;
border-radius:var(--radius);
box-shadow:0 10px 25px rgba(0,0,0,0.22);
transition:transform 0.25s, background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.project-card:hover{
transform:translateY(-6px);
background:linear-gradient(180deg, rgba(22,36,71,0.92), rgba(15,23,42,0.92));
box-shadow:var(--shadow2);
border-color:rgba(96,165,250,0.28);
}

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

.project-card p{
margin-bottom:15px;
}

.project-card a{
display:inline-flex;
align-items:center;
gap:8px;
padding:10px 14px;
border-radius:999px;
border:1px solid rgba(59,130,246,0.35);
background:rgba(59,130,246,0.10);
color:var(--blue2);
text-decoration:none;
font-weight:600;
transition:transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.project-card a:hover{
transform:translateY(-2px);
background:rgba(59,130,246,0.18);
border-color:rgba(96,165,250,0.55);
box-shadow:0 12px 25px rgba(0,0,0,0.25);
}

/* ===== EDUCATION ===== */

.education{
background:rgba(2,6,23,0.55);
}

.edu-item{
margin-bottom:20px;
background:linear-gradient(180deg, rgba(17,28,51,0.92), rgba(15,23,42,0.92));
border:1px solid rgba(148,163,184,0.12);
padding:20px;
border-radius:var(--radius);
box-shadow:0 10px 25px rgba(0,0,0,0.18);
transition:transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.edu-item:hover{
transform:translateY(-4px);
box-shadow:var(--shadow2);
border-color:rgba(96,165,250,0.22);
}

.edu-item h3{
color:var(--blue2);
margin-bottom:5px;
}

/* ===== CONTACT ===== */

.contact{
text-align:center;
}

.contact p{
margin:10px 0;
font-size:18px;
}

.social{
margin-top:20px;
}

.social a{
font-size:32px;
margin:10px;
color:white;
display:inline-flex;
width:48px;
height:48px;
align-items:center;
justify-content:center;
border-radius:14px;
border:1px solid rgba(148,163,184,0.15);
background:rgba(2,6,23,0.28);
transition:transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.social a:hover{
color:var(--blue2);
transform:translateY(-3px) rotate(-2deg);
background:rgba(59,130,246,0.10);
border-color:rgba(96,165,250,0.35);
}

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

footer{
margin-top:40px;
}

.site-footer{
padding:30px 10% 22px;
background:
radial-gradient(700px 220px at 15% 0%, rgba(59,130,246,0.18), transparent 60%),
linear-gradient(180deg, rgba(2,6,23,0.92), rgba(2,6,23,0.65));
border-top:1px solid rgba(148,163,184,0.14);
}

.footer-inner{
display:grid;
grid-template-columns:1.6fr 1fr 1fr;
gap:28px;
align-items:start;
}

.footer-logo{
font-size:20px;
font-weight:800;
letter-spacing:0.3px;
color:var(--blue2);
}

.footer-tagline{
margin-top:10px;
color:var(--muted);
max-width:520px;
}

.footer-col h4{
font-size:14px;
letter-spacing:0.8px;
text-transform:uppercase;
color:rgba(226,232,240,0.9);
margin-bottom:12px;
}

.footer-col a{
display:flex;
width:fit-content;
margin:8px 0;
padding:8px 10px;
border-radius:12px;
color:rgba(226,232,240,0.9);
text-decoration:none;
border:1px solid transparent;
background:transparent;
transition:transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.footer-col a:hover{
transform:translateY(-2px);
background:rgba(59,130,246,0.10);
border-color:rgba(96,165,250,0.28);
color:var(--blue2);
}

.footer-social{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.footer-social a{
display:inline-flex;
align-items:center;
justify-content:center;
width:46px;
height:46px;
border-radius:14px;
border:1px solid rgba(148,163,184,0.15);
background:rgba(2,6,23,0.28);
color:rgba(226,232,240,0.95);
text-decoration:none;
transition:transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.footer-social a i{
font-size:26px;
}

.footer-social a:hover{
transform:translateY(-3px);
background:rgba(59,130,246,0.12);
border-color:rgba(96,165,250,0.35);
color:var(--blue2);
}

.footer-bottom{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
margin-top:22px;
padding-top:16px;
border-top:1px solid rgba(148,163,184,0.12);
color:rgba(203,213,225,0.92);
}

.footer-bottom p{
margin:0;
}

.to-top{
display:inline-flex;
align-items:center;
justify-content:center;
width:46px;
height:46px;
border-radius:14px;
border:1px solid rgba(59,130,246,0.35);
background:rgba(59,130,246,0.12);
color:var(--blue2);
text-decoration:none;
transition:transform 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.to-top i{
font-size:24px;
}

.to-top:hover{
transform:translateY(-3px);
background:rgba(59,130,246,0.20);
border-color:rgba(96,165,250,0.55);
box-shadow:0 14px 28px rgba(0,0,0,0.28);
}

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

@media(max-width:900px){

.header{
padding:12px 6%;
}

.nav-toggle{
display:inline-flex;
}

.nav{
position:fixed;
top:70px;
left:16px;
right:16px;
margin:0;
padding:14px;
border-radius:16px;
background:rgba(2,6,23,0.92);
backdrop-filter:blur(14px);
border:1px solid rgba(148,163,184,0.14);
box-shadow:var(--shadow);
display:flex;
flex-direction:column;
gap:8px;
opacity:0;
transform:translateY(-10px) scale(0.98);
pointer-events:none;
transition:opacity 0.2s, transform 0.2s;
}

.nav a{
margin:0;
padding:12px 12px;
border-radius:12px;
}

.nav a::after{
display:none;
}

body.nav-open .nav{
opacity:1;
transform:translateY(0) scale(1);
pointer-events:auto;
}

body.nav-open{
overflow:hidden;
}

.home{
flex-direction:column;
text-align:center;
}

.home-img img{
width:220px;
height:220px;
}

.home-text h1{
font-size:32px;
}

.site-footer{
padding:26px 6% 18px;
}

.footer-inner{
grid-template-columns:1fr;
gap:18px;
}

.footer-bottom{
flex-direction:column;
align-items:flex-start;
}

}

@media(max-width:600px){
section{
padding:56px 6%;
}

.home{
padding:76px 6% 56px;
gap:34px;
}

.home-text{
min-width:auto;
}

.home-text p{
font-size:16px;
}

h2{
margin-bottom:26px;
}

.buttons{
justify-content:center;
}
}

.reveal{
opacity:0;
transform:translateY(14px);
filter:blur(2px);
transition:opacity 0.65s, transform 0.65s, filter 0.65s;
}

.reveal.in-view{
opacity:1;
transform:none;
filter:none;
}

@media (prefers-reduced-motion: reduce){
*{
scroll-behavior:auto;
}
.reveal{
opacity:1;
transform:none;
filter:none;
transition:none;
}
.btn,
.btn2,
.skill-card,
.project-card,
.edu-item,
.home-img img,
.social a,
.nav a,
.nav-toggle{
transition:none;
}
}
