* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f3f6fb;
  color: #0f172a;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background: #0a0f1c;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.logo {
  font-family: "Fustat", sans-serif;
  font-size: 35px;
  font-weight: 600;
  color: #ffffff;
  padding: 0px 100px;
}

.navbar nav a {
  color: #cbd5e1;
  margin-left: 15px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  padding: 15px;
}

.navbar nav a:hover {
  color: #60a5fa;
}

/* HERO */
.hero {
  text-align: center;
  padding: 20px 20px;
  background: linear-gradient(135deg, #0a0f1c, #111c36);
  color: white;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.hero p {
  max-width: 750px;
  margin: auto;
  color: #cbd5e1;
  font-size: 16px;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 60px auto;
}

/* HEADINGS */
h2 {
  margin-bottom: 20px;
  font-size: 26px;
  color: #0f172a;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD BOX */
.box {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.3s ease;
  border: 1px solid #e5e7eb;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.box h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.box p {
  font-size: 14px;
  color: #64748b;
}

.box a {
  display: inline-block;
  margin-top: 10px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #2563eb;
  color: white;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #1d4ed8;
}

/* BLOG CARD */
.card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}



/* FOOTER */
footer {
  background: #0a0f1c;
  color: #94a3b8;
  text-align: center;
  padding: 30px;
  margin-top: 60px;
  font-size: 14px;
}

/* =========================
   HAMBURGER MENU (MODERN FIXED)
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: 5px;
  transition: 0.3s ease;
  margin-top: 8px;
  
}

/* NAV MENU BASE (DESKTOP) */
#nav-menu {
  display: flex;
  gap: 15px;
}

/* =========================
   MOBILE MENU (MODERN UI)
========================= */

@media (max-width: 768px) {

   .logo{

    padding: 0px 0px;
   }

   

   .grid { grid-template-columns: repeat(2, 1fr); } 
   .hero h1 { font-size: 34px; } 

  .hamburger {
    display: flex;
  }

  #nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;

    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(12px);

    flex-direction: column;

    /* smooth animation */
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;

    transition: all 0.35s ease;

    padding: 20px 0;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }

  #nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #nav-menu a {
    padding: 14px;
    display: block;
    color: #cbd5e1;
    font-weight: 500;
    transition: 0.3s;
  }

  #nav-menu a:hover {
    color: #60a5fa;
    background: rgba(255,255,255,0.05);
  }
}

