/* ======================================
   AIForge Master CSS
   Part 1
====================================== */

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

:root{

--primary:#4F46E5;
--secondary:#7C3AED;
--background:#0F172A;
--card:#1E293B;
--text:#F8FAFC;
--gray:#CBD5E1;
--border:#334155;
--success:#10B981;

}

html{

scroll-behavior:smooth;

}

body{

font-family:'Poppins',sans-serif;
background:var(--background);
color:var(--text);
line-height:1.7;

}

.container{

width:90%;
max-width:1300px;
margin:auto;

}

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

header{

background:#111827;
border-bottom:1px solid var(--border);
position:sticky;
top:0;
z-index:999;

}

header .container{

display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;

}

.logo{

font-size:28px;
font-weight:700;
color:white;

}

.logo span{

color:var(--primary);

}

nav{

display:flex;
gap:30px;

}

nav a{

text-decoration:none;
color:white;
font-weight:500;
transition:.3s;

}

nav a:hover{

color:var(--primary);

}

/* ================= HERO ================= */

.hero{

padding:90px 0;
text-align:center;

}

.hero {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero p{

max-width:700px;
margin:auto;
color:var(--gray);
font-size:18px;

}

#searchBox{

width:100%;
max-width:650px;
margin-top:40px;
padding:18px 25px;
border:none;
outline:none;
border-radius:50px;
background:#1E293B;
color:white;
font-size:17px;
border:1px solid var(--border);

}

#searchBox:focus{

border-color:var(--primary);

}

/* ================= BUTTON ================= */

button{

cursor:pointer;
font-family:'Poppins',sans-serif;

}
/* ======================================
   Categories
====================================== */

.section-title{
text-align:center;
font-size:36px;
margin:70px 0 40px;
font-weight:700;
}

.categories{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:15px;
margin-bottom:60px;
}

.category-btn{

background:var(--card);
color:white;
border:1px solid var(--border);
padding:12px 25px;
border-radius:50px;
font-size:15px;
transition:.3s;

}

.category-btn:hover{

background:var(--primary);

}

.category-btn.active{

background:var(--primary);

}

/* ======================================
   Tools Grid
====================================== */

.tools-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
margin-bottom:80px;

}

/* ======================================
   Tool Card
====================================== */

.tool-card{

background:var(--card);
border:1px solid var(--border);
border-radius:18px;
padding:25px;
transition:.35s;
display:flex;
flex-direction:column;

}

.tool-card:hover{

transform:translateY(-8px);
box-shadow:0 15px 40px rgba(0,0,0,.35);

}

.tool-image{

width:70px;
height:70px;
border-radius:18px;
object-fit:cover;
margin-bottom:20px;

}

.tool-card h3{

font-size:24px;
margin-bottom:10px;

}

.tool-card p{

color:var(--gray);
margin-bottom:20px;
flex:1;

}

.tool-category{

display:inline-block;
background:rgba(79,70,229,.2);
color:#A5B4FC;
padding:6px 14px;
border-radius:30px;
font-size:13px;
margin-bottom:18px;

}

.tool-link{

display:inline-block;
text-decoration:none;
background:var(--primary);
color:white;
padding:12px 20px;
border-radius:10px;
font-weight:600;
transition:.3s;

}

.tool-link:hover{

background:var(--secondary);

}
/* ======================================
   Newsletter
====================================== */

.newsletter{

padding:80px 20px;
text-align:center;
background:#111827;
margin-top:60px;

}

.newsletter h2{

font-size:36px;
margin-bottom:15px;

}

.newsletter p{

color:var(--gray);
margin-bottom:30px;

}

.newsletter form{

display:flex;
justify-content:center;
flex-wrap:wrap;
gap:15px;

}

.newsletter input{

width:320px;
padding:15px 20px;
border-radius:10px;
border:1px solid var(--border);
background:var(--card);
color:white;
font-size:16px;
outline:none;

}

.newsletter button{

padding:15px 28px;
border:none;
border-radius:10px;
background:var(--primary);
color:white;
font-weight:600;
transition:.3s;

}

.newsletter button:hover{

background:var(--secondary);

}

/* ======================================
   Footer
====================================== */

footer{

background:#020617;
padding:60px 20px 25px;
margin-top:80px;

}

.footer-container{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;

}

footer h3,
footer h4{

margin-bottom:15px;

}

footer p{

color:var(--gray);

}

footer ul{

list-style:none;

}

footer li{

margin-bottom:10px;

}

footer a{

color:var(--gray);
text-decoration:none;
transition:.3s;

}

footer a:hover{

color:white;

}

.copyright{

text-align:center;
margin-top:40px;
padding-top:20px;
border-top:1px solid var(--border);
color:var(--gray);

}

/* ======================================
   Responsive
====================================== */

@media(max-width:768px){

header .container{

flex-direction:column;
gap:20px;

}

nav{

flex-wrap:wrap;
justify-content:center;

}

.hero h2{

font-size:34px;

}

.section-title{

font-size:28px;

}

.newsletter input{

width:100%;

}

.newsletter button{

width:100%;

}

   }
/* ===== TOOL CARDS IMPROVEMENTS ===== */
.tool-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #334155;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.tool-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 2px solid #334155;
  transition: border-color 0.3s ease;
}

.tool-card:hover img {
  border-color: #3b82f6;
}

.tool-card h3 {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.tool-card p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 12px;
}

.tool-card .category {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px 4px 8px 0;
}

.tool-card .rating {
  display: inline-block;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
}

.try-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 12px;
  width: 100%;
}

.try-btn:hover {
  background: #2563eb;
  transform: scale(1.02);
}

/* ===== CATEGORY BUTTONS ===== */
.category-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.category-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

.category-btn.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* ===== SEARCH BOX ===== */
#searchBox {
  width: 100%;
  max-width: 500px;
  padding: 14px 20px;
  border-radius: 30px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

#searchBox:focus {
  outline: none;
  border-color: #3b82f6;
}

#searchBox::placeholder {
  color: #64748b;
}
/* ===== STATISTICS SECTION ===== */
.stats {
  background: #0f172a;
  padding: 40px 0;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  color: #3b82f6;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-item p {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}
/* ===== FOOTER STYLING ===== */
footer {
  background: #0f172a;
  padding: 60px 0 20px;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #f1f5f9;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-col p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #3b82f6;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #3b82f6;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 14px;
}

.footer-col form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer-col form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 14px;
}

.footer-col form input::placeholder {
  color: #64748b;
}

.footer-col form button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-col form button:hover {
  background: #2563eb;
}
