/* =========================================================
   SMART TOOLS PRO — ULTRA PREMIUM UI CSS
   Full Enhanced Version
   Includes:
   ✔ Premium Glow Background
   ✔ Glassmorphism
   ✔ Smooth Hover Effects
   ✔ Shine Animations
   ✔ Neon Borders
   ✔ Animated Buttons
   ✔ Cinematic Cards
   ✔ Scrollbar Styling
   ✔ Responsive Layout
   ✔ Floating Effects
   ✔ Modern Dark Theme
========================================================= */

/* =========================
   ROOT VARIABLES
========================= */
:root{

  --bg: #0b0b0c;

  --card: #111827;
  --card2: #1f2937;

  --text: #ffffff;
  --muted: #cbd5e1;

  --primary: #22c55e;
  --primary2: #4ade80;

  --border: rgba(255,255,255,0.06);

  --shadow:
    0 10px 30px rgba(0,0,0,0.4);

  --transition: 0.3s ease;

  --radius: 14px;
}

/* =========================
   GLOBAL RESET
========================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

html,
body{
  margin: 0;
  padding: 0;

  width: 100%;
  min-height: 100%;

  overflow-x: hidden;

  font-family: Arial, sans-serif;

  background: var(--bg);
  color: var(--text);
}

/* BODY FLEX */
body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  position: relative;
}

/* =========================
   PREMIUM BACKGROUND GLOW
========================= */

body::before,
body::after{
  content: "";

  position: fixed;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  filter: blur(120px);

  z-index: -1;

  opacity: 0.14;
}

body::before{
  top: -120px;
  left: -120px;

  background: #22c55e;
}

body::after{
  bottom: -120px;
  right: -120px;

  background: #3b82f6;
}

/* =========================
   GRID BACKGROUND
========================= */

body{
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 40px 40px;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
  width: 10px;
}

::-webkit-scrollbar-track{
  background: #111;
}

::-webkit-scrollbar-thumb{
  background: #2d3748;
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover{
  background: #4b5563;
}

/* =========================
   IMAGE FIX
========================= */

img{
  max-width: 100%;
  display: block;
}

/* =========================
   TEXT SELECTION
========================= */

::selection{
  background: var(--primary);
  color: black;
}

/* =========================
   NAVBAR
========================= */

.navbar{
  position: sticky;
  top: 0;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 14px 20px;

  background: rgba(17,24,39,0.75);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--border);

  z-index: 1000;
}

/* LOGO */

.logo{
  font-size: 22px;
  font-weight: bold;

  color: var(--primary);

  white-space: nowrap;
}

.logo span{
  color: white;
}

/* NAV LINKS */

.nav-links{
  display: flex;
  align-items: center;

  gap: 18px;

  flex-wrap: wrap;
}

.nav-links a{
  position: relative;

  text-decoration: none;

  color: #d1d5db;

  transition: var(--transition);
}

.nav-links a::after{
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0%;
  height: 2px;

  background: var(--primary);

  transition: var(--transition);
}

.nav-links a:hover{
  color: white;
}

.nav-links a:hover::after{
  width: 100%;
}

/* RIGHT SIDE */

.nav-right{
  display: flex;
  align-items: center;

  gap: 10px;
}

/* INPUTS */

.nav-right input,
.nav-right select{

  border: 1px solid transparent;
  outline: none;

  background: var(--card2);

  color: white;

  padding: 10px 12px;

  border-radius: 10px;

  transition: var(--transition);
}

.nav-right input{
  width: 190px;
}

.nav-right input:focus,
.nav-right select:focus{
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px rgba(34,197,94,0.15);
}

/* MENU */

.menu-toggle{
  display: none;

  font-size: 28px;

  cursor: pointer;
}

/* =========================
   FILTERS
========================= */

.filters{
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  padding: 20px;
}

.filters button{

  position: relative;

  overflow: hidden;

  border: none;
  outline: none;

  padding: 10px 16px;

  border-radius: 999px;

  background: var(--card2);

  color: white;

  cursor: pointer;

  transition: var(--transition);
}

.filters button::before{
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.18),
      transparent
    );

  transition: 0.6s;
}

