/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* BODY */
body {
    background: #ffffff;
    color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
body.loaded {
    opacity: 1;
}

/* NAVBAR */
nav {
    width: 100%;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 10;
}

.nav-left img {
    height: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right a {
    text-decoration: none;
    color: inherit;
    font-size: 16px;
}

.nav-right a.active {
    border-bottom: 3px solid #0037ff;
    padding-bottom: 4px;
}

.nav-right img {
    height: 22px;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
}

.hero h1 span {
    color: #0037ff;
}

.hero p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   FIXED BUTTONS — ROUNDED RECTANGLE (HOME PAGE)
============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    border-radius: 40px;

    font-size: 18px;
    font-weight: 600;
    color: #000;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);

    border: 2px solid rgba(0, 98, 255, 0.25);
    text-decoration: none;

    transition: 0.25s ease;
    position: relative;
    overflow: hidden;

    width: auto !important;
    height: auto !important;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Hover Glow */
.btn:hover {
    transform: scale(1.07);
    border-color: rgba(0, 120, 255, 0.55);
    box-shadow:
        0 10px 36px rgba(0, 120, 255, 0.20),
        inset 0 3px 10px rgba(255, 255, 255, 0.35);
}

.btn:active {
    transform: scale(0.95);
}

/* Shine effect */
.btn::after {
    content: "";
    position: absolute;
    top: -120%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.5),
        rgba(255,255,255,0.05)
    );
    transform: skewY(-10deg);
    transition: .4s;
}
.btn:hover::after {
    top: 0%;
}

/* BUTTON GROUP */
.hero-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 70px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .hero h1 { font-size: 34px; }

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Floating equations */
canvas {
    pointer-events: none !important;
}

.floating-equation {
    position: fixed;
    color: #0037ff;
    font-weight: 600;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    opacity: .10;
    font-size: 22px;
}

/* ============================================
   MICROX ROTATING LOADER
============================================ */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease-out;
}

#loader.show {
    opacity: 1;
    pointer-events: all;
}

.loader-logo {
    width: 70px;
    height: 70px;
    animation: rotateLogo 1.1s linear infinite;
}

@keyframes .loader-logo {
    width: 70px;
    height: 70px;
    animation: none;   /* stops rotation */
}


/* ============================================
   GLOBAL UNIFORM BUTTON SIZE (ALL BUTTONS SAME)
============================================ */

/* Apply same size to ALL buttons except navbar + footer links */
a:not(nav a):not(footer a),
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    display: block !important;
    width: 100% !important;          /* all same width */
    max-width: 650px !important;     /* desktop uniform width */

    padding: 18px 0 !important;      /* all same height */

    margin: 20px auto !important;    /* spacing equal */
    
    background: rgba(255,255,255,0.95) !important;
    border: 2px solid #a5c8ff !important;
    border-radius: 50px !important;  /* uniform pill shape */

    text-align: center !important;
    font-size: 20px !important;      /* same text size */
    font-weight: 600 !important;
    color: #000 !important;
    text-decoration: none !important;

    box-shadow: 0 6px 18px rgba(0,0,0,0.10) !important;
    cursor: pointer !important;
}

/* Hover effect uniform */
a:hover,
button:hover {
    background: #ffffff !important;
    border-color: #4d94ff !important;
}

/* Protect navbar/footer */
nav a,
footer a {
    all: unset !important;
    display: inline !important;
    cursor: pointer !important;
}

/* Mobile uniform */
@media (max-width: 600px) {
    a:not(nav a):not(footer a),
    button {
        width: 100% !important;
        padding: 16px 0 !important;
        font-size: 18px !important;
    }
}
/* ============================================
   FORCE ALL BUTTON CONTAINERS INTO SINGLE COLUMN
============================================ */

/* Any div that contains buttons becomes vertical stack */
div a:not(nav a):not(footer a),
div button {
    display: block !important;
}

/* Force parent containers to stop using row layout */
div,
section,
main {
    display: block !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

/* Remove any grid layout that breaks stacking */
div, section {
    grid-template-columns: 1fr !important;
}
/* ============================================
   UNIFORM FULL-WIDTH BUTTON STYLE
============================================ */

a:not(nav a):not(footer a),
button {
    display: block !important;
    width: 100% !important;
    max-width: 600px !important;

    margin: 18px auto !important;
    padding: 8px 0 !important;

    background: rgba(255,255,255,0.95) !important;
    border: 2px solid #a5c8ff !important;
    border-radius: 50px !important;

    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: center !important;

    color: #000 !important;
    text-decoration: none !important;

    box-shadow: 0 8px 20px rgba(0,0,0,0.10) !important;
}
