*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins,sans-serif;
scroll-behavior:smooth;
}

body{
background:#f9fafb;
color:#0f172a;
line-height:1.7;
}

/* NAVBAR */
header{
position:sticky;
top:0;
display:flex;
justify-content:space-between;
padding:18px 8%;
background:rgba(255,255,255,.6);
backdrop-filter:blur(16px);
z-index:999;
}

nav ul{
display:flex;
gap:25px;
list-style:none;
}

nav a{
text-decoration:none;
color:#0f172a;
font-weight:500;
position:relative;
}

nav a::after{
content:"";
position:absolute;
bottom:-6px;
left:0;
width:0;
height:2px;
background:#6366f1;
transition:.3s;
}

nav a:hover::after{
width:100%;
}
/*Projects.html edit*/
/* ===== PROJECT PAGE ===== */

.project-card{
background:white;
padding:35px;
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
transition:.4s;
display:flex;
flex-direction:column;
justify-content:space-between;
}

.project-card:hover{
transform:translateY(-10px);
box-shadow:0 25px 50px rgba(0,0,0,.12);
}

.projects-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
max-width:1100px;
margin:auto;
}
.project-card h3{
margin-bottom:15px;
color:#111827;
}

.project-card p{
opacity:.8;
margin-bottom:20px;
}

/* Mobile Fix */
@media(max-width:600px){
.project-card{
padding:25px;
}
}
/*responsive fix end*/
/* ===================================== */
/* GLOBAL RESPONSIVE SAFETY */
/* ===================================== */

*{
max-width:100%;
}

img{
max-width:100%;
height:auto;
display:block;
}

/* Prevent horizontal scroll */
body{
overflow-x:hidden;
}

/* ===================================== */
/* 📱 MOBILE PHONES (up to 600px) */
/* ===================================== */

@media (max-width:600px){

/* NAVBAR */
header{
flex-direction:column;
align-items:center;
gap:10px;
padding:12px 5%;
}

nav ul{
flex-wrap:wrap;
justify-content:center;
gap:12px;
}

/* HERO */
.hero{
padding:40px 15px;
min-height:auto;
}

.profile{
width:110px;
}

h1{
font-size:24px;
}

.hero-desc{
font-size:14px;
padding:0 10px;
}

/* BUTTONS */
.btn{
padding:12px 16px;
font-size:14px;
}

/* SECTIONS */
.section{
padding:60px 18px;
}

.section h2{
font-size:24px;
}

/* CARDS */
.card{
padding:20px;
}

/* PROJECT GRID */
.projects-grid{
grid-template-columns:1fr;
}

.grid{
grid-template-columns:1fr;
}

/* CONTACT */
.contact{
margin:30px 12px;
padding:25px 18px;
}

/* SKILLS */
.skill{
max-width:100%;
}

/* FOOTER */
.footer{
padding:35px 15px;
}

}

/* ===================================== */
/* 📲 TABLETS (601px–1024px) */
/* ===================================== */

@media (min-width:601px) and (max-width:1024px){

header{
padding:16px 6%;
}

.section{
padding:80px 6%;
}

h1{
font-size:34px;
}

.profile{
width:150px;
}

.projects-grid{
grid-template-columns:repeat(2,1fr);
}

.grid{
grid-template-columns:repeat(2,1fr);
}

.contact{
max-width:85%;
}

}

/* ===================================== */
/* 💻 LAPTOPS (1025px–1400px) */
/* ===================================== */

@media (min-width:1025px){

.section{
padding:100px 8%;
}

.projects-grid{
grid-template-columns:repeat(3,1fr);
}

}

/* ===================================== */
/* 🖥 LARGE SCREENS / MAC (1400px+) */
/* ===================================== */

@media (min-width:1400px){

.section{
padding:120px 12%;
}

.projects-grid,
.grid{
max-width:1300px;
margin:auto;
}

}


/* HERO */
.hero{
min-height:90vh;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
gap:20px;
background:linear-gradient(135deg,#eef2ff,#f9fafb);
}

.profile{
width:170px;
border-radius:50%;
border:5px solid white;
box-shadow:0 20px 40px rgba(0,0,0,.15);
transition:.4s;
}

.profile:hover{
transform:scale(1.05);
}

h1{font-size:42px;}

#typing{
color:#6366f1;
font-weight:600;
}

.hero-desc{
max-width:520px;
opacity:.8;
}

