*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

body{
  background:#0f172a;
  color:white;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
}

.logo{
    font-size: 32px;
    font-weight: bold;
    color: #38bdf8;
}

.nav-right{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-right a{
    color: white;
    text-decoration: none;
    transition: .3s;
}

.nav-right a:hover{
    color: #38bdf8;
}

.hero{
  text-align:center;
  padding:80px 20px;
}

.hero h1{
  font-size:42px;
  color:#38bdf8;
}

.hero p{
  max-width:700px;
  margin:20px auto;
  line-height:1.6;
  color:#cbd5e1;
}

.hero button{
  padding:15px 30px;
  border:none;
  border-radius:10px;
  background:#38bdf8;
  color:white;
  font-size:18px;
  cursor:pointer;
}

.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  padding:50px 8%;
}

.card{
  background:#1e293b;
  padding:25px;
  border-radius:15px;
  text-align:center;
}

.card h2{
  color:#38bdf8;
  margin-bottom:10px;
}

footer{
  text-align:center;
  padding:20px;
  background:#111827;
}
.search-box{
    text-align:center;
    margin:30px;
}

.search-box input{
    width:90%;
    max-width:500px;
    padding:15px;
    border:none;
    border-radius:10px;
    font-size:18px;
    outline:none;
    background:#1e293b;
    color:white;
}

.search-box input::placeholder{
    color:#bbb;
}
.top-tools{
    padding:40px 20px;
    text-align:center;
}

.top-tools h2{
    color:#38bdf8;
    margin-bottom:20px;
}
.visit-btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 20px;
    background:#38bdf8;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
    transition:0.3s;
}

.visit-btn:hover{
    background:#0ea5e9;
    transform:scale(1.05);
}
.free{
    background:#22c55e;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:14px;
    font-weight:bold;
}

.paid{
    background:#ef4444;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:14px;
    font-weight:bold;
}
.featured{
    padding:60px 20px;
    text-align:center;
}

.featured-card{
    max-width:700px;
    margin:auto;
    background:#1e293b;
    padding:30px;
    border-radius:20px;
    box-shadow:0 0 20px rgba(56,189,248,.3);
}

.featured-card h3{
    color:#38bdf8;
    margin-bottom:15px;
}

.featured-card p{
    line-height:1.8;
    color:#d1d5db;
    margin-bottom:20px;
}
.filter-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin:20px;
}

.filter-btn{
    padding:10px 18px;
    border:none;
    border-radius:25px;
    background:#1e293b;
    color:white;
    cursor:pointer;
    font-size:16px;
    transition:0.3s;
}

.filter-btn:hover{
    background:#38bdf8;
}

.filter-btn.active{
    background:#38bdf8;
}
#themeBtn{
    padding:10px 15px;
    border:none;
    border-radius:10px;
    background:#38bdf8;
    color:white;
    font-size:18px;
    cursor:pointer;
    margin-left:10px;
}

.light-mode{
    background:#f5f5f5;
    color:#111;
}

.light-mode .card,
.light-mode .featured-card{
    background:white;
    color:#111;
}

.light-mode header,
.light-mode footer{
    background:#e5e5e5;
}
.fav-btn{
    margin-top:12px;
    padding:10px 18px;
    border:none;
    border-radius:8px;
    background:#ff4d6d;
    color:white;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

.fav-btn:hover{
    transform:scale(1.05);
}

.fav-btn.active{
    background:#22c55e;
}
.trending{
    text-align:center;
    margin:50px 20px;
}

.trending h2{
    color:#38bdf8;
    margin-bottom:20px;
}
.search-box{
    text-align:center;
    margin:20px;
}

.search-box input{
    width:90%;
    max-width:400px;
    padding:12px;
    border:none;
    border-radius:10px;
    font-size:18px;
    outline:none;
}
.filter-box{
    text-align:center;
    margin:20px 0;
}

.filter-box button{
    margin:5px;
    padding:10px 15px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#3b82f6;
    color:white;
}
.compare-table{
    width:95%;
    margin:auto;
    border-collapse:collapse;
    margin-top:30px;
}

.compare-table th,
.compare-table td{
    border:1px solid #38bdf8;
    padding:12px;
    text-align:center;
}

.compare-table th{
    background:#38bdf8;
    color:white;
}

.compare-table tr:nth-child(even){
    background:#1e293b;
}
#logoutBtn{
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 15px;
}

#logoutBtn:hover{
    background: #e60000;
    transform: scale(1.05);
}
.user-profile{
    display:flex;
    align-items:center;
    gap:8px;
    background:#1e293b;
    padding:8px 12px;
    border-radius:12px;
    border:1px solid #38bdf8;
}

.avatar{
    width:35px;
    height:35px;
    border-radius:50%;
    background:#38bdf8;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

#userName{
    color:white;
    font-weight:bold;
    font-size:15px;
}
.blog-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px;
}

.blog-card {
    background: #1e293b;
    border: 1px solid #38bdf8;
    border-radius: 18px;
    padding: 25px;
    transition: .3s;
    box-shadow: 0 0 15px rgba(56, 189, 248, .2);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(56, 189, 248, .4);
}

.blog-card h2 {
    color: #38bdf8;
    margin-bottom: 15px;
}

.blog-card p {
    color: #d1d5db;
    line-height: 1.7;
    margin-bottom: 20px;
}
.author-card{
    background:#1e293b;
    border-left:5px solid #38bdf8;
    padding:20px;
    margin:40px auto;
    border-radius:12px;
    color:white;
    max-width:900px;
}

.author-card h3{
    color:#38bdf8;
    margin-bottom:10px;
}

.author-card p{
    color:#d1d5db;
    line-height:1.8;
}
.blog-post{
    max-width:900px;
    margin:40px auto;
    padding:20px;
    color:white;
    line-height:1.8;
}

.blog-image{
    width:100%;
    max-width:900px;
    display:block;
    margin:20px auto;
    border-radius:12px;
}

.blog-post h1{
    color:#38bdf8;
    margin-bottom:15px;
}

.blog-post p{
    color:#d1d5db;
    line-height:1.8;
}
.nav-right a{
    color:white;
    text-decoration:none;
    padding:10px 18px;
    border-radius:10px;
    transition:0.3s;
    font-weight:600;
}

.nav-right a:hover{
    background:#38bdf8;
    color:#0f172a;
}

.nav-right a[href="blog.html"]{
    background:#38bdf8;
    color:#0f172a;
    border:2px solid #38bdf8;
    box-shadow:0 0 15px rgba(56,189,248,.4);
}
.visitor-box{
    max-width:600px;
    margin:50px auto;
    padding:30px;
    text-align:center;
    background:#1e293b;
    border:2px solid #38bdf8;
    border-radius:18px;
    box-shadow:0 0 20px rgba(56,189,248,.3);
}

.visitor-box h2{
    color:#38bdf8;
    margin-bottom:10px;
}

.visitor-box h1{
    font-size:55px;
    color:#fff;
    margin:15px 0;
}

.visitor-box p{
    color:#cbd5e1;
    font-size:18px;
}
.footer-links{
    margin-top:15px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#38bdf8;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:white;
}
.blog-btn{
display:flex;
align-items:center;
justify-content:space-between;
background:linear-gradient(135deg,#3b82f6,#0ea5e9);
padding:16px 20px;
border-radius:16px;
color:white;
text-decoration:none;
font-weight:700;
box-shadow:0 8px 25px rgba(14,165,233,.35);
transition:.3s;
}

.blog-btn:hover{
transform:translateY(-3px);
box-shadow:0 12px 30px rgba(14,165,233,.5);
}

        