.filters button:hover::before{
  left: 100%;
}

.filters button:hover{
  background: #374151;
}

.filters button.active{
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary2)
    );

  color: black;

  font-weight: bold;

  box-shadow:
    0 0 15px rgba(34,197,94,0.4);
}

/* =========================
   GRID
========================= */

.grid{
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(260px,1fr));

  gap: 22px;

  padding: 20px;
}

/* =========================
   CARD
========================= */

.card{
  position: relative;

  overflow: hidden;

  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      #1f2937,
      #111827
    );

  border: 1px solid var(--border);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* SHINE EFFECT */

.card::after{
  content: "";

  position: absolute;

  top: -120%;
  left: -120%;

  width: 200%;
  height: 200%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.08),
      transparent
    );

  transform: rotate(25deg);

  transition: 0.8s;
}

.card:hover::after{
  top: 100%;
  left: 100%;
}

/* IMAGE OVERLAY */

.card::before{
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.7),
      transparent
    );

  opacity: 0;

  transition: 0.4s;

  z-index: 1;
}

.card:hover::before{
  opacity: 1;
}

/* HOVER */

.card:hover{
  transform: translateY(-6px);

  border-color:
    rgba(34,197,94,0.4);

  box-shadow:
    0 0 10px rgba(34,197,94,0.2),
    0 0 20px rgba(34,197,94,0.12),
    0 20px 40px rgba(0,0,0,0.4);
}

/* IMAGE */

.card img{
  width: 100%;
  height: 190px;

  object-fit: cover;

  transition: 0.5s ease;
}

.card:hover img{
  transform: scale(1.05);
}

/* TITLE */

.card-title{
  position: relative;

  z-index: 2;

  padding: 14px;

  text-align: center;

  font-weight: 600;
}

/* =========================
   TOOLS SECTION
========================= */

.tools-section{
  padding: 40px 20px;
}

.tools-title{
  text-align: center;

  font-size: 24px;

  margin-bottom: 24px;
}

/* GRID */

.tools-grid{
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(220px,1fr));

  gap: 20px;
}

/* TOOL CARD */

.tool-card{
  position: relative;

  overflow: hidden;

  padding: 20px;

  border-radius: var(--radius);

  text-decoration: none;

  color: white;

  background:
    linear-gradient(
      145deg,
      #1f2937,
      #111827
    );

  border: 1px solid var(--border);

  transition: var(--transition);

  animation:
    floating 5s ease-in-out infinite;
}

/* FLOATING */

.tool-card:nth-child(2){
  animation-delay: 1s;
}

.tool-card:nth-child(3){
  animation-delay: 2s;
}

@keyframes floating{
  0%{
    transform: translateY(0px);
  }

  50%{
    transform: translateY(-6px);
  }

  100%{
    transform: translateY(0px);
  }
}

/* SHINE */

.tool-card::after{
  content: "";

  position: absolute;

  top: -120%;
  left: -120%;

  width: 200%;
  height: 200%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.08),
      transparent
    );

  transform: rotate(25deg);

  transition: 0.8s;
}

.tool-card:hover::after{
  top: 100%;
  left: 100%;
}

/* HOVER */

.tool-card:hover{
  transform: translateY(-8px);

  box-shadow:
    0 12px 30px rgba(34,197,94,0.15);
}

/* GLOW */

.tool-card::before{
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  padding: 1px;

  background:
    linear-gradient(
      130deg,
      transparent,
      rgba(34,197,94,0.8),
      transparent
    );

  opacity: 0;

  transition: var(--transition);
}

.tool-card:hover::before{
  opacity: 1;
}

/* ICON */

.tool-icon{
  font-size: 30px;

  margin-bottom: 12px;
}

/* TITLE */

.tool-title{
  font-size: 17px;
  font-weight: bold;

  margin-bottom: 10px;
}

/* DESC */

.tool-desc{
  font-size: 13px;

  color: #b6bec9;

  line-height: 1.6;
}

/* =========================
   PAGINATION
========================= */

.pagination{
  display: flex;
  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  padding: 35px 15px;
}

