/* ==========================================
   main.css
   These are the final styles for the project.
   Author:   Saddam Arbaa
========================================== */

/*====== Start Main Rules(Core Styles) ======*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */

:root {
  --dark: #333;
  --light: #fff;
  --lightgrey: #f4f4f4;
  --Nero: #262626;
  --grey: #f2f2f2;
  --lightblack: #616161;
  --Gray80: #ccc;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light);
  color: var(--black);
  font-size: 15px;
  line-height: 1.5;
  cursor: none;
}

a {
  color: var(--Nero);
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.btn {
  cursor: pointer;
  display: inline-block;
  border: 0;
  font-weight: bold;
  padding: 10px 20px;
  background-color: var(--Nero);
  color: var(--light);
  font-size: 15px;
}

.menu-btn {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 2;
  display: none;
}

.btn:hover {
  opacity: 0.9;
}

.dark {
  color: var(--light);
}

.dark .btn {
  background-color: var(--lightgrey);
  color: var(--dark);
}

/*====== End Main Rules ======*/

/*====== Start Navigation bar ======*/

.main-nav {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 20px 0;
  justify-content: space-between;
  font-size: 13px;
}

.main-nav .logo {
  width: 110px; /* make the logo little bit small */
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  padding: 0 10px;
}

.main-nav ul li a:hover {
  border-bottom: 2px solid var(--Nero);
}

.main-nav ul li a {
  padding-bottom: 2px;
}

.main-nav ul.main-menu {
  flex: 1;
  margin-left: 20px;
}

/*====== End Navigation bar ======*/

/* ====== Start Showcase  ======*/

.showcase {
  width: 100%;
  height: 400px;
  background: url("../imges/slide1.png") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding-bottom: 50px;
  margin-bottom: 20px;
}

.showcase h2,
p {
  margin-bottom: 10px;
}

.showcase .btn {
  margin-top: 20px;
}

/* ====== End Showcase  ======*/

/* ====== Start Cards Section ======*/

/* Home Cards1 */
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-bottom: 40px;
}

.home-cards img {
  width: 100%;
  height: 170px; /* for testing my remove latter */
  margin-bottom: 20px;
}

.home-cards h3 {
  margin-bottom: 5px;
}

.home-cards a {
  display: inline-block;
  padding-top: 10px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: bold;
}

.home-cards a:hover i {
  margin-left: 10px;
}

/* Xbox Section  */

.xbox {
  width: 100%;
  height: 350px;
  background: url("../imges/xbox.png") no-repeat center center/cover;
  margin-bottom: 20px;
}

.xbox .content {
  width: 40%;
  padding: 50px 0 0 30px;
}

.xbox p,
.carbon p {
  margin: 10px 0 20px;
}

/* Carbon */

.carbon {
  width: 100%;
  height: 350px;
  background: url("../imges/carbon.jpg") no-repeat center center/cover;
  margin-bottom: 20px;
}

.carbon .content {
  width: 45%;
  padding: 100px 0 0 30px;
  color: var(--dark);
}

.carbon .btn {
  background-color: var(--Nero);
  color: var(--light);
}

/* Social media Fllow */

.fllow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 30px 0 30px;
}

/* (.fllow * ) mean for every element in  .fllow give margin-right: 10px; */
.fllow * {
  margin-right: 10px;
}

/* ====== Start Cards Section ======*/

/* ====== Start footer ======*/

/* footer (Links) */

.links {
  background-color: var(--grey);
  color: var(--lightblack);
  font-size: 12px;
  padding: 35px 0;
}

.links-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
  align-items: flex-start;
  justify-content: center;
}

.links li {
  line-height: 2.8;
}

/*  footer (copyRight)  */

