/* =========================
   GLOBAL STYLES
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:#0f172a;
  color:#ffffff;
  min-height:100vh;
  width:100%;
  overflow-x: hidden; /* Screen side me shake nahi hogi */
}

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

.navbar{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 8%;
  background:#111827;
  border-bottom:1px solid rgba(255,255,255,0.08);
  position:sticky;
  top:0;
  z-index:1000;
}

.logo{
  font-size:28px;
  font-weight:700;
  color:#ffffff;
}

.logo span{
  color:#3b82f6;
}

nav{
  display:flex;
  gap:25px;
}

nav a{
  color:#cbd5e1;
  text-decoration:none;
  font-size:15px;
  transition:0.3s;
}

nav a:hover{
  color:#3b82f6;
}

/* =========================
   HERO SECTION
========================= */

.hero{
  width:100%;
  padding:90px 8%;
  text-align:center;
}

.hero h1{
  font-size:52px;
  font-weight:700;
  margin-bottom:18px;
  line-height:1.2;
}

.hero p{
  color:#94a3b8;
  font-size:18px;
  margin-bottom:40px;
}

/* =========================
   EMAIL BOX
========================= */

.email-box{
  width:100%;
  max-width:750px;
  margin:auto;
  background:#111827;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  display:flex;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

.email-box input{
  flex:1;
  padding:20px;
  border:none;
  outline:none;
  background:transparent;
  color:#ffffff;
  font-size:18px;
}

.email-box button{
  border:none;
  padding:0 28px;
  background:#3b82f6;
  color:#ffffff;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.email-box button:hover{
  background:#2563eb;
}

/* =========================
   ACTION BUTTONS
========================= */

.actions{
  margin-top:30px;
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}

.actions button{
  padding:14px 28px;
  border:none;
  border-radius:12px;
  background:#1e293b;
  color:#ffffff;
  cursor:pointer;
  font-size:15px;
  font-weight:500;
  transition:0.3s;
}

.actions button:hover{
  background:#3b82f6;
}

/* =========================
   INBOX SECTION
========================= */

.inbox-section{
  padding:40px 8%;
}

.section-title{
  font-size:28px;
  font-weight:600;
  margin-bottom:25px;
}

.inbox{
  background:#111827;
  border-radius:18px;
  padding:25px;
  border:1px solid rgba(255,255,255,0.08);
  min-height:250px;
}

.empty{
  color:#94a3b8;
  text-align:center;
  margin-top:80px;
  font-size:18px;
}

/* =========================
   MESSAGE CARD & BODY (FIXED)
========================= */

.message{
  background:#1e293b;
  padding:18px;
  border-radius:14px;
  margin-bottom:18px;
  transition:0.3s;
  cursor:pointer;
  max-width: 100%;
  word-wrap: break-word; /* Text cut hone se bachaega */
}

.message:hover{
  transform:translateY(-3px);
  background:#334155;
}

.message h4{
  font-size:18px;
  margin-bottom:8px;
}

.message p{
  color:#cbd5e1;
  font-size:14px;
}

/* Email content div handles tables/large HTML elements */
.message div {
  max-width: 100% !important;
  overflow-x: auto !important; /* Horizonal scrollbar agar bada table ho */
  word-break: break-word !important;
}

/* =========================
   FEATURES
========================= */

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

.feature-card{
  background:#111827;
  border-radius:18px;
  padding:35px;
  border:1px solid rgba(255,255,255,0.08);
  transition:0.3s;
}

.feature-card:hover{
  transform:translateY(-5px);
}

.feature-card h3{
  margin-bottom:15px;
  font-size:22px;
}

.feature-card p{
  color:#94a3b8;
  line-height:1.7;
}

/* =========================
   FAQ
========================= */

.faq{
  padding:60px 8%;
}

.faq h2{
  text-align:center;
  margin-bottom:40px;
  font-size:38px;
}

.faq-item{
  background:#111827;
  padding:25px;
  border-radius:16px;
  margin-bottom:20px;
  border:1px solid rgba(255,255,255,0.08);
}

.faq-item h4{
  margin-bottom:12px;
  font-size:20px;
}

.faq-item p{
  color:#94a3b8;
  line-height:1.7;
}

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

footer{
  padding:30px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.08);
  margin-top:40px;
}

footer p{
  color:#94a3b8;
  font-size:14px;
}

/* =========================
   RESPONSIVE (IMPROVED)
========================= */

@media(max-width:768px){

  /* Padding kam ki taaki mobile par zyada space mile */
  .navbar, .hero, .inbox-section, .features, .faq {
    padding-left: 5%;
    padding-right: 5%;
  }

  .navbar{
    flex-direction:column;
    gap:15px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  nav{
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .hero{
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero h1{
    font-size:32px; /* Thoda aur chota kiya mobile ke liye */
  }

  .hero p{
    font-size:15px;
    margin-bottom: 25px;
  }

  .email-box{
    flex-direction:column;
    border-radius: 12px;
  }
  
  .email-box input {
    text-align: center;
    padding: 15px;
    font-size: 16px;
  }

  .email-box button{
    padding:15px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .actions{
    flex-direction:column;
    gap: 12px;
    width: 100%;
  }

  .actions button{
    width:100%;
  }

  .inbox {
    padding: 15px; /* Mobile par card ke andhar space sahi rahega */
  }

  .faq h2{
    font-size:26px;
  }
  
  .faq-item h4 {
    font-size: 18px;
  }

}
