/* =====================================
   My Finance Tools — Premium Glass UI
   Developed by Virat Chauhan
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at top left, #141e30, #243b55);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  color: #00f0ff;
  transform: scale(1.1);
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  margin: 2rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25);
  transition: all 0.3s ease;
}

.hero:hover {
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.35);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-btn {
  background: linear-gradient(45deg, #00f0ff, #00ffaa);
  color: #000;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: linear-gradient(45deg, #00ffaa, #00f0ff);
  transform: scale(1.05);
}

/* ================= TOOL CARDS ================= */
.tools-section {
  padding: 4rem 1rem;
  text-align: center;
}

.tools-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #00f0ff;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.1);
  padding: 2rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.15);
}

.tool-card i {
  font-size: 2.5rem;
  color: #00e0ff;
  margin-bottom: 1rem;
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.tool-card:hover i {
  transform: scale(1.2);
  color: #00ffaa;
  filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8));
}

.tool-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ================= BLOG SECTION ================= */
.blog-section {
  padding: 3rem 2rem;
  margin: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.15);
}

.blog-section h2 {
  color: #00f0ff;
  text-align: center;
  font-size: 1.8rem;
}

.blog-section article {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.blog-section article:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
  transform: scale(1.02);
}

.blog-section h3 {
  margin-bottom: 0.5rem;
  color: #00ffaa;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: #00eaff;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  color: #00ffaa;
  text-decoration: underline;
}

/* =======================================================
   BLOG PAGE STYLES (MyFinanceTools.org)
   Integrated with Main Glassmorphism Theme
   ======================================================= */

.blog-content {
  max-width: 850px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
  color: #f3f3f3;
  animation: fadeIn 0.6s ease;
}

.blog-content h3 {
  color: #00eaff;
  margin-top: 1.8rem;
  font-size: 1.3rem;
}

.blog-content p {
  color: #e5e5e5;
  margin-top: 0.8rem;
  font-size: 1rem;
}

.blog-content ul {
  list-style: disc;
  margin: 1rem 0 1rem 2rem;
}

.blog-content li {
  margin-bottom: 0.4rem;
  color: #dcdcdc;
}

/* ---------- Formula Highlight ---------- */
.formula {
  text-align: center;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  margin: 1.5rem auto;
  padding: 1rem;
  font-weight: 600;
  color: #00ffaa;
  width: fit-content;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* ---------- Author Box ---------- */
.author-box {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.author-box img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid #00ffaa;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.author-box a {
  color: #00ffaa;
  text-decoration: none;
  font-weight: 600;
}
.author-box a:hover {
  color: #00f0ff;
}

/* ---------- Highlighted Links ---------- */
.highlight-link {
  color: #00ffaa;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.highlight-link:hover {
  color: #00eaff;
  text-decoration: underline;
}

/* ---------- Ad Box ---------- */
.ad-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  padding: 1rem;
  margin: 2rem 0;
  color: #bbb;
  transition: 0.3s;
}
.ad-box:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Back Button ---------- */
.back-btn {
  text-align: center;
  margin-top: 2.5rem;
}
.back-btn a {
  color: #00eaff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.back-btn a:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ---------- Fade Animation ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .blog-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-box img {
    margin: 0 0 1rem 0;
  }
}


/* ================= POPUP TOOL WINDOW ================= */
.tool-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 40, 60, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  z-index: 2000;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.tool-window h2 {
  color: #00ffaa;
  margin-bottom: 1rem;
}

.tool-window input {
  width: 90%;
  margin: 0.5rem 0;
  padding: 0.7rem;
  border: none;
  border-radius: 10px;
  outline: none;
  text-align: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tool-window button {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #00eaff, #00ffaa);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tool-window button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #00ffaa, #00eaff);
}

.close-btn {
  background: linear-gradient(45deg, #ff3b3b, #ff6b6b) !important;
  color: #fff;
  margin-top: 1.2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/*==========================CONTACT PAGE===================================*/
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.contact-item i {
  color: #00ffaa;
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.contact-item a {
  color: #e5e5e5;
  text-decoration: none;
  transition: 0.3s;
}

.contact-item a:hover {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}


/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #ddd;
}

.dev-link {
  color: #00eaff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.dev-link:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ================= ADS ================= */
.ad-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin: 1.5rem 0;
  color: #bbb;
  font-size: 0.9rem;
  transition: 0.3s;
}

.ad-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 0.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .tool-window {
    width: 95%;
  }
}
