*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: "Segoe UI", Arial, sans-serif;
background:#f6f8fb;
color:#222;
line-height:1.6;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 10%;
background:white;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
position:sticky;
top:0;
z-index:100;
}

header h1{
font-size:22px;
color:#2563eb;
}

nav a{
margin-left:20px;
text-decoration:none;
color:#333;
font-weight:500;
}

nav a:hover{
color:#2563eb;
}

/* CONTAINER */

.container{
max-width:1200px;
margin:auto;
padding:40px 20px;
}

/* HERO */

.hero{
text-align:center;
margin-bottom:50px;
}

.hero h2{
font-size:40px;
margin-bottom:15px;
}

.hero p{
max-width:650px;
margin:auto;
margin-bottom:25px;
color:#555;
}

.add-btn{
padding:12px 25px;
font-size:16px;
background:#2563eb;
color:white;
border:none;
border-radius:6px;
cursor:pointer;
transition:0.3s;
}

.add-btn:hover{
background:#1d4ed8;
}

/* NOTES GRID */

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

/* NOTE CARD */

.note{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:0.3s;
position:relative;
}

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

.note h3{
margin-bottom:10px;
font-size:18px;
}

.note p{
color:#444;
font-size:15px;
}

.note button{
margin-top:15px;
background:#ef4444;
border:none;
color:white;
padding:8px 14px;
border-radius:4px;
cursor:pointer;
}

.note button:hover{
background:#dc2626;
}

/* INFO SECTION */

.info-section{
margin-top:70px;
text-align:center;
}

.info-section h2{
margin-bottom:15px;
}

.info-section p{
max-width:700px;
margin:auto;
margin-bottom:15px;
color:#555;
}

/* FOOTER */

footer{
margin-top:60px;
background:#111;
color:white;
text-align:center;
padding:25px;
}

/* MOBILE */

@media(max-width:768px){

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

header{
flex-direction:column;
align-items:flex-start;
}

nav{
margin-top:10px;
}

}