@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors — Navy Blue, Light Blue, White */
    --primary-color: #00a2ff;
    /* Light Blue */
    --primary-hover: #33b5ff;
    --secondary-color: #0f1e3d;
    /* Navy */
    --accent-color: #00f2fe;
    /* Bright Light Blue */
    --navy: #0f1e3d;
    /* Core Navy */
    --navy-light: #1a3160;
    --navy-hover: #162b55;

    /* White Theme Core */
    --bg-dark: #ffffff;
    --bg-surface: #f4f7f9;
    --bg-surface-elevated: #eaf0f5;

    /* Typography Colors */
    --text-primary: #0f1e3d;
    /* Navy text instead of black */
    --text-secondary: #3b4e76;
    /* Lighter navy text */
    --text-tertiary: #6a7c9d;

    /* Cards & Borders (Light) */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.06);

    /* Layout & Spacing */
    --max-width: 1280px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Transitions & Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
body * {
    cursor: none !important;
}

/* Base interactive elements cursor */
a,
button,
.btn,
.carousel-card,
.gallery-item {
    cursor: none !important;
}

/* Custom Wrench Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background-image: url('cursors/wrench.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none !important;
    z-index: 9999999 !important;
    transform-origin: 12px 12px;
    transition: transform 0.15s ease-out;
    margin-left: -5px;
    margin-top: -5px;
}

#custom-cursor.turning {
    transform: rotate(60deg) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--navy-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reusable Components */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffdf99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-bounce);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--navy);
    color: #fff;
    box-shadow: 0 4px 15px rgba(15, 30, 61, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 30, 61, 0.4);
    background-color: var(--navy-hover);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--navy);
    color: var(--navy);
    transform: translateY(-3px);
}

/* Light Cards */
.glass-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 30, 61, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 !important;
    transition: all var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 80px;
}

.logo-wrapper {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: #fff !important;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    padding: 6px;
    user-select: none;
}

.nav-links a {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 20px;
    border-radius: 10px;
    transition: color 150ms ease-in-out;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2rem;
}

.btn-lime {
    --glow-color: var(--primary-color);
    --glow-spread-color: rgba(0, 162, 255, 0.4);
    --btn-color: var(--navy);
    border: .15em solid var(--glow-color);
    padding: 0.8em 2em;
    color: var(--glow-color) !important;
    font-size: 15px;
    font-weight: bold;
    background-color: var(--btn-color);
    border-radius: 1em;
    outline: none;
    box-shadow: 0 0 1em .15em var(--glow-color),
        0 0 3em 1em var(--glow-spread-color),
        inset 0 0 .5em .15em var(--glow-color);
    text-shadow: 0 0 .5em var(--glow-color);
    position: relative;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-lime::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(2em);
    opacity: .7;
    transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
}

.btn-lime:hover {
    color: var(--btn-color) !important;
    background-color: var(--glow-color);
    box-shadow: 0 0 1em .15em var(--glow-color),
        0 0 3em 2em var(--glow-spread-color),
        inset 0 0 .5em .15em var(--glow-color);
}

.btn-lime:active {
    box-shadow: 0 0 0.6em .15em var(--glow-color),
        0 0 2em 2em var(--glow-spread-color),
        inset 0 0 .3em .15em var(--glow-color);
}

.btn-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    transition: all 0.3s;
}

.btn-icon-circle:hover {
    background: var(--bg-surface);
    border-color: var(--navy);
    color: var(--navy) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 2rem;
    align-self: center;
}