.footer {
  background-color: var(--grey);
  color: var(--lightblack);
  font-size: 12px;
  padding: 20px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Fullscreen popup overlay */
html,
body {
  min-height: 100%;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.fullscreen-overlay.hidden {
  display: none;
}

.popup {
  width: 100%;
  background: #f3f3f3;
  border: 1px solid #c8c8c8;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.popup.hidden {
  display: none;
}

.popup-stack {
  position: relative;
  width: min(980px, 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 980px;
}

.popup-back {
  width: min(860px, 100%);
  max-width: 860px;
  min-height: 460px;
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: #ffffff;
  border: 1px solid #d4d5d7;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
}

.popup-back .popup-header {
  background: #f8f9fb;
  color: #111827;
  border-bottom: 1px solid #e6e8eb;
}

.popup-back-body {
  padding: 20px 22px 22px;
}

.popup-back-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
}

.popup-back-sidebar {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 16px;
}

.back-logo {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.back-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-nav-item {
  font-size: 14px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #d4d5d7;
  border-radius: 8px;
  color: #111827;
}

.back-nav-item.active {
  background: #e6f0ff;
  border-color: #5992ff;
  color: #0f3d9c;
}

.back-heading {
  margin-bottom: 12px;
  font-size: 18px;
  color: #0f3d9c;
}

.back-text {
  margin-bottom: 14px;
  color: #4b5563;
}

.back-note {
  margin-top: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.popup-warning {
  width: min(610px, 100%);
  max-width: 760px;
  min-height: 780px;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(180deg, #2d69d3 0%, #0f3d9c 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
}

.popup-warning .popup-header {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.popup-warning .popup-title {
  font-size: 16px;
}

.popup-warning .popup-body {
  padding: 22px 24px 24px;
  background: transparent;
  color: #f8fbff;
}

.popup-warning .popup-body p,
.popup-warning .popup-body ul {
  color: #f8fbff;
}

.popup-warning .popup-subtitle {
  margin-bottom: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.popup-warning .popup-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.popup-warning .popup-support {
  margin-top: 12px;
  font-size: 15px;
  color: #ffffff;
}

.popup-warning ul {
  list-style: disc;
  margin: 10px 0 0 18px;
  padding: 0;
}

.popup-warning ul li {
  margin-bottom: 8px;
}

.popup-center {
  width: min(740px, 100%);
  max-width: 760px;
  position: absolute;
  top: 377px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #fbfbfb;
  border: 1px solid #d4d5d7;
  border-radius: 12px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
}

.popup-center .popup-header {
  position: relative;
  background: #ffffff;
  color: #111827;
  border-bottom: 1px solid #e4e5e7;
}

.popup-center .popup-title {
  color: #111827;
}

.popup-center .popup-header button.close-popup {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #6b7280;
}

.popup-center .popup-body {
  padding: 22px 24px 24px;
  background: #ffffff;
  color: #1f2937;
}

.popup-center .popup-status {
  margin-bottom: 10px;
  color: #111827;
}

.popup-center .popup-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

.popup-center .icon-box {
  width: 58px;
  height: 58px;
  border: 1px solid #d4d5d7;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  background: #f8fafc;
  font-size: 22px;
}

.popup-center .popup-message {
  margin: 8px 0 10px;
  font-weight: 600;
}

.popup-center .popup-support {
  margin-bottom: 10px;
  color: #1d4ed8;
}

.popup-center .popup-note.small {
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

.popup-center .popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.popup-center .popup-btn {
  padding: 10px 20px;
}

.popup-center .popup-btn.secondary {
  background: #f3f4f6;
  color: #111827;
}

.popup-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
}

.popup-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.popup-header button.close-popup {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  color: inherit;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.popup-body {
  padding: 20px 24px 24px;
  color: #333;
  background: #fff;
}

.popup-body p {
  margin-bottom: 14px;
}

.popup-subtitle,
.popup-alert {
  margin-bottom: 14px;
  font-weight: 700;
}

.popup-subtitle {
  color: #1f4d7a;
}

.popup-alert {
  color: #b71c1c;
}

.popup-body ul {
  margin: 0 0 18px 20px;
  color: #333;
}

.popup-body ul li {
  margin-bottom: 8px;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.popup-btn {
  padding: 10px 18px;
  font-size: 14px;
}

.popup-btn.secondary {
  background: #e1e1e1;
  color: #1a1a1a;
}

@media (max-width: 700px) {
  .fullscreen-overlay {
    align-items: flex-start;
    padding-top: 40px;
  }

  .popup-warning,
  .popup-center,
  .popup {
    width: 100%;
    max-width: 100%;
  }

  .popup-center {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 20px;
  }
}

.footer div {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer div i {
  margin-right: 10px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
}

.footer li {
  margin-right: 30px;
  margin-bottom: 20px;
}

/* ====== End footer ======*/

/* ====== Start Media Queries(Add a Breakpoint) ======*/

/* If the screen size is 700px or smaller */

@media (max-width: 700px) {
  .menu-btn {
    display: block;
  }

  .menu-btn:hover {
    opacity: 0.5;
  }

  .main-nav ul.right-menu {
    margin-right: 50px;
  }

  .main-nav ul.main-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--grey);
    border-right: 1px solid var(--Gray80);
    opacity: 0.9;
    padding: 30px;
    transform: translateX(-500px); /* go off the screen(like display:none) */
    transition: transform 0.5s ease-in-out;
  }

  .main-nav ul.main-menu li {
    padding: 10px;
    border-bottom: 1px solid var(--Gray80);
    font-size: 15px;
  }

  .main-nav ul.main-menu li:last-child {
    border-bottom: 0;
  }

  .main-nav ul.main-menu.show {
    transform: translateX(-20px); /* show the menu on click */
  }

  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .xbox .content p {
    display: none;
  }

  .xbox .content h2 {
    margin-bottom: 20px;
  }

  .carbon .content {
    width: 85%;
  }

  .links .links-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* If the screen size is 500px or smaller */

@media (max-width: 500px) {
  .home-cards {
    grid-template-columns: 1fr;
  }

  .links .links-inner {
    grid-template-columns: 1fr;
  }

  .links .links-inner ul {
    margin-bottom: 20px;
  }

  .footer .footer-inner {
    display: grid;
  }
  .footer .footer-inner li {
    margin: 10px;
  }
}

/* ====== End Media Queries ======*/
