/* =========================
   GLOBAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #3646f5;
  --color-gray: #64748b;
  --color-primary-dark: #0f172a;
  --color-light-gray: #f8fafc;
  --color-light-blue: #eef2ff;
  --color-white: #ffffff;
  --color-red: #ef4444;


  --heading-lg: 40px;
  --heading-md: 36px;
  --heading-sm: 32px;
  --heading-xs: 28px;
  --heading-xxs: 24px;

  --text-xxl: 22px;
  --text-xl: 20px;
  --text-lg: 18px;
  --text-md: 16px;
  --text-sm: 14px;
}

body {
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1440px;
  margin: auto;
  padding: 0 24px;
}

/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  background: linear-gradient(to right, #020617, #07122a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1000;
}

/* Common image styling */
.logo img {
  display: block;
  height: auto;
}

/* Desktop logo */
img.logo-desktop, .footer-logo-img {
  width: 150px;
  display: block;
}

/* Mobile logo hidden by default */
img.logo-mobile {
  width: 120px;
  display: none;
}

/* =========================
   NAV WRAPPER
========================= */

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* =========================
   NAV LINKS
========================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links li a, .quick-links-grid li a, .footer-company-links li a {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-md);
  font-weight: 500;
  position: relative;
  padding-bottom: 8px;
  transition: 0.3s ease;
}

.nav-links li a:hover, .quick-links-grid li a:hover, .footer-company-links li a:hover, 
.nav-links li a.activeLink {
  color: white;
}

.nav-links li a::after, .quick-links-grid li a:after, .footer-company-links li a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #4f46e5;
  border-radius: 20px;
  transition: 0.3s ease;
}

.nav-links li a:hover::after, .quick-links-grid li a:hover::after, .footer-company-links li a:hover::after, 
.nav-links li a.activeLink::after {
  width: 100%;
}

/* =========================
   BUTTONS
========================= */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signin-btn {
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.signin-btn:hover{
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

.start-btn {
  background: linear-gradient(135deg, var(--color-primary));
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.start-btn:hover {
  box-shadow: 0 20px 40px rgba(79,70,229,0.4);
}

/* =========================
   HAMBURGER
========================= */

.menu-toggle {
  width: 32px;
  height: 26.8px;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  justify-content: space-between;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 10px;
  display: block;
  transition: all 0.3s ease;
}

/* Cross animation */

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}


/* =========================
   FOOTER
========================= */

.footer {
  background: linear-gradient(to right, #020617, #07122a);
  padding: 60px 0 40px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-container {
  display: grid;
  grid-template-columns:
    1.5fr
    1fr
    1fr
    1.2fr;
  gap: 50px;
  align-items: start;
}

/* =========================
   BRAND
========================= */
/* 
.footer-brand {
  min-width: 280px;
} */

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: #4f46e5;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-weight: 700;
}

.footer-logo h2 {
  color: white;
  font-size: var(--heading-xs);
}

.footer-brand p {
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 20px;
}

/* =========================
   SOCIALS
========================= */

.footer-socials {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2rem;
}

.social-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* =========================
   LINKS
========================= */
/* 
.footer-links,
.footer-company-links,
.footer-company {
  min-width: 220px;
} */

.footer-links h3,
.footer-company h3,
.footer-company-links h3 {
  color: white;
  margin-bottom: 24px;
  font-size: var(--text-xxl);
}

.quick-links-grid {
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px; */
  display: flex;
  gap: 50px;
}

.quick-links-grid ul {
  width: 140px;
}

.footer-links ul,
.footer-company-links ul{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a, .footer-company-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s ease;
}

.footer-links a:hover, .footer-company-links a:hover {
  color: white;
}

/* =========================
   COMPANY
========================= */

.footer-company li {
  line-height: 1.4;
}

.footer-company span {
  color: white;
  font-weight: 600;
  display: block;
}

.footer-company ul{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-socials a i {
  font-size: var(--text-xl);
  color: white;
  transition: 0.3s ease;
}

.footer-socials a:hover {
  color: #4f46e5;
}

/* =========================
      MOBILE DESIGN
============================ */

@media (max-width: 1140px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;

    background: #071122;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 120px 30px;
    gap: 28px;

    transform: none;
    left: auto;

    transition: 0.4s ease;

    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .signin-btn,
  .start-btn {
    display: none;
  }
}

@media (max-width: 992px) {

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .quick-links-grid {
    gap: 40px;
  }

}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  /* Hide desktop logo */
  img.logo-desktop {
    display: none;
  }

  /* Show mobile logo */
  img.logo-mobile  {
    display: block;
  }

  .footer-logo-img{
    width: 120px;
  }

.copyright {
  /* align-items: center; */
  justify-content: flex-start;
}
}

@media (max-width: 576px) {

  .container {
    padding: 0 18px;
  }

  .nav-wrapper {
    width: 100%;
  }

  .logo-text {
    font-size: var(--text-lg);
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-logo h2 {
    font-size: var(--heading-lg);
  }

  .quick-links-grid {
    flex-direction: column;
    gap: 20px;
  }
}