/* Navbar */
.navbar {
    width: min(1120px, calc(100% - 32px));
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    border: 1px solid rgba(56, 56, 56, 0.24);
    background: rgb(225, 227, 255);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 45px rgba(93, 93, 93, 0.2);
    z-index: 1000;
}

.logo {
    color: #000000;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
}

.desktop-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    background-color: #c6b8f2;
}

.desktop-links a {
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.desktop-links a:hover {
    background: rgba(62, 62, 62, 0.18);
}

.menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background-color: #000000;
    border: 2px solid black;
    position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    width: 22px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    left: 50%;
    content: "";
    transform: translateX(-50%);
    transition: 0.3s ease;
}

.menu-btn span {
    top: 50%;
}

.menu-btn span::before {
    top: -7px;
}

.menu-btn span::after {
    top: 7px;
}

.mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(21, 23, 30, 0.208);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}

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

.mobile-modal-content {
    width: min(420px, 100%);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(18px) scale(0.96);
    transition: 0.35s ease;
}

.mobile-modal.active .mobile-modal-content {
    transform: translateY(0) scale(1);
}

.mobile-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mobile-modal-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.close-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-links a {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    transition: 0.3s ease;
}

.mobile-links a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(4px);
}

.mobile-links .active-link {
    background: #ffffff;
    color: #111827;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 130px 24px 40px;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 1;
}

@media (max-width: 768px) {
    .navbar {
        top: 16px;
        width: calc(100% - 28px);
        height: 66px;
        padding: 0 14px 0 20px;
        border-radius: 18px;
    }

    .desktop-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .mobile-modal {
        padding: 0;
    }

    .mobile-modal-content {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 26px 22px;
        background: rgba(15, 23, 42, 0.68);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
    }

    .mobile-modal-top {
        margin-bottom: 48px;
    }

    .mobile-links {
        gap: 16px;
    }

    .mobile-links a {
        height: 62px;
        border-radius: 18px;
        font-size: 22px;
    }
}

@media (min-width: 769px) {
    .mobile-modal {
        display: none;
    }
}

/* Hero Section */
.hero-text {
    font-size: 55px;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 1px;
    color: #351659;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 8% 10%;
}

.left-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.right-hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    background-color: rgb(74, 46, 128);
    border-radius: 200px;
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    width: fit-content;
    border: none;
}

.hero-btn a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.hero-btn:hover {
    box-shadow: 4px 4px black;
    transform: translateY(-2px);
}

.hero-img {
    width: 100%;
    border-radius: 80px;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-text {
        font-size: 40px;
    }
}

/* Modal Box */
.button {
    background-color: #7e51e8;
    color: white;
    padding: 10px 20px;
    margin: 10px 10px 30px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    box-shadow: 4px 4px black;
    transform: translateY(-2px);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(98, 112, 138, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
}

/* Modal Content Box */
.modal-content {
    background: rgba(57, 57, 57, 0.412);
    border: 1px solid rgba(41, 41, 41, 0.471);
    color: white;
    padding: 24px;
    border-radius: 24px;
    width: 80%;
    box-shadow: 0 8px 30px rgba(82, 82, 82, 0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 15px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    border: 1px solid rgb(86, 86, 86);
    padding: 10px;
    border-radius: 20px;
}

.close:hover {
    background-color: black;
    border-radius: 20px;
}

/* Code Box copy */
.code-container {
  position: relative;
  background: #ededed;
  border: 1px solid #8d8d8d;
  border-radius: 18px;
  padding: 10px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #767676;
}

.code-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: system-ui;
  font-weight: 700;
  color: #333;
}

.copy-button {
  background-color: transparent;
  border: 1px solid #727272;
  border-radius: 4px;
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
}

.copy-button:hover {
  background-color: #cecece;
  border-color: #ccc;
}

.copy-button.copied {
  background-color: #30303098;
  backdrop-filter: blur(15px);
  border-color: #2d2d2d;
  color: #fff;
}

.copy-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.code-block {
  padding: 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #333333;
  overflow-x: auto;
  margin-top: 5px;
}

.new-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333333a3;
  backdrop-filter: blur(15px);
  color: white;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
  z-index: 9999;
}

.new-toast.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

.new-toast.success {
  background-color: #323232a0;
  backdrop-filter: blur(15px);
}

.new-toast.error {
  background-color: #dc3545;
}

.new-toast.info {
  background-color: #17a2b8;
}