/* Page Header (Subpages) */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.page-header .container,
.page-header .bg-glow {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.page-header p {
    font-size: 1.2rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

/* Hero Section (legacy — kept for compatibility) */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-left {
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-outline-pill {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-pill:hover {
    background: var(--bg-surface);
    color: var(--navy);
    border-color: var(--navy);
}

.hero-right {
    position: relative;
    max-width: 400px;
    margin-top: 80px;
}

.right-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.portrait-card {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--glass-border);
}

.portrait-img {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.dispatch-fee-notice {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 30, 61, 0.06);
    border: 1px solid rgba(15, 30, 61, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--navy);
    font-weight: 500;
}

.dispatch-fee-notice i {
    margin-right: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(15, 30, 61, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--navy);
    border: 1px solid rgba(15, 30, 61, 0.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-link {
    font-weight: 600;
    color: var(--navy) !important;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 0.8rem;
    color: var(--navy-light) !important;
}

/* Value Proposition */
.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.value-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.discounts-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.discount-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 30, 61, 0.04);
    border: 1px solid rgba(15, 30, 61, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.discount-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.discount-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Social Proof */
.social-box {
    text-align: center;
    padding: var(--spacing-xl) !important;
}

.social-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--navy);
    padding: 2rem 0 1rem;
    border-top: none;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-col a:hover {
    color: #fff;
}

.footer .logo {
    color: #fff !important;
}

.footer .logo span {
    color: #fff !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Water Ripple Click Effect --- */
.water-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(26, 115, 232, 0.4);
    /* Trust Blue with opacity for water effect */
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 9999;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(15, 30, 61, 0.06);
    color: var(--navy);
    border: 1px solid rgba(15, 30, 61, 0.12);
    margin-bottom: 1rem;
}

/* Background Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 30, 61, 0.04) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-blue {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 30, 61, 0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
}

/* Glowing Blue Box Animation */
@keyframes glow-blue-box {
    0% {
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.3), 0 0 20px rgba(26, 115, 232, 0.2), inset 0 0 10px rgba(26, 115, 232, 0.1);
        border-color: rgba(26, 115, 232, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(26, 115, 232, 0.8), 0 0 40px rgba(26, 115, 232, 0.5), inset 0 0 15px rgba(26, 115, 232, 0.3);
        border-color: rgba(26, 115, 232, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(26, 115, 232, 0.3), 0 0 20px rgba(26, 115, 232, 0.2), inset 0 0 10px rgba(26, 115, 232, 0.1);
        border-color: rgba(26, 115, 232, 0.4);
    }
}

.glowing-blue-box {
    animation: glow-blue-box 3s infinite alternate;
}

/* Animated Plumbing Grid Background (Hover Triggered) */
.plumbing-hover-container {
    position: relative;
    overflow: hidden;
}

.plumbing-background {
    position: absolute;
    top: -120px;
    left: -120px;
    width: calc(100% + 240px);
    height: calc(100% + 240px);
    background-color: var(--bg-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%230f1e3d' stroke-width='4' stroke-opacity='0.1' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 60 h120'/%3E%3Cpath d='M60 0 v120'/%3E%3Ccircle cx='60' cy='60' r='10' fill='%230f1e3d' fill-opacity='0.05'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3Cline x1='30' y1='52' x2='30' y2='68' stroke-width='8'/%3E%3Cline x1='90' y1='52' x2='90' y2='68' stroke-width='8'/%3E%3Cline x1='52' y1='30' x2='68' y2='30' stroke-width='8'/%3E%3Cline x1='52' y1='90' x2='68' y2='90' stroke-width='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: movePipes 25s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.plumbing-hover-container:hover .plumbing-background {
    opacity: 1;
    /* SVG already has low opacity */
}

.plumbing-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient adapted to fade into white/surface colors depending on placement */
    background: linear-gradient(180deg, var(--bg-surface) 0%, transparent 20%, transparent 80%, var(--bg-surface) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes movePipes {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(120px, 120px, 0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --spacing-xxl: 4rem;
        --spacing-xl: 3rem;
    }

    .nav-actions {
        display: none;
    }

    .logo-wrapper {
        padding: 0 2rem;
        clip-path: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-right {
        margin-top: 40px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-primary) !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Animated Request Button --- */
.animated-button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 1.25rem 2em;
    border: var(--navy) solid 0.15em;
    border-radius: 0.25em;
    color: var(--navy);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: border 300ms, color 300ms;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.animated-button p {
    z-index: 1;
    margin: 0;
    transition: color 300ms;
}

.animated-button:hover p,
.animated-button:hover {
    color: #ffffff !important;
}

.animated-button:active {
    border-color: var(--navy-hover);
}

.animated-button::after,
.animated-button::before {
    content: "";
    position: absolute;
    width: 25em;
    aspect-ratio: 1;
    background: var(--navy);
    border-radius: 50%;
    transition: transform 500ms, background 300ms;
    z-index: 0;
}

.animated-button::before {
    left: 0;
    transform: translateX(-24em);
}

.animated-button::after {
    right: 0;
    transform: translateX(24em);
}

.animated-button:hover:before {
    transform: translateX(-2em);
}

.animated-button:hover:after {
    transform: translateX(2em);
}

.animated-button:active:before,
.animated-button:active:after {
    background: var(--navy-hover);
}

/* From Uiverse.io by MuhammadHasann */
.button {
    --black-700: hsla(0 0% 12% / 1);
    --border_radius: 9999px;
    --transtion: 0.3s ease-in-out;
    --offset: 2px;

    cursor: pointer;
    position: relative;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    transform-origin: center;

    padding: 1rem 2rem;
    background-color: transparent;

    border: none;
    border-radius: var(--border_radius);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));

    transition: transform var(--transtion);
}

.button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: var(--black-700);

    border-radius: var(--border_radius);
    box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
        0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
        0 0 0 calc(var(--active, 0) * 0.375rem) hsl(200 97% 50% / 0.75);

    transition: all var(--transtion);
    z-index: 0;
}

.button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    height: 100%;
    background-color: hsla(200 97% 61% / 0.75);
    background-image: radial-gradient(at 51% 89%,
            hsla(205, 45%, 74%, 1) 0px,
            transparent 50%),
        radial-gradient(at 100% 100%, hsla(205, 36%, 60%, 1) 0px, transparent 50%),
        radial-gradient(at 22% 91%, hsla(205, 36%, 60%, 1) 0px, transparent 50%);
    background-position: top;

    opacity: var(--active, 0);
    border-radius: var(--border_radius);
    transition: opacity var(--transtion);
    z-index: 2;
}

.button:is(:hover, :focus-visible) {
    --active: 1;
}

.button:active {
    transform: scale(1);
}

.button .dots_border {
    --size_border: calc(100% + 2px);

    overflow: hidden;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: var(--size_border);
    height: var(--size_border);
    background-color: transparent;

    border-radius: var(--border_radius);
    z-index: -10;
}

.button .dots_border::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: left;
    transform: rotate(0deg);

    width: 100%;
    height: 2rem;
    background-color: white;

    mask: linear-gradient(transparent 0%, white 120%);
    -webkit-mask: linear-gradient(transparent 0%, white 120%);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.button .sparkle {
    position: relative;
    z-index: 10;

    width: 1.75rem;
}

.button .sparkle .path {
    fill: currentColor;
    stroke: currentColor;

    transform-origin: center;

    color: hsl(0, 0%, 100%);
}

.button:is(:hover, :focus) .sparkle .path {
    animation: path 1.5s linear 0.5s infinite;
}

.button .sparkle .path:nth-child(1) {
    --scale_path_1: 1.2;
}

.button .sparkle .path:nth-child(2) {
    --scale_path_2: 1.2;
}

.button .sparkle .path:nth-child(3) {
    --scale_path_3: 1.2;
}

@keyframes path {

    0%,
    34%,
    71%,
    100% {
        transform: scale(1);
    }

    17% {
        transform: scale(var(--scale_path_1, 1));
    }

    49% {
        transform: scale(var(--scale_path_2, 1));
    }

    83% {
        transform: scale(var(--scale_path_3, 1));
    }
}

.button .text_button {
    position: relative;
    z-index: 10;

    background-image: linear-gradient(90deg,
            hsla(0 0% 100% / 1) 0%,
            hsla(0 0% 100% / var(--active, 0)) 120%);
    background-clip: text;
    -webkit-background-clip: text;

    font-size: 1rem;
    color: transparent;
}