*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ==============================
   NAVBAR
============================== */

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 8%;
  background:#ffffff;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.logo{
  font-size:24px;
  font-weight:800;
  color:#A4161A;
}

.nav-links{
  display:flex;
  align-items:center;
}

.nav-links a{
  margin-left:22px;
  text-decoration:none;
  color:#333;
  font-weight:600;
  transition:0.2s;
}

.nav-links a:hover,
.nav-links a.active{
  color:#A4161A;
}

/* ==============================
   HERO
============================== */

.hero{
  min-height:90vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#6D0F13,#A4161A);
  color:#fff;
}

.hero-container{
  width:85%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
  padding:40px 0;
}

.hero-text{
  flex:1;
}

.hero-text h1{
  font-size:52px;
  line-height:1.1;
  margin-bottom:18px;
}

.hero-text p{
  font-size:18px;
  max-width:560px;
  color:#f3f3f3;
  margin-bottom:26px;
}

/* ==============================
   LANGUAGE BOX
============================== */

.language-box{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}

/* Wrapper for perfect dropdown arrow */
.select-wrap{
  position:relative;
  display:inline-block;
}

/* Dropdown styled like button */
.select-wrap select{
  background:#ffffff;
  color:#A4161A;
  border:none;
  padding:12px 46px 12px 20px;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
  font-weight:700;
  outline:none;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  transition:0.2s;
}

.select-wrap select:hover{
  background:#f5f5f5;
}

/* Custom arrow */
.select-wrap::after{
  content:"▾";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  font-weight:900;
  color:#A4161A;
}

/* ==============================
   BUTTONS
============================== */

.primary-btn{
  background:#ffffff;
  color:#A4161A;
  border:none;
  padding:12px 20px;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
  font-weight:700;
  transition:0.25s;
}

.primary-btn:hover{
  background:#f0f0f0;
  transform:translateY(-2px);
}

.big{
  padding:16px 28px;
  font-size:18px;
}

