/* ================= GLOBAL ================= */

html{
scroll-behavior:smooth;
transition:0.3s;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Inter',sans-serif;
background:#f7f8fc;
color:#111827;
overflow-x:hidden;
line-height:1.6;
}

/* ================= HERO ================= */

.hero{

min-height:850px;

padding-top:120px;

position:relative;

overflow:hidden;

background-image:
linear-gradient(
135deg,
rgba(5,8,22,0.95),
rgba(26,11,75,0.88),
rgba(109,40,217,0.78)
),
url('image/hero1.png');

background-size:cover;

background-position:center right;

background-repeat:no-repeat;

}

/* CONTAINER */

.hero-container{

max-width:1400px;

margin:auto;

padding:0 60px;

display:flex;
align-items:center;
justify-content:flex-start;

position:relative;

z-index:2;
}

/* LEFT */

.hero-left{
max-width:760px;
}

/* BADGE */

.hero-badge{

display:inline-flex;
align-items:center;
gap:10px;

padding:14px 22px;

border-radius:999px;

background:
rgba(255,255,255,0.08);

border:
1px solid rgba(255,255,255,0.1);

color:white;

margin-bottom:35px;

font-weight:600;
}

/* TITLE */

.hero h1{

font-size:88px;
font-weight:800;

line-height:1.05;

color:white;

margin-bottom:25px;
}

/* TEXT */

.hero p{

font-size:24px;

line-height:1.7;

color:
rgba(255,255,255,0.82);

margin-bottom:40px;
}

/* SEARCH */

.hero-search{

width:100%;

max-width:820px;

background:white;

border-radius:999px;

padding:12px;

display:flex;
align-items:center;

box-shadow:
0 20px 60px rgba(0,0,0,0.2);
}

.hero-search input{

flex:1;

height:70px;

border:none;

padding:0 30px;

font-size:20px;

outline:none;

border-radius:999px;

background:transparent;
}

.hero-search button{

height:70px;

padding:0 42px;

border:none;

border-radius:999px;

background:
linear-gradient(
135deg,
#4f46e5,
#7c3aed
);

color:white;

font-size:20px;
font-weight:700;

cursor:pointer;

transition:0.3s;
}

.hero-search button:hover{
transform:translateY(-2px);
}

/* FEATURES */

.hero-features{

display:flex;
gap:30px;

margin-top:35px;

flex-wrap:wrap;
}

.hero-features span{

display:flex;
align-items:center;
gap:10px;

font-size:18px;

color:white;
}

/* FLOAT */

@keyframes float{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-15px);
}

100%{
transform:translateY(0px);
}

}

/* ================= SECTION ================= */

.section-title{

font-size:38px;
font-weight:800;

margin-bottom:40px;
}

/* ================= POPULAR ================= */

.popular-section{
padding:90px 8%;
}

.tool-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));

gap:30px;
}

/* TOOL CARD */

.tool-card{

background:white;

border-radius:24px;

padding:35px;

transition:0.3s ease;

border:1px solid #ececf2;

box-shadow:
0 10px 30px rgba(0,0,0,0.04);
}

.tool-card:hover{

transform:translateY(-8px);

background:white;

box-shadow:
0 20px 50px rgba(0,0,0,0.08);
}

/* TOOL ICON */

.tool-icon{

width:70px;
height:70px;

border-radius:18px;

display:flex;
align-items:center;
justify-content:center;

font-size:28px;

margin-bottom:25px;
}

.green{
background:#dcfce7;
color:#16a34a;
}

.red{
background:#fee2e2;
color:#dc2626;
}

.purple{
background:#f3e8ff;
color:#9333ea;
}

.blue{
background:#dbeafe;
color:#2563eb;
}

/* CARD TEXT */

.tool-card h3{

font-size:28px;

margin-bottom:15px;

color:#111827;
}

.tool-card p{

color:#6b7280;

line-height:1.7;

margin-bottom:25px;
}

.tool-card a{

display:inline-flex;
align-items:center;
gap:10px;

text-decoration:none;

color:#6d28d9;

font-weight:600;
}

