:root {
  --accent: #00aaff; /* Accent Blue */
  --accent2: #ff4da6; /* Accent Pink */
  --muted: #555; /* Muted gray */
  --bg-light: #e0e5ec; /* Light Neumorphic background */
  --shadow-dark: #b8bcc2;
  --shadow-light: #ffffff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-light);
  color: #2e2e2e;
  line-height: 1.6;
}

/* Global Header */
.global-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.global-header .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  gap: 10px;
}

.global-header .logo {
  font-size: 1.6rem;
  /* align-self: flex-start; */
  color: var(--accent);
}

.global-header h1 {
  color: #2e2e2e;
  font-size: 1.1rem;
  font-weight: 600;
}

.l_o_g_o {
  text-decoration: none;
  color: #2e2e2e;
}
/* Navigation */
.global-header nav {
  display: flex;
}
.global-header nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
}
.global-header nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: inset 2px 2px 5px var(--shadow-dark),
    inset -2px -2px 5px var(--shadow-light);
}
.global-header nav a:hover {
  color: var(--accent2);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  transform: translateY(-2px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  background: var(--bg-light);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .global-header nav {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    position: absolute;
    top: 100%;
    width: 100%; /* instead of fixed 200px */
    left: 0; /* stretch across screen */
    right: 0;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 6px 6px 12px var(--shadow-dark),
      -6px -6px 12px var(--shadow-light);

    /* ✅ Hidden by default */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;

    /* Smooth transition */
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .global-header nav.active {
    /* ✅ Slide in */
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .global-header nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .menu-toggle {
    display: block;
    z-index: 200;
  }
  .nav-links.open {
    right: 0; /* Slide in */
  }

  .nav-links ul {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
}

/* Global Footer */
.global-footer {
  background: var(--bg-light);
  color: var(--muted);
  text-align: center;
  padding: 20px 28px;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
  margin-top: 28px;
}

.global-footer p {
  margin-bottom: 8px;
  font-size: 14px;
}

.global-footer .social {
  margin-top: 6px;
}

.global-footer .social a {
  margin: 0 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: inset 2px 2px 5px var(--shadow-dark),
    inset -2px -2px 5px var(--shadow-light);
}
.global-footer .social a:hover {
  color: var(--accent2);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  transform: translateY(-2px);
}

/* --- Fix horizontal scroll on mobile --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent nav & grids from overflowing viewport */
.global-header nav,
.grid,
.card,
.global-footer {
  max-width: 100%;
  /* overflow-x: hidden;   */
}
