/* ==========================
   HERO
========================== */

.hero{
    min-height:90vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding-top:80px;

    background:linear-gradient(135deg,var(--bg),var(--surface));

    transition:.3s;
}

.hero-content{
    max-width:900px;
}

.hero-badge{
    display:inline-block;
    background:var(--primary);
    color:var(--text);
    padding:8px 18px;
    border-radius:30px;
    margin-bottom:25px;
    font-size:14px;
}

.hero-tag{
    color:var(--primary);
    font-weight:600;
    letter-spacing:1px;
    margin-bottom:20px;
}

.hero h1{
    font-size:64px;
    line-height:1.1;
    margin-bottom:20px;
    color:var(--text);
}

.hero h1 span{
    color:#3b82f6;
}

.hero-text{
    max-width:700px;
    margin:auto;
    font-size:20px;
    color:var(--text-secondary);
    line-height:1.8;
}

.hero-search{
    display:flex;
    justify-content:center;
    margin:50px auto;
    gap:15px;
}

.hero-search input{
    width:600px;
    max-width:100%;
    padding:18px 22px;
    border:none;
    border-radius:14px;
    background:var(--card);
    color:var(--text);
}

.hero-search button{
    background:var(--primary);
    color:var(--text);
    border:none;
    padding:18px 30px;
    border-radius:14px;
    cursor:pointer;
}

.hero-tags{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}

.hero-tags a{
    padding:10px 18px;
    background:var(--card);
    border-radius:30px;
    color:var(--text);
    text-decoration:none;
    transition:.3s;
}

.hero-tags a:hover{
    background:var(--primary);
}

/* ==========================
   SEARCH SECTION
========================== */

.search-section{
    padding:100px 0;
    background:var(--surface);
    text-align:center;
}

.search-section h2{
    font-size:42px;
    margin-bottom:35px;
}

#searchBox{
    width:100%;
    max-width:700px;
    padding:18px 24px;
    border:none;
    border-radius:12px;
    outline:none;
    background:var(--card);
    color:var(--text);
    font-size:18px;
    margin-bottom:50px;
}

#searchBox::placeholder{
    color:var(--text-secondary);
}

/* ==========================
   FEATURED TOOL
========================== */

.featured-tool{
    padding:80px 0;
}

/* ==========================
   TRENDING
========================== */

.trending{
    padding:100px 0;
     background:var(--bg);
}

/* ==========================
   CATEGORIES
========================== */

.categories{
    padding:100px 0;
}

/* ==========================
   NEWS
========================== */

.news{
    padding:100px 0;
}

/* ==========================
   STATS
========================== */

.stats{
    padding:80px 0 120px;
    background:var(--surface);
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stat-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:20px;
    padding:35px;
    text-align:center;
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
    border-color:#3b82f6;
    box-shadow:0 10px 25px rgba(59,130,246,.2);
}

.stat-card h2{
    font-size:42px;
    color:var(--primary);
    margin-bottom:10px;
}

.stat-card p{
    color:var(--text-secondary);
    font-size:18px;
}

/* ==========================
   SECTION TITLE
========================== */

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:48px;
    margin-bottom:15px;
}

.section-title p{
    color:var(--text-secondary);
    font-size:18px;
}

/* ==========================
   SECTION BUTTON
========================== */

.section-button{
    text-align:center;
    margin-top:40px;
}

.section-button .btn{
    display:inline-block;
}

/* ==========================
   PREMIUM HERO
========================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    animation: float 10s ease-in-out infinite;
}

.circle-1 {
    width: 280px;
    height: 280px;
    background: #3b82f6;
    top: -80px;
    left: -80px;
}

.circle-2 {
    width: 220px;
    height: 220px;
    background: #8b5cf6;
    right: 10%;
    top: 120px;
}

.circle-3 {
    width: 320px;
    height: 320px;
    background: #06b6d4;
    bottom: -120px;
    right: -100px;
}

@keyframes float {
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-25px);
    }
}

.hero h1 span {
    background: linear-gradient(90deg,#3b82f6,#06b6d4,#8b5cf6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:40px;
    flex-wrap:wrap;
}

.hero-search button i{
    margin-right:8px;
}

.stat-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(59,130,246,.25);
}

.counter {
    font-weight: 700;
}

/* ==========================
   NEWSLETTER
========================== */

.newsletter{

    padding:120px 0;

    background:var(--surface);

}

.newsletter-box{

    max-width:850px;

    margin:auto;

    text-align:center;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:28px;

    padding:60px;

    box-shadow:0 25px 60px rgba(0,0,0,.35);

}

.newsletter-badge{

    display:inline-block;

    background:var(--primary);

    color:var(--text);

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;

    margin-bottom:20px;

}

.newsletter-box h2{

    font-size:42px;

    margin-bottom:20px;

}

.newsletter-box p{

    color:var(--text-secondary);

    max-width:650px;

    margin:0 auto 35px;

    line-height:1.8;

}

.newsletter-form{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.newsletter-form input{

    width:420px;

    max-width:100%;

    padding:18px 22px;

    border:none;

    border-radius:14px;

    background:var(--surface);

    color:var(--text);

    outline:none;

}

.newsletter-form button{

    padding:18px 28px;

    border:none;

    border-radius:14px;

    background:var(--primary);

    color:var(--text);

    cursor:pointer;

    transition:.3s;

}

.newsletter-form button:hover{

    background:var(--primary-hover);

}

.newsletter-box small{

    display:block;

    margin-top:20px;

    color:#64748b;

}

/* DARK HERO */

body.dark .hero{

    background:linear-gradient(
        135deg,
        #1f3a8a,
        #0f172a
    );

}

/* LIGHT HERO */

body.light .hero{

    background:linear-gradient(
        135deg,
        #f8fafc,
        #dbeafe
    );

}

/* Circle opacity for themes */

body.light .hero-bg .circle{
    opacity:.15;
}

body.dark .hero-bg .circle{
    opacity:.35;
}

/* Theme-specific hero backgrounds */

body.dark .hero{
    background:linear-gradient(135deg,#1f3a8a,#0f172a);
}

body.light .hero{
    background:linear-gradient(135deg,#f8fafc,#dbeafe);
}