*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#020914;
    color:#fff;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.6;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

button,
input{
    font-family:inherit;
}
/*======================================
        NAVBAR
======================================*/
.navbar{
    border-bottom:1px solid #172238;
    background:#050d18;
    padding: 15px 0;
    top: 0;
    z-index: 1000;
    position: fixed;
    width: 100%;
}
.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 0 45px;
}
.nav-container h1{
    font-size: 1.8rem;
    font-family: system-ui;
    font-weight: 700;
    letter-spacing: 9px;
    color: white;
}
.nav-container span{
    color:#1677ff;
}
.nav-menu{
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-menu a{
    text-decoration: none;
    text-transform: capitalize;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition:all 0.3s ease ;
    padding: 8px ;
    letter-spacing: 1px;
    border-radius: 4px;
}
.nav-menu a:hover{
    color:#1680ff;
    border-bottom: 2px solid #1677ff;
    transform: translateY(4px);
    background: #6d7174;
}
.nav-menu a.active{
    color:#1680ff;
   border-bottom: 2px solid #1677ff;
}
.nav-menu a:active{
    font-size: 1.6rem;
}
/*======================================
        SEARCH
======================================*/
.search input{
    width:320px;
    padding:15px 18px;
    border-radius:10px;
    border:2px solid #243247;
    background:#111b2b;
    color:white;
}
.search input:focus{
    border-color:#1677ff;
    box-shadow:0 0 0 3px rgba(22,119,255,.15);
    outline:2px solid #1677ff;
    outline-offset:3px;
}
/* =========================
   SEARCH RESULTS
========================= */

.search {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    border: 1px solid #e5e7eb;
    z-index: 9999;
    display: none;
}

/* Individual result */

.search-result {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #eeeeee;
    transition: background 0.2s ease;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: #f5f8ff;
}

.search-result strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result small {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

/* No result */

.no-results {
    padding: 18px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.search-result-info {
    min-width: 0;
}

.search-result-info strong {
    margin-bottom: 3px;
}

.search-result-info small {
    margin-bottom: 3px;
}

.search-result-info span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1677ff;
}
/*======================================
      HAMBURGER
======================================*/
.hamburger{
    display:none;
    width:32px;
    cursor:pointer;
}
.bar{
    display:block;
    height:3px;
    margin:6px 0;
    background:#fff;
    border-radius:5px;
    transition:.3s;
}
/* Breadcrumb */
.breadcrumb{
    padding:25px 55px;
    color:#ccd2d6;
    margin-top:90px;
    font-family: system-ui;
    font-weight: 700;
    font-size: 1rem;
}
/* main section */
.hero-section{
    display: flex;
    flex-direction: column;
    margin-left: 100px;
    margin-top: 20px;
}
.hero-heading h1{
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}
.hero-heading h1 span{
    color: #1677ff;
}
/* author info */
.author-info{
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
}
.author-img{
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    margin-left: 40px;
}
.author-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-info .author-text h2{
    margin: 0;
    letter-spacing: 1px;
}
.author-info .author-text p{
    margin: 3px 0;
    font-size: 15px;
    color: #ccd2d6;
    line-height: 1.5;
    font-family: system-ui;
}
.author-info .author-text small{
    font-size: 12px;
    font-family: system-ui;
    font-weight: 700;
    color: #64748b;
}
/* product img */
.product-img{
    display: flex;
    margin-left: 80px;
}
.mobile-image{
    width: 976px;
    height: 486px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222529;
 
}
.mobile-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-detail{
    max-width: 1200px;
    margin-left: 80px;
    margin-top: 20px;
    margin-bottom: 30px;
    align-items: center;
}
.article-detail p{
    font-size: 18px;
    color: #ccd2d6;
    line-height: 1.6;
}
/* top mobile */
.top-mobile{
    display: flex;
   margin-left: 200px;
   /* align-items: center; */
   flex-direction: column;
}
.top-heading h2{
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.mobile-section{
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    /* margin: 0 auto; */
    margin-top: 40px;
    margin-bottom: 30px;
}

.compare-card {
  background: #111b2b;
  border: 2px solid #243247;
  border-radius: 12px;
  padding: 16px; 
  position: relative;
  box-shadow: 0 4px 20px rgba(10,37,64,0.8);
  transition:.35s ease;
  overflow: hidden;
}
.compare-card:hover{
    transform:translateY(-8px);
    border-color:#005fe0;
    box-shadow:0 15px 35px rgba(22,119,255,.25);
}
.cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgb(132, 245, 132); 
  color: #243247;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
  z-index: 2;
}
.vs-images { 
    width: 100%; 
    height: 210px; 
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px; 
}
.vs-images img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:.35s;
}
.compare-card:hover .vs-images img{
    transform:scale(1.08);
}

.compare-card b{
    color: rgb(132, 245, 132);
    margin-left: 18px;
    font-size: 22px;
}
.cloneheading{
    color: rgb(132, 245, 132);
}
.compare-card p { 
  font-size: 14px; 
  color: #aaa; 
  margin-top: 12px;
  margin-bottom: 11px;
  max-width: 300px;
  font-weight: 600; 
  line-height: 1.6;
}

.compare-btn {
    width:100%;
    background:#2563EB;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:10px 0;
    font-weight:700;
    cursor:pointer;
    display:flex;
    gap:6px;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-family: system-ui;
}
.compare-btn:hover { 
    background:#005fe0;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(22,119,255,.35); 
}
.compare-btn:active{
    transform:scale(.98);
}
.compare-btn:focus{
    outline:2px solid #1677ff;
    outline-offset:3px;
}
::selection{
    background:#1677ff;
    color:#fff;
}

main{
    animation:fadeUp .6s ease;
}
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Footer */
footer{
    margin-top:50px;
    padding:40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align:center;
    color:white;
    border-top: 2px solid #1677ff;
}

 /*=========================================
        TABLET
=========================================*/

@media(max-width:992px){
.search input{
    max-width:250px;
}
.nav-menu{
    gap:18px;
}
}


@media (max-width: 768px){
    body{
        padding-bottom: 80px;
    }
    /* NAVBAR MOBILE */
    .hamburger{
        display: block;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-container{
        flex-wrap:wrap;
    }
    .search{
        order:3;
        width:100%;
        margin-top:12px;
    }
    .search input{
        max-width:100%;
    }
    .hamburger{
        display:block;
    }
    .nav-menu{
        display:none;
        width:100%;
        flex-direction:column;
        align-items:flex-start;
        background:#091321;
        margin-top:15px;
        padding:15px;
        border-radius:10px;
    }
    .nav-menu.active{
        display:flex;
    }
    .nav-menu a{
        width:100%;
        padding:12px 0;
    }
    .breadcrumb{
        padding: 20px 25px;
        margin-top: 122px;
    }
    /* 1. MAIN MARGINS KHATAM */
    .hero-section{
        margin-left: 0;
        margin-top: 15px;
        padding: 0 15px;
    }
    .article-detail{
        margin-left: 0;
        padding: 0 15px;
        max-width: 100%;
    }
    .top-mobile{
        margin-left: 0;
        padding: 0 15px;
    }

    /* 2. HEADING */
    .hero-heading h1{
        font-size: 1.6rem;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    /* 3. AUTHOR INFO - IMG LEFT, TEXT RIGHT */
    .author-info{
        gap: 12px;
        margin-bottom: 25px;
        align-items: center;
    }
    .author-img{
        width: 50px;
        height: 50px;
        margin-left: 0; 
        flex-shrink: 0;
    }
    .author-info .author-text h2{
        font-size: 14px;
    }
    .author-info .author-text p{
        font-size: 12px;
    }
    .author-info .author-text small{
        font-size: 10px;
    }

    /* 4. PRODUCT IMG FULL WIDTH */
    .product-img{
        margin-left: 0;
        margin-bottom: 20px;
    }
    .mobile-image{
        width: 100%;
        height: 200px;
    }

    /* 5. ARTICLE TEXT */
    .article-detail p{
        font-size: 14px;
        line-height: 1.6;
    }

    /* 6. TOP MOBILE HEADING */
    .top-heading h2{
        font-size: 1.4rem;
        letter-spacing: 0;
    }

    /* 7. MOBILE CARDS - 2 IN 1 ROW */
    .mobile-section{
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-content: center;
    }
    .compare-card h3{
        font-size: 1rem;
        margin-top: 12px;
        text-align: center;
    }
    .compare-card p{
        font-size: 1rem;
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .compare-btn{
        width: 100%;
        padding: 10px;
        font-size: 14px;
        text-align: center;
        display: block;
    }
    .cat-badge{
        font-size: 12px;
        padding: 3px 8px;
    }
    footer{
        padding: 20px;
    }

   /* BOTTOM NAV  */
    .bottom-nav{
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #050d18;
        border-top: 1px solid #172238;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
    }
    .bottom-nav a{
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: #b8c2d0;
    }
    .bottom-nav a.active{
        color: #1677ff;
    }
    .bottom-nav span{
        font-size: 22px;
        margin-bottom: 3px;
    }
}
/* Desktop me bottom nav hide */
@media (min-width: 769px){
    .bottom-nav{
        display: none;
    }
}

@media(max-width:420px){
    .navbar{
        padding-top: 10px;
        padding-bottom: 5px;
    }
    .nav-container h1{
        font-size: 1.3rem;

    }
    .search{
        margin-top: 5px;
    }
    .search input{
        padding: 8px 8px;
    }
    .bar{
        height: 2px;
    }
}
@media (max-width: 400px) {
    .breadcrumb{
        margin-top: 82px;
    }
}
/* ============ CHOTA MOBILE 480px TAK - 1 CARD 1 LINE ============ */
@media (max-width: 420px) {
  .hero-heading h1{font-size: 1.4rem;}
  .mobile-section{
    flex-direction: column;
  }
  .pick-card-info{
    width: 100%; /* 1 card full width */
  }
  .pick-card-img{
    width: 120px;
    height: 120px;
  }
}