/* ================= CATEGORY ================= */

.category-section{
padding:20px 8% 100px;
}

.category-grid{

display:grid;

grid-template-columns:
repeat(auto-fit,minmax(220px,1fr));

gap:25px;
}

.category-card{

background:white;

border-radius:20px;

padding:30px;

border:1px solid #ececf2;

transition:0.3s;

text-align:center;

box-shadow:
0 10px 30px rgba(0,0,0,0.04);
}

.category-card:hover{

transform:translateY(-5px);

box-shadow:
0 20px 40px rgba(0,0,0,0.08);
}

.category-card i{

font-size:40px;

margin-bottom:20px;

color:#6d28d9;
}

.category-card h3{

margin-bottom:10px;

font-size:24px;
}

.category-card p{

color:#6b7280;
}

/* ================= DARK MODE ================= */

body.dark-mode{

background:#020617;

color:white;
}

/* NAVBAR */

body.dark-mode .navbar{

background:
rgba(2,6,23,0.85);

border-bottom:
1px solid rgba(255,255,255,0.06);
}

/* NAV TEXT */

body.dark-mode .drop-btn,
body.dark-mode .nav-links a,
body.dark-mode .login-btn{

color:white;
}

/* CARDS */

body.dark-mode .tool-card,
body.dark-mode .category-card,
body.dark-mode .preview-card,
body.dark-mode .compress-sidebar,
body.dark-mode .editor-sidebar{

background:#0f172a;

border:
1px solid rgba(255,255,255,0.05);

color:white;
}

/* DARK HOVER */

/* DARK MODE CARDS */

body.dark-mode .tool-card,
body.dark-mode .category-card{

background:#111827 !important;

border:
1px solid rgba(255,255,255,0.08);

box-shadow:
0 10px 30px rgba(0,0,0,0.35);
}

/* DARK MODE HOVER */

body.dark-mode .tool-card:hover,
body.dark-mode .category-card:hover{

background:#1f2937 !important;

transform:translateY(-8px);

box-shadow:
0 20px 50px rgba(0,0,0,0.45);
}

/* DARK MODE TEXT */

body.dark-mode .tool-card h3,
body.dark-mode .category-card h3{

color:white !important;
}

body.dark-mode .tool-card p,
body.dark-mode .category-card p{

color:#d1d5db !important;
}

body.dark-mode .tool-card a{

color:#8b5cf6 !important;
}

/* DARK TEXT */

body.dark-mode .tool-card h3,
body.dark-mode .category-card h3{

color:white;
}

body.dark-mode .tool-card p,
body.dark-mode .category-card p{

color:#d1d5db;
}

body.dark-mode .tool-card{

background:#111827;

border:
1px solid rgba(255,255,255,0.08);
}

body.dark-mode .tool-card h3{

color:white;
}

body.dark-mode .tool-card:hover{

transform:translateY(-8px);

background:#1f2937;

box-shadow:
0 20px 50px rgba(0,0,0,0.45);
}

body.dark-mode .tool-card a{

color:#8b5cf6;
}

/* SEARCH */

body.dark-mode .hero-search{

background:#0f172a;
}

body.dark-mode .hero-search input{

background:#0f172a;

color:white;
}

/* DROPDOWN */

body.dark-mode .mega-menu{

background:#0f172a;

border:
1px solid rgba(255,255,255,0.05);
}

body.dark-mode .mega-column a{

color:#94a3b8;
}

body.dark-mode .mega-column a:hover{

color:white;
}

/* FOOTER */

body.dark-mode .footer{

background:#020617;
}

/* INPUTS */

body.dark-mode input,
body.dark-mode select{

background:#111827 !important;

color:white !important;
}

/* BUTTON */

body.dark-mode .theme-toggle{

background:#1e293b;

color:white;
}

.orange{
background:#fff7ed;
color:#ea580c;
}

.purple{
background:#f3e8ff;
color:#7c3aed;
}

.blue{
background:#eff6ff;
color:#2563eb;
}