/* =========================================================
   Aganta Foundry — Custom CSS
   Purpose:
   - CLS-safe font loading
   - Design tokens
   - Small handcrafted polish
   ========================================================= */

/* -------------------------
   Font fallback (CLS FIX)
   ------------------------- */
@font-face {
    font-family: "Bricolage Fallback";
    src: local("Arial");
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
    size-adjust: 103%;
}

/* -------------------------
   Design tokens
   ------------------------- */
:root {
    --bg-dark: #0e2233;
    --panel: #16324a;
    --neon-green: #9cff00;
    --aganta-purple: #b700ff;
    --aganta-white: #ffffff;
    --muted: #9ca3af;
}

/* -------------------------
   Base / Reset
   ------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bg-dark);
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--aganta-white);
    font-family:
        "Bricolage Grotesque",
        "Bricolage Fallback",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------------
   Typography
   ------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.65;
    color: var(--muted);
}

/* -------------------------
   Utility helpers
   ------------------------- */
.bg-panel {
    background-color: var(--panel);
}

.text-neon-green {
    color: var(--neon-green);
}

.text-aganta-purple {
    color: var(--aganta-purple);
}

.text-aganta-white {
    color: var(--aganta-white);
}

/* -------------------------
   Links
   ------------------------- */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

/* -------------------------
   Buttons
   ------------------------- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        transform 0.12s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.12s ease;
    user-select: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(183, 0, 255, 0.18);
}

/* Primary */
.btn--primary {
    border-color: rgba(183, 0, 255, 0.6);
}

.btn--primary:hover {
    background-color: var(--aganta-purple);
    box-shadow: 0 10px 30px rgba(183, 0, 255, 0.25);
    transform: translateY(-2px);
}

/* Accent */
.btn--accent {
    border-color: rgba(156, 255, 0, 0.6);
}

.btn--accent:hover {
    background-color: var(--neon-green);
    color: #000;
    box-shadow: 0 10px 30px rgba(156, 255, 0, 0.2);
    transform: translateY(-2px);
}

/* -------------------------
   Hero section polish
   ------------------------- */
#hero {
    overflow: hidden;
}

#hero h1 {
    line-height: 1.05;
    /* locks CLS */
}

#hero img {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------
   Cards / focus
   ------------------------- */
article:focus-within {
    outline: 3px solid rgba(156, 255, 0, 0.1);
    outline-offset: 2px;
}

/* -------------------------
   Responsive tweaks
   ------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.25rem, 6vw, 3rem);
    }
}

@media (max-width: 640px) {
    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
    }
}

/*contact us*/
/* Fix Chrome autofill dark-theme bug */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    transition: background-color 5000s ease-in-out 0s;
}



#hero h1 {
    margin-bottom: 2.5rem;
}

#hero p {
    margin-bottom: 3rem;
}

/* -------------------------
   Cursor View Effect
   ------------------------- */
.cursor-view-target {
    position: relative;
    cursor: none;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.6s ease, border-color 0.6s ease;
}

#cursor-view {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#cursor-view span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0b0b0b;
    background: #9cff00;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 12px 26px rgba(156, 255, 0, 0.25);
}

body.cursor-view-active #cursor-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (hover: none),
(pointer: coarse) {
    .cursor-view-target {
        cursor: pointer;
    }

    #cursor-view {
        display: none;
    }
}