.secondary-btn{
  background:transparent;
  border:2px solid #fff;
  color:#fff;
  padding:12px 20px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

.secondary-btn:hover{
  background:#ffffff20;
}

.mini-note{
  margin-top:18px;
  color:rgba(255,255,255,0.85);
  font-size:14px;
}

/* ==============================
   FACT BOX
============================== */

.fact-box{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* ==============================
   HERO IMAGE
============================== */

.hero-image{
  flex:1;
  display:flex;
  justify-content:flex-end;
}

.hero-image img{
  width:100%;
  max-width:520px;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,0.45);
}

/* ==============================
   FEATURES
============================== */

.features{
  padding:80px 10%;
  text-align:center;
  background:#fff;
}

.features h2{
  margin-bottom:40px;
  font-size:32px;
  color:#222;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:26px;
}

.card{
  padding:28px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  background:#fff;
  text-align:left;
  transition:0.25s;
}

.card:hover{
  transform:translateY(-6px);
}

.card h3{
  margin-bottom:10px;
  color:#A4161A;
}

.card p{
  color:#444;
}

/* ==============================
   CATEGORY PAGE
============================== */

.page-hero{
  padding:54px 10%;
  text-align:center;
  color:#fff;
  background:linear-gradient(135deg,#6D0F13,#A4161A);
}

.category-wrap{
  padding:50px 10%;
  background:#fff;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:18px;
}

.category-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:20px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  text-decoration:none;
  color:#222;
  transition:0.18s;
}

.category-card.tc-perfect{
  position:relative;
}

.category-card.tc-perfect::after{
  content:"✓";
  position:absolute;
  top:12px;
  right:12px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-weight:900;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 36px rgba(0,0,0,0.10);
}

/* ==============================
   PRICING (ABOUT PAGE)
============================== */

.pricing{
  padding:70px 8%;
  background:#fff;
  text-align:center;
}

.pricing-grid{
  margin-top:32px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.price-card{
  background:#fafafa;
  border:1px solid #eaeaea;
  border-radius:16px;
  padding:28px;
  text-align:left;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.price-card ul{
  margin-top:16px;
  padding-left:18px;
}

.price-card li{
  margin:8px 0;
}

.price-card .primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
}

.price-card .primary-btn:hover{
  transform:none;
}

.price{
  font-size:32px;
  font-weight:800;
}

.price-card.featured{
  border:2px solid #A4161A;
}

.badge{
  position:absolute;
  top:14px;
  right:14px;
  background:#A4161A;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}

/* ==============================
   FOOTER
============================== */

footer{
  text-align:center;
  padding:22px;
  background:#f5f5f5;
  color:#777;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 900px){

  .hero-container{
    flex-direction:column;
    text-align:center;
  }

  .hero-image{
    justify-content:center;
  }

  .hero-text h1{
    font-size:40px;
  }

  .pricing-grid{
    grid-template-columns:1fr;
  }

}

@media (max-width: 700px){

  .navbar{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:14px 6%;
  }

  .nav-links{
    width:100%;
    flex-wrap:wrap;
    gap:10px 12px;
  }

  .nav-links a{
    margin-left:0;
  }

  #authLinks{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }

  .login-btn,
  .signup-btn{
    margin-left:0;
  }

  .profile-wrap{
    margin-left:auto;
  }

}


/* ================================
AUTH BUTTONS (NAVBAR)
================================ */
.nav-btn{
  padding:8px 16px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  transition:0.2s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.login-btn{
  color:#A4161A;
  border:2px solid #A4161A;
  margin-left:14px;
}

.login-btn:hover{
  background:#A4161A;
  color:#fff;
}

.signup-btn{
  background:#A4161A;
  color:#fff;
  margin-left:10px;
}

.signup-btn:hover{
  background:#7f1115;
}

/* ================================
PROFILE DROPDOWN
================================ */
.hidden{ display:none !important; }

.profile-wrap{
  position:relative;
  margin-left:14px;
}

.profile-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:#A4161A;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  padding:0;
  overflow:hidden;
}

.profile-avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-initial{
  color:#fff;
  font-weight:900;
  font-size:16px;
  letter-spacing:0.5px;
}

.profile-menu{
  position:absolute;
  top:50px;
  right:0;
  width:240px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,0.18);
  padding:14px;
  z-index:999;
  border:1px solid rgba(0,0,0,0.06);
}

.pm-name{
  font-weight:900;
  color:#111;
  margin-bottom:4px;
}

.pm-email{
  font-size:13px;
  color:#666;
  word-break:break-word;
}

.pm-divider{
  height:1px;
  background:#eee;
  margin:12px 0;
}

.pm-logout{
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  background:#f5f5f5;
}

.pm-logout:hover{
  background:#eee;
}

/* ================================
AUTH BUTTONS + PROFILE (NAVBAR)
================================ */
.nav-btn{
  padding:8px 16px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  transition:0.2s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.login-btn{
  color:#A4161A;
  border:2px solid #A4161A;
  margin-left:14px;
}

.login-btn:hover{
  background:#A4161A;
  color:#fff;
}

.signup-btn{
  background:#A4161A;
  color:#fff;
  margin-left:10px;
}

.signup-btn:hover{
  background:#7f1115;
}

.hidden{ display:none !important; }

/* Profile circle + dropdown */
.profile-wrap{
  position:relative;
  margin-left:14px;
}

.profile-btn{
  width:40px;
  height:40px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  background:#A4161A;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

.profile-initial{
  color:#fff;
  font-weight:900;
  font-size:16px;
  letter-spacing:0.5px;
}

.profile-menu{
  position:absolute;
  top:50px;
  right:0;
  width:240px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,0.18);
  padding:14px;
  z-index:999;
  border:1px solid rgba(0,0,0,0.06);
}

.pm-name{
  font-weight:900;
  color:#111;
  margin-bottom:4px;
}

.pm-email{
  font-size:13px;
  color:#666;
  word-break:break-word;
}

.pm-divider{
  height:1px;
  background:#eee;
  margin:12px 0;
}

.pm-logout{
  width:100%;
  padding:10px 12px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  background:#f5f5f5;
}

.pm-logout:hover{
  background:#eee;
}

