body{
margin:0;
font-family: 'Inter', sans-serif;
background:#f4f7fb;
color:#333;
line-height:1.6;
}

/* SECTION LAYOUT */

section{
max-width:1000px;
margin:auto;
padding:70px 20px;
}

/* HERO */

.hero{
background:linear-gradient(120deg,#1f4037,#99f2c8);
color:white;
text-align:center;
padding:120px 20px;
}

.hero h1{
font-size:48px;
margin-bottom:10px;
}

.hero p{
font-size:18px;
opacity:0.9;
}

.buttons{
display:flex;
justify-content:center;
gap:12px;
flex-wrap:wrap; 
margin-top:20px;
}
.btn{
background:white;
color:#1f4037;
padding:10px 18px;
font-size:14px;
border-radius:8px;
white-space:nowrap; /* prevents breaking text */
margin:5px;
text-decoration:none;
font-weight:600;
transition:0.3s;
}


.btn:hover{
transform:translateY(-3px);
box-shadow:0 6px 15px rgba(0,0,0,0.2);
}

/* ABOUT */

.about{
text-align:center;
}

.about p{
max-width:700px;
margin:auto;
font-size:17px;
}

/* SKILLS */

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

.skill{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.05);
transition:0.3s;
}

.skill:hover{
transform:translateY(-5px);
}

.bar{
height:8px;
background:#eee;
border-radius:6px;
margin-top:8px;
}

.progress{
height:8px;
background:linear-gradient(90deg,#36d1dc,#5b86e5);
border-radius:6px;
}

/* TIMELINE */

.timeline{
border-left:3px solid #5b86e5;
padding-left:25px;
}

.timeline-item{
margin-bottom:40px;
position:relative;
}

.timeline-content{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.06);
transition:0.3s;
}

.timeline-content:hover{
transform:translateX(6px);
}

/* PROJECTS */

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

.card{
background:white;
padding:22px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:0.3s;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 14px 35px rgba(0,0,0,0.15);
}

/* EDUCATION */

.edu-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 6px 15px rgba(0,0,0,0.08);
max-width:500px;
margin:auto;
}

/* CONTACT */

.contact form{
max-width:500px;
margin:auto;
display:flex;
flex-direction:column;
gap:12px;
}

input,textarea{
padding:12px;
border-radius:6px;
border:1px solid #ddd;
}

button{
padding:12px;
background:#5b86e5;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
}

button:hover{
background:#4a72cc;
}

/* FOOTER */

footer{
text-align:center;
padding:30px;
color:#666;
}

/* SCROLL ANIMATION */

.reveal{
opacity:0;
transform:translateY(40px);
transition:all 0.8s ease;
}

.reveal.active{
opacity:1;
transform:none;
}
.projects h2{
text-align:center;
margin-bottom:40px;
}

/* GRID */

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

/* CARD */

.project-card{

background:white;
padding:25px;
border-radius:12px;

box-shadow:
0 6px 15px rgba(0,0,0,0.08);

transition:all 0.3s ease;
}

.project-card:hover{

transform:translateY(-8px);

box-shadow:
0 12px 35px rgba(0,0,0,0.15);
}

/* TITLE */

.project-card h3{
margin-bottom:10px;
color:#1f2937;
}

/* DESCRIPTION */

.project-card p{
font-size:14px;
color:#555;
}

/* TAGS */

.tech-tags{
margin-top:15px;
}

.tech-tags span{

background:#eef2ff;
color:#2563eb;

padding:5px 10px;
border-radius:6px;

font-size:12px;
margin-right:6px;
}
@media (max-width:600px){

.hero h1{
font-size:28px;
}

.hero p{
font-size:14px;
}

/* Stack buttons vertically */

.buttons{
flex-direction:column;
align-items:center;
}

.btn{
width:80%;
text-align:center;
}

}
