/* ================= GLOBAL ================= */
body.no-scroll {
  overflow: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: 100%;
  z-index: 9999; /* IMPORTANT */
  
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;

  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.logo img {
  height: clamp(40px, 8vw, 55px);
  width: auto;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-links a.active::before {
  width: 80%;
}

/* UNDERLINE EFFECT */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 80%;
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* CTA BUTTON */
.cta-btn {
  margin-left: 20px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 25px;
  border: 1.5px solid var(--primary-color);
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;

}

.cta-btn:hover {
  background-color: white;
  color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(31,79,163,0.2);
  transform: translateY(-2px);
}

/* Demo Button Fix - Missing UI Element Styling */
.demo-btn {
  background: linear-gradient(135deg, #ff7a2f, #ffb347);
  color: white !important;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,122,47,0.3);
  font-size: 14px;
}

.demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,122,47,0.4);
  background: linear-gradient(135deg, #e96a20, #ff7a2f);
}

.demo-btn:active {
  transform: translateY(0);
}


/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: 0.3s;
}

/* ================= MOBILE NAV - CLEAN & PROFESSIONAL ================= */
@media (max-width: 992px) {

  .hamburger {
    display: flex;
    z-index: 10002;
  }

  /* SIMPLE FULL SCREEN MENU */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);

    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 40px;
    gap: 8px;

    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;

    transition: 0.3s ease;

    z-index: 10000;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  /* SIMPLE LIST STYLE (NO BOXES, NO OVER DESIGN) */
  .nav-links a {
    width: 90%;
    text-align: center;

    padding: 14px 0;

    font-size: 16px;
    font-weight: 500;

    color: #1f4fa3;

    border-bottom: 1px solid #f0f0f0;

    background: transparent;

    transition: 0.2s ease;
  }

  .nav-links a:hover {
    color: #0f2f6b;
    background: rgba(31,79,163,0.05);
  }

  .nav-links a.active {
    font-weight: 600;
    color: #0f2f6b;
  }

  /* CTA BUTTON CLEAN */
  .cta-btn {
    width: 90%;
    margin-top: 20px;

    padding: 12px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
  }

  /* HAMBURGER */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}


/* ================= MODAL ================= */

/* BASE */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.demo-modal.active {
  opacity: 1;
  visibility: visible;
}

/* BACKDROP */
.modal-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

/* CONTENT */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(0.85);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
}

.demo-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

/* FORM */
.demo-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.25s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(31,79,163,0.1);
}

/* BUTTON */
.demo-form .btn.primary {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.demo-form .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31,79,163,0.3);
}

/* SUCCESS */
.modal-success {
  padding: 40px;
  text-align: center;
  color: #28a745;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
}

.demo-modal.active .modal-success {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLLBAR */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* MOBILE MODAL */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .modal-header,
  .demo-form {
    padding: 20px;
  }
}