/* --- CSS Variables --- */
:root {
    --orange: #FFA500;
    --black: #111111;
    --grey-dark: #1e1e1e;
    --grey-light: #3a3a3a;
    --white: #f0f0f0;
    --white-pure: #ffffff;
    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --preloader-display: none;
}

html {
    scroll-behavior: smooth;
}

/* -----------------------
   PRELOADER (Reliable)
   ----------------------- */
.preloader {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 9999;
    display: flex; /* always visible by default when JS is present */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
    pointer-events: auto;
}

/* When hidden we keep it out of flow and non-interactive */
.preloader.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Inner layout (unchanged) */
.preloader-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.preloader-logo-square {
    position: absolute;
    width: 50%;
    height: 50%;
    background-image: url('PIQB.png');
    background-size: 200% 200%;
    opacity: 0;
    transform-origin: center;
}

.square-1 { top: 0; left: 0; background-position: top left; }
.square-2 { top: 0; left: 50%; background-position: top right; }
.square-3 { top: 50%; left: 0; background-position: bottom left; }
.square-4 { top: 50%; left: 50%; background-position: bottom right; }

.power-bar-container {
    width: 120px;
    height: 8px;
    background-color: var(--grey-dark);
    border: 1px solid var(--grey-light);
    border-radius: 4px;
    margin-top: 2rem;
    overflow: hidden;
}

.power-bar {
    width: 0%;
    height: 100%;
    background-color: var(--orange);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    border-radius: 4px;
}

.preloader-text {
    color: var(--orange);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.25rem;
    opacity: 0;
}


/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Header --- */
.main-header {
    background-color: var(--black);
    border-bottom: 1px solid var(--grey-light);
    padding: 1rem 0;
    opacity: 0;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-pure);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--orange);
}

.logo-img {
    height: 38px;
    width: 38px;
    margin-right: 6px;
    border-radius: 4px;
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-header nav a {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.main-header nav a:hover {
    color: var(--orange);
}

.main-header nav a.active {
    color: var(--orange);
    font-weight: 700;
}

/* --- Hero Section --- */
main {
    position: relative;
}

.hero-section {
    width: 100%;
    min-height: 90vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 0 2rem;
    z-index: 2;
    background: transparent;
}

/* Full Background Spline Viewer */
spline-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 1 !important;
    pointer-events: none; /* Fixes lag */
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* REMOVE Spline Watermark */
spline-viewer::part(watermark) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content h1 {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white-pure);
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content h1 span {
    color: var(--orange);
}

.hero-content p {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    color: var(--white);
    max-width: 500px;
    margin: 1.5rem 0 2.5rem;
    line-height: 1.6;
}

.cta-button {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    background-color: var(--orange);
    color: var(--black);
    padding: 16px 40px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--white-pure);
    transform: translateY(-3px) scale(1.05);
}

/* --- Features Section --- */
.content-section {
    padding: 6rem 0;
    position: relative;
    z-index: 5;
    background-color: var(--black);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--grey-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--grey-dark);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    opacity: 0;
    transform: translateY(40px);
}

/* --- Steps Section --- */
.how-it-works-section {
    background-color: var(--grey-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.step-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--orange);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--black);
    border-top: 1px solid var(--grey-light);
    padding: 4rem 2rem 2rem;
    color: #aaa;
    z-index: 100;
}

.main-footer .container-wide {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col h3 { font-family: var(--font-primary); font-size: 1.1rem; color: var(--orange); text-transform: uppercase; }
.footer-logo { display: flex; align-items: center; font-size: 2.5rem; margin-bottom: 1rem; }
.footer-logo .logo-img { height: 42px; width: 42px; margin-right: 8px; }

.footer-copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--grey-light);
    color: #888;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        padding: 4rem 2rem;
    }
    .hero-content {
        text-align: center;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .main-footer .container-wide {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}


/* =======================================
   UI UPGRADE — PREMIUM TECH STYLE
   ======================================= */

/* Glass Header */
.main-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    transition: 0.3s ease;
}

/* Header links hover effect */
.main-header nav a {
    position: relative;
    overflow: hidden;
}

.main-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: var(--orange);
    transition: 0.3s ease;
}

.main-header nav a:hover::after,
.main-header nav a.active::after {
    width: 100%;
}

/* Hero Content Upgrade */
.hero-content h1 {
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.35);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* CTA button upgraded */
.cta-button {
    background: linear-gradient(90deg, #ff9e00, #ffbf4d);
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    padding: 16px 50px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(255,165,0,0.2);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255,165,0,0.35);
}

/* Feature Cards Upgrade */
.feature-card, .step-card {
    background: rgba(20,20,20,0.7);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(6px);
    transition: 0.3s ease-in-out;
    transform: translateY(20px);
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(5px);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(255,165,0,0.2);
}

/* Section Titles */
.section-title h2 {
    text-shadow: 0 0 10px rgba(255,165,0,0.5);
    letter-spacing: 1px;
}

/* Footer Upgrade */
.main-footer {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    padding: 4rem 2rem 2rem;
}

.footer-col h3 {
    color: var(--orange);
    letter-spacing: 2px;
}

.footer-col p,
.footer-col a {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Footer hover links */
.footer-col a:hover {
    opacity: 1;
    color: var(--orange) !important;
}

/* Footer Logo */
.footer-logo {
    font-family: var(--font-primary);
    font-size: 2.6rem;
    font-weight: 700;
}

/* ============================= */
/* MOBILE RESPONSIVE FIXES ONLY */
/* ============================= */

@media (max-width: 768px) {

  /* ---------- HEADER ---------- */
  .main-header .container-wide {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main-header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  /* ---------- HERO SECTION ---------- */
  

  .hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
   
    text-align: center;
    padding: 0 1.2rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
    text-align: center;
  }

  /* ---------- SECTIONS ---------- */
  .content-section {
    padding: 3rem 1.2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  /* ---------- GRIDS ---------- */
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .feature-card,
  .step-card {
    padding: 1.5rem;
  }

  /* ---------- FOOTER ---------- */
  .main-footer .container-wide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-col {
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* SMALL PHONES (<=480px) */
@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

/* ============================= */
/* FOOTER LINK COLOR FIX */
/* ============================= */

.main-footer a,
.main-footer a:visited,
.main-footer a:hover,
.main-footer a:active,
.main-footer a:focus {
  color: #bbb;
  text-decoration: none;
}

.main-footer a:hover {
  color: var(--orange);
}


/* ============================= */
/* REMOVE ORANGE TEXT GLOW */
/* ============================= */

h1, h2, h3,
.section-title h2,
.hero-content h1,
.feature-card h3,
.step-card h3 {
    text-shadow: none !important;
    filter: none !important;
}
@media (max-width: 768px) {
  .hero-content {
    transform: translateY(-75px);
  }
}


