/* =========================
   BASE
========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* =========================
   TECH PORTAL GRID
========================= */

.grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 30px;
}

.card {

  background: white;

  padding: 40px;

  border-radius: 24px;

  box-shadow:
    0 4px 20px rgba(0,0,0,0.05);

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

.card:hover {

  transform: translateY(-4px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.08);
}

.subtitle {

  font-size: 22px;

  color: #666;
}

h1 {

  font-size: 46px;

  margin: 0;
}

/* =========================
   HEADER
========================= */
header {

  padding: 20px;

  background: white;

  border-bottom: 1px solid #eee;

  position: sticky;
  top: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;
}

header img {

  width: 100px;

  height: auto;
}

/* =========================
   NAVIGATION
========================= */

nav {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 12px;
}

nav button {

  border: none;

  background: #7b2ff7;

  color: white;

  padding: 12px 22px;

  border-radius: 999px;

  cursor: pointer;

  font-weight: bold;

  transition: 0.2s ease;
}

nav button:hover {

  opacity: 0.9;

  transform: translateY(-2px);
}

/* =========================
   THEME BUTTON
========================= */

#theme-toggle {

  margin-top: 18px;

  width: 54px;
  height: 54px;

  border: none;

  border-radius: 50%;

  background: #7b2ff7;
  color: white;

  cursor: pointer;

  font-size: 20px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

#theme-toggle:hover {
  opacity: 0.9;
}

/* =========================
   BLOCKS
========================= */

.block {
  display: none;

  background: white;

  padding: 50px;

  border-radius: 24px;

  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.block.active {
  display: block;
}

/* =========================
   ICONS
========================= */

.icon {
  width: 72px;
  height: 72px;

  margin: auto;
  margin-bottom: 12px;

  border-radius: 50%;

  background: #f3ebff;

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

  font-size: 34px;
}

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

h2 {
  font-size: 42px;
}

p {
  font-size: 20px;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 240px;
  height: 54px;

  margin-top: 30px;
  margin-bottom: 10px;

  border-radius: 999px;

  background: #7b2ff7;
  color: white;

  text-decoration: none;
  font-weight: bold;
}

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

footer {
  margin: 80px 0 40px;

  color: #777;

  font-size: 14px;
}

footer a {
  color: #6a0dad;

  text-decoration: none;
}

/* =========================
   DARK THEME
========================= */

body.dark {
  background: #111;
  color: white;
}

body.dark header {
  background: #1b1b1b;
  border-bottom: 1px solid #333;
}

body.dark .block {
  background: #1f1f1f;
}

body.dark .card {
  background: #1f1f1f;
}

body.dark .subtitle {
  color: #bbb;
}

body.dark .icon {
  background: #2c2c2c;
}

body.dark h1,
body.dark h2 {
  color: white;
}

body.dark p {
  color: #ddd;
}

body.dark footer {
  color: #999;
}

body.dark footer a {
  color: #b983ff;
}

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

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

.hero {

  max-width: 900px;

  margin: 80px auto 40px;

  padding: 0 20px;
}

.hero h2 {

  font-size: 58px;

  line-height: 1.2;

  margin-bottom: 24px;
}

.hero p {

  font-size: 22px;

  color: #666;

  max-width: 700px;

  margin: auto;
}

.tagline {

  font-size: 28px;

  font-weight: bold;

  color: #7b2ff7;

  margin: 20px auto;
}

body.dark .tagline {
  color: #b983ff;
}

body.dark .hero p {
  color: #bbb;
}

body.dark .tagline {
  color: #b983ff;
}

@media (max-width: 768px) {

  h2 {
    font-size: 32px;
  }

  p {
    font-size: 18px;
  }

}