.hero-btns{
display:flex;
gap:15px;
flex-wrap:wrap;
justify-content:center;
}

/* BUTTON */
.btn{
padding:14px 28px;
border-radius:30px;
background:linear-gradient(135deg,#6366f1,#4f46e5);
color:white;
text-decoration:none;
border:none;
cursor:pointer;
transition:.3s;
}

.btn:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(99,102,241,.4);
}

.btn.outline{
background:white;
color:#6366f1;
border:2px solid #6366f1;
}

/* SECTIONS */
.section{
padding:100px 8%;
text-align:center;
}

.section h2{
font-size:34px;
margin-bottom:40px;
}

.section h2::after{
content:"";
width:40px;
height:3px;
background:#6366f1;
display:block;
margin:10px auto;
}

/* GRID */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

/* CARDS */
.card{
background:white;
padding:30px;
border-radius:18px;
box-shadow:0 10px 30px rgba(0,0,0,.05);
transition:.4s;
opacity:0;
transform:translateY(40px);
}

.card.show{
opacity:1;
transform:none;
}

.card:hover{
transform:translateY(-10px);
}

/* SKILLS */
.skill{
max-width:500px;
margin:20px auto;
text-align:left;
}

.bar{
height:10px;
background:#e5e7eb;
border-radius:20px;
overflow:hidden;
}

.bar span{
display:block;
height:100%;
background:#6366f1;
animation:grow 2s;
}

/* CONTACT */
.contact{
max-width:600px;
margin:60px auto;
padding:40px;
background:white;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.1);
text-align:center;
}

.contact-form{
display:flex;
flex-direction:column;
gap:15px;
}

.contact-form input,
.contact-form textarea{
padding:14px;
border-radius:8px;
border:1px solid #ddd;
}

/* FOOTER */
.footer{
background:#0f172a;
color:white;
text-align:center;
padding:50px 20px;
}

.social-links{
display:flex;
gap:15px;
justify-content:center;
margin:20px 0;
}

.social-links a{
width:45px;
height:45px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:#6366f1;
color:white;
transition:.3s;
}

.social-links a:hover{
transform:translateY(-5px);
}

.copyright{
opacity:.7;
font-size:14px;
}

/* ANIMATION */
@keyframes grow{
from{width:0;}
}

/* RESPONSIVE */
@media(max-width:768px){
h1{font-size:32px;}
.section{padding:70px 6%;}
}
/* ================================= */
/* ✅ RESPONSIVE ADD-ON (SAFE) */
/* ================================= */

/* Prevent horizontal scroll */
html,body{
overflow-x:hidden;
}

/* Media safety */
img,video{
max-width:100%;
height:auto;
display:block;
}

/* Better touch targets */
a,button{
min-height:44px;
}

/* ============================= */
/* 📱 MOBILE */
/* ============================= */

@media(max-width:600px){

header{
flex-direction:column;
align-items:center;
gap:10px;
padding:12px 5%;
}

nav ul{
flex-wrap:wrap;
justify-content:center;
gap:12px;
}

.hero{
padding:40px 15px;
min-height:auto;
}

.profile{
width:110px;
}

h1{
font-size:24px;
}

.hero-desc{
font-size:14px;
}

.btn{
padding:12px 18px;
font-size:14px;
}

.section{
padding:60px 20px;
}

.section h2{
font-size:24px;
}

.grid,
.projects-grid{
grid-template-columns:1fr;
gap:20px;
}

.card,
.project-card{
padding:20px;
}

.contact{
margin:30px 10px;
padding:25px 18px;
}

}

/* ============================= */
/* 📲 TABLET */
/* ============================= */

@media(min-width:601px) and (max-width:1024px){

.section{
padding:80px 6%;
}

h1{
font-size:34px;
}

.profile{
width:150px;
}

.grid,
.projects-grid{
grid-template-columns:repeat(2,1fr);
}

.contact{
max-width:85%;
margin:auto;
}

}

/* ============================= */
/* 💻 LAPTOP */
/* ============================= */

@media(min-width:1025px){

.projects-grid{
grid-template-columns:repeat(3,1fr);
}

}

/* ============================= */
/* 🖥 LARGE SCREENS */
/* ============================= */

@media(min-width:1400px){

.section{
padding:120px 12%;
}

.grid,
.projects-grid{
max-width:1300px;
margin:auto;
}

}
