/* =====================================================
   🌐 KWANG GROUP — GLOBAL CSS STYLESHEET
   Author: AKSHIT DESHMUKH
    CREATED: 2023
   Updated: 2025
===================================================== */
/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Fixed navbar spacing */
    padding-top: 60px;

    /* Prevent horizontal scrolling */
    overflow-x: hidden;

    width: 100%;
}
/* =========================
   SECTION DIVIDER
========================= */
.section-divider {
    width: 100%;
    height: 3px;
    margin: 80px 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #ffffff 20%,
        #ffffff 50%,
        #ffffff 80%,
        transparent 100%
    );
 
}

/* ---- Tablet ---- */
@media (max-width: 768px) {
    .section-divider {
        margin: 50px 0;
        height: 3px;
        box-shadow: 0 0 12px rgba(93, 104, 255, 0.3);
    }
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .section-divider {
        margin: 35px 0;
        height: 2.5px;
        box-shadow: 0 0 10px rgba(93, 104, 255, 0.25);
    }
}

/* ---- Small Mobile ---- */
@media (max-width: 360px) {
    .section-divider {
        margin: 25px 0;
        height: 2px;
    }
}
/* ── Page Loader ── */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  
  /* Glass background effect */
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Optional: subtle border/glow effect */
#page-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

/* ── Brand Text (BOLD, pushed below loader) ── */
.loader-text {
  font-size: 16px;
  font-weight: 700;            
  color: #ffffff;
  margin: 18px 0 0 0;
  letter-spacing: 1.8px;
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* ── Fade-out states ── */
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 32px;
  height: 32px;
  position: relative;
  margin-top: 0;
  z-index: 1;

  background: radial-gradient(8px, #ffffff 94%, transparent);
}

.loader::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;

  background:
    radial-gradient(7.2px at bottom right, transparent 94%, #00E5FF) top left,
    radial-gradient(7.2px at bottom left, transparent 94%, #fefefe) top right,
    radial-gradient(7.2px at top right, transparent 94%, #fefefe) bottom left,
    radial-gradient(7.2px at top left, transparent 94%, #00E5FF) bottom right;

  background-size: 16px 16px;
  background-repeat: no-repeat;

  animation: loader 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes loader {
  33% {
    inset: -11.2px;
    transform: rotate(0deg);
  }

  66% {
    inset: -11.2px;
    transform: rotate(90deg);
  }

  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}

/* ================================================================
   FULLY RESPONSIVE – bold text stays small on mobile
   ================================================================ */

/* Tablets (≤ 768px) */
@media (max-width: 768px) {
  .loader {
    transform: scale(0.8);
  }
  .loader-text {
    font-size: 13px;
    letter-spacing: 1.3px;
    margin-top: 14px;
  }
}

/* Mobile phones (≤ 480px) */
@media (max-width: 480px) {
  .loader {
    transform: scale(0.65);
  }
  .loader-text {
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 12px;
  }
}

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
  .loader {
    transform: scale(0.55);
  }
  .loader-text {
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-top: 10px;
  }
}

/* Very small phones (≤ 320px) */
@media (max-width: 320px) {
  .loader {
    transform: scale(0.45);
  }
  .loader-text {
    font-size: 8px;
    letter-spacing: 0.6px;
    margin-top: 8px;
  }
}

/* Landscape on short screens – stays BELOW */
@media (max-height: 500px) and (orientation: landscape) {
  #page-loader {
    flex-direction: column;
    padding: 0 1rem;
  }
  .loader {
    transform: scale(0.6);
  }
  .loader-text {
    font-size: 12px;
    margin-top: 7px;
    letter-spacing: 1px;
  }
}

/* Extra-short landscape (≤ 400px height) */
@media (max-height: 400px) and (orientation: landscape) {
  .loader {
    transform: scale(0.5);
  }
  .loader-text {
    font-size: 9px;
    margin-top: 5px;
    letter-spacing: 0.8px;
  }
}

/* Medium screens, landscape (tablets) */
@media (min-width: 768px) and (max-height: 600px) and (orientation: landscape) {
  #page-loader {
    flex-direction: column;
  }
  .loader {
    transform: scale(0.7);
  }
  .loader-text {
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 1.2px;
  }
}

/* Slight adjustment for 1024px and below */
@media (max-width: 1024px) {
  .loader-text {
    font-size: 15px;
    letter-spacing: 1.6px;
    margin-top: 16px;
  }
}
