:root{

--primary:#5b6cff;
--secondary:#8f6bff;
--bg:#f5f7fb;
--card:#ffffff;
--text:#1e293b;
--border:#e5e7eb;

}

body.dark{

--bg:#0f172a;
--card:#1e293b;
--text:#f1f5f9;
--border:#334155;

}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:system-ui,-apple-system,Segoe UI,Roboto;
}

body{

background:var(--bg);
color:var(--text);
transition:.3s;

}

/* HEADER */

header{

display:flex;
justify-content:space-between;
align-items:center;
padding:18px 8%;
background:var(--card);
border-bottom:1px solid var(--border);

position:sticky;
top:0;
z-index:10;

}

.logo{

font-size:24px;
font-weight:700;
color:var(--primary);

}

nav a{

margin:0 14px;
text-decoration:none;
color:var(--text);
font-weight:500;

transition:.2s;

}

nav a:hover{

color:var(--primary);

}

/* HERO */

.hero{

text-align:center;
padding:80px 20px;

background:linear-gradient(135deg,#5b6cff,#8f6bff);
color:white;

}

.hero h1{

font-size:40px;
margin-bottom:20px;

}

.hero input{

width:60%;
max-width:500px;

padding:14px 16px;

border-radius:10px;
border:none;

outline:none;

font-size:16px;

box-shadow:0 6px 20px rgba(0,0,0,0.15);

}

/* FILTER */

.filters{

display:flex;
justify-content:center;
gap:20px;

margin:40px 0;

}

.filters select{

padding:10px 14px;

border-radius:8px;
border:1px solid var(--border);

background:var(--card);
color:var(--text);

cursor:pointer;

}

/* GRID */

.tools-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));

gap:28px;

padding:40px 8%;

}

/* TOOL CARD */

.tool-card{

background:var(--card);

padding:22px;

border-radius:14px;

border:1px solid var(--border);

transition:.25s;

position:relative;

}

.tool-card:hover{

transform:translateY(-6px);

box-shadow:0 15px 40px rgba(0,0,0,0.08);

}

/* ICON */

.tool-card img{

width:48px;
height:48px;

margin-bottom:10px;

}

/* TITLE */

.tool-card h3{

font-size:18px;
margin-bottom:4px;

}

/* CATEGORY */

.category{

font-size:13px;
color:#64748b;

margin-bottom:6px;

}

/* RATING */

.rating{

color:#fbbf24;
font-size:14px;
margin-bottom:8px;

}

/* DESCRIPTION */

.tool-card p{

font-size:14px;
line-height:1.5;

}

/* FOOTER */

footer{

margin-top:60px;

background:#020617;

color:white;

text-align:center;

padding:40px;

}

/* DARK MODE BUTTON */

#darkToggle{

background:none;
border:none;
font-size:18px;
cursor:pointer;

}

/* RESPONSIVE */

@media(max-width:900px){

.hero h1{

font-size:30px;

}

.hero input{

width:90%;

}

}

@media(max-width:600px){

header{

flex-direction:column;
gap:10px;

}

nav{

display:flex;
gap:10px;

}

}
.auth{

display:flex;
align-items:center;
gap:10px;

}

#googleLogin{

background:#ffffff;
border:1px solid #ddd;
padding:8px 14px;
border-radius:8px;
cursor:pointer;

}

#googleLogin i{

color:#ea4335;
margin-right:6px;

}

#logoutBtn{

background:#ff4d4d;
color:white;
border:none;
padding:8px 12px;
border-radius:6px;
cursor:pointer;

}

#userBox{

display:flex;
align-items:center;
gap:6px;
font-size:14px;

}

/* button */
.tool-btn{

display:inline-block;
margin-top:10px;

padding:8px 14px;

background:#5b6cff;
color:white;

border-radius:6px;

text-decoration:none;

font-size:14px;

}

.tool-btn:hover{

background:#4453e6;

}