.pagination button{

  position: relative;

  overflow: hidden;

  border: none;
  outline: none;

  min-width: 45px;

  padding: 10px 16px;

  border-radius: 10px;

  background: var(--card2);

  color: #ccc;

  cursor: pointer;

  transition: var(--transition);
}

/* SHINE */

.pagination button::before{
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.15),
      transparent
    );

  transition: 0.6s;
}

.pagination button:hover::before{
  left: 100%;
}

/* ACTIVE */

.pagination button.active{
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary2)
    );

  color: black;

  font-weight: bold;
}

/* =========================
   MODAL
========================= */

.modal{
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.92);

  z-index: 2000;

  overflow-y: auto;

  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn{
  from{
    opacity: 0;
  }

  to{
    opacity: 1;
  }
}

.modal-content{
  width: 90%;
  max-width: 850px;

  margin: 60px auto;

  text-align: center;
}

.modal img{
  border-radius: 14px;
}

.close{
  position: absolute;

  top: 20px;
  right: 30px;

  font-size: 42px;

  cursor: pointer;

  transition: var(--transition);
}

.close:hover{
  color: var(--primary);

  transform: rotate(90deg);
}

/* =========================
   DOWNLOAD BUTTONS
========================= */

.download-buttons{
  margin-top: 18px;
}

.download-buttons a{

  position: relative;

  overflow: hidden;

  display: inline-block;

  padding: 12px 18px;
  margin: 6px;

  border-radius: 10px;

  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary2)
    );

  color: black;

  font-weight: bold;

  transition: var(--transition);
}

.download-buttons a:hover{
  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(34,197,94,0.3);
}

/* =========================
   AD SECTION
========================= */

.ad-section{
  position: relative;

  width: 100%;

  padding: 25px 20px;

  display: flex;
  justify-content: center;
}

.ad-section::before{
  content: "Advertisement";

  position: absolute;
  top: 5px;

  font-size: 11px;

  color: #6b7280;
}

.ad-section #container-8d3cade21266788fd3c0868d7d4549a3{

  width: 100%;
  max-width: 900px;

  padding: 16px;

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      #1f2937,
      #111827
    );

  border: 1px solid var(--border);

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.ad-section #container-8d3cade21266788fd3c0868d7d4549a3:hover{
  transform: translateY(-3px);
}

/* =========================
   FOOTER
========================= */

.stp-footer{
  margin-top: auto;

  background: rgba(17,24,39,0.75);

  border-top: 1px solid var(--border);
}

.stp-footer-container{
  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap: 30px;

  padding: 45px 20px;
}

.stp-footer-col h3,
.stp-footer-col h4{
  margin-bottom: 14px;
}

.stp-footer-col p{
  color: var(--muted);

  line-height: 1.7;
}

.stp-footer-col ul{
  list-style: none;

  padding: 0;
}

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

.stp-footer-col ul li a{
  text-decoration: none;

  color: var(--muted);

  transition: var(--transition);
}

.stp-footer-col ul li a:hover{
  color: var(--primary);
}

.stp-footer-bottom{
  text-align: center;

  padding: 16px;

  border-top: 1px solid var(--border);

  font-size: 13px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

  .navbar{
    flex-wrap: wrap;
  }

  .menu-toggle{
    display: block;
  }

  .nav-links{
    display: none;

    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    padding-top: 10px;
  }

  .nav-links.active{
    display: flex;
  }

  .nav-right{
    width: 100%;

    flex-direction: column;
    align-items: stretch;
  }

  .nav-right input,
  .nav-right select{
    width: 100%;
  }

  .grid{
    grid-template-columns:
      repeat(auto-fill, minmax(160px,1fr));

    gap: 16px;
  }

  .card img{
    height: 140px;
  }

  .tools-grid{
    grid-template-columns:
      repeat(auto-fill, minmax(160px,1fr));
  }

  .stp-footer-container{
    grid-template-columns: 1fr;
  }

  .pagination button{
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* =========================
   EXTRA SMALL
========================= */

@media (max-width: 480px){

  .logo{
    font-size: 18px;
  }

  .grid{
    padding: 15px;
  }

  .tools-section{
    padding: 30px 15px;
  }

}