:root {

    /* BRAND COLORS */
    --header-bg: #1A2CA3;
    --section-bg: #EEEEEE;
    --hero-overlay: #162E93;
    --hover-color: #fa9a09;
    --cta-color: #FFB300;

    /* TYPOGRAPHY */
    --heading-font: "Amulya", sans-serif;
    --body-font: "Syne", sans-serif;

    :root {
        --container-width: 1200px;
        --side-padding: 20px;
    }


}

/* ========================================= */
/* GLOBAL PAGE MARGINS - RESET & NORMALIZE */
/* ========================================= */

/* Remove default browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent media from overflowing viewport */
img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background: #EEEEEE;
}

.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

h2 {
    font-family: var(--heading-font);
    color: #1A2CA3;
    font-size: 40px;
    margin-bottom: 20px;
}

h3 {
    color: #FFB300;
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 1100px;
    text-align: left;
}

p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.glass-heading {
    display: inline-block;
}

.glass-word {
    display: inline-block;
    margin-right: 8px;
    font-weight: 800;
    font-size: 1.1em;
    background: linear-gradient(135deg, var(--word-color), rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    padding: 0 4px;
    transition: all 0.3s ease;
}

.glass-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-heading:hover .glass-word::before {
    opacity: 1;
}

.glass-heading:hover .glass-word {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

html {
    scroll-behavior: smooth;
}

/* CTA BUTTONS */
.trust-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 50px !important;
    margin-top: 20px !important;
}

.btn-estimate,
.btn-call,
.header-call-btn {
    /* Fixed equal size for both buttons */
    width: 220px;
    height: 52px;
    padding: 0 20px;
    border-radius: 10px;
    border: none !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start !important;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    flex-shrink: 0;
}

/* Estimate — Amber gradient */
.btn-estimate {
    background: linear-gradient(135deg, #FFD055 0%, #FFB300 50%, #e09000 100%) !important;
    color: #fff !important;
    box-shadow: 0 5px 0px #b07800;
}

.btn-estimate:hover {
    background: linear-gradient(135deg, #FFD055 0%, #FFB300 50%, #e09000 100%) !important;
    color: #fff !important;
    transform: translateY(2px);
    box-shadow: 0 3px 0px #b07800 !important;
}

.btn-estimate:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0px #b07800 !important;
}

/* Call — Blue gradient */
.btn-call,
.header-call-btn {
    background: linear-gradient(135deg, #3a55e0 0%, #1A2CA3 50%, #0c1a6b 100%) !important;
    color: #fff !important;
    box-shadow: 0 5px 0px #0c1655;
}

.btn-call:hover,
.header-call-btn:hover {
    background: linear-gradient(135deg, #3a55e0 0%, #1A2CA3 50%, #0c1a6b 100%) !important;
    color: #fff !important;
    transform: translateY(2px);
    box-shadow: 0 3px 0px #0c1655 !important;
}

.btn-call:active,
.header-call-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0px #0c1655 !important;
}

.glow-blue-word {
    display: inline-block;
    margin-right: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, #1A2CA3, #1947e0, #FFB300);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.glow-blue-word:hover {
    text-shadow: 0 0 15px #1A2CA3;
    transform: translateY(-2px);
}

/* Optional: Add a subtle blue underline */
.glow-blue-word::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #1E3A8A, #60A5FA);
    transition: width 0.3s ease;
}

.glow-blue-word:hover::after {
    width: 100%;
}


#backToTop {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 55px;
    height: 55px;

    border-radius: 50%;
    border: none;

    /* Modern gradient background instead of solid */
    background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 9999999 !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: all 0.3s ease;

    /* Modern additions */
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
    backdrop-filter: blur(0px);
    /* For glassmorphism effect */
}

/* Hover effect */
#backToTop:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.4);
}

/* Active/Click effect */
#backToTop:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(255, 179, 0, 0.3);
}

/* Optional: Add a subtle ring/pulse effect */
#backToTop::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FFB300;
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
}

#backToTop:hover::before {
    animation: pulse 1.5s infinite;
}

.section-tag {
    display: block !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

.section-tag span {
    display: inline-block !important;
    background: #FFB300 !important;
    color: #000 !important;
    padding: 8px 24px 8px 28px !important;
    border-radius: 0 50px 50px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.section-title {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    width: 100% !important;
}



.section-title p {
    text-align: left !important;
}

@media (max-width: 992px) {

    .section-tag,
    .section-title {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 768px) {

    .section-tag,
    .section-title {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 480px) {

    .section-tag,
    .section-title {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}



/* SHOW STATE */
#backToTop.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
}

/* HOVER */
#backToTop:hover {
    transform: translateY(-5px);
}

/* =========================================
LOGO
========================================= */

.logo img {
    height: 120px;
    width: auto;
    transform: scale(1.2);
    transform-origin: left center;
}

.site-footer .logo {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 20px;
}

/* =========================================
   SECTION SPECIFIC FIXES
========================================= */

/* Hero section */
#hero-section .trust-buttons {
    justify-content: flex-start;
}

/* About section - Force both buttons */
#about-section .trust-buttons {
    justify-content: flex-start;
}

#about-section .btn-call {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Services section */
#services-section .trust-buttons {
    justify-content: center;
}

/* Contact section */
#contact-section .trust-buttons {
    justify-content: center;
}


/* Main container for all sections */
.container,
.section-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    width: 100% !important;
}

/* Alternative: Using wrapper class */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


section,
.section {
    margin-bottom: 0;
    padding: 80px 0;
    width: 100%;
}


/* ========================================= */
/* RESPONSIVE MARGINS */
/* ========================================= */

/* Tablet */
@media (max-width: 992px) {

    .container,
    .section-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    section,
    .section {
        padding: 60px 0;
        margin-left: 15px !important;
        margin-right: 15px !important;
        width: calc(100% - 30px) !important;
        border-radius: 24px;
    }

    #hero-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 0;
    }

    section:first-of-type {
        padding-top: 90px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .container,
    .section-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section,
    .section {
        padding: 50px 0;
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        border-radius: 20px;
    }

    #hero-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 0;
    }

    section:first-of-type {
        padding-top: 80px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .container,
    .section-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section,
    .section {
        padding: 40px 0;
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        border-radius: 16px;
    }

    #hero-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-radius: 0;
    }

    section:first-of-type {
        padding-top: 75px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 680px) {
    .section-title {
        padding: 0.7rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* MOBILE — Tablet and Mobile: stack both buttons vertically */
@media (max-width: 768px) {
    .trust-buttons {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 260px !important;
        height: 50px !important;
        display: flex !important;
        text-align: left !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }
}

/* Mobile Large */
@media (max-width: 576px) {

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 240px;
        height: 48px;
        font-size: 12px;
    }
}

/* Mobile Medium */
@media (max-width: 480px) {
    .trust-buttons {
        gap: 10px;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 90%;
        max-width: 260px;
        height: 46px;
        font-size: 12px;
    }
}

/* Mobile Small */
@media (max-width: 375px) {

    .btn-estimate,
    .btn-call {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* ==========================================================================
   SCROLL ENTRANCE ANIMATIONS SYSTEM
   ========================================================================== */

.animate-on-scroll {
    opacity: 0 !important;
    will-change: transform, opacity;
}

/* Transitions config */
.animate-on-scroll.fade-in-up {
    transform: translateY(30px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-on-scroll.fade-in-left {
    transform: translateX(-40px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-on-scroll.fade-in-right {
    transform: translateX(40px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-on-scroll.zoom-in {
    transform: scale(0.95) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.animate-on-scroll.fade-in {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Active Trigger Class */
.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Animation Delays for lists/grids */
.delay-100 {
    transition-delay: 0.1s !important;
}

.delay-200 {
    transition-delay: 0.2s !important;
}

.delay-300 {
    transition-delay: 0.3s !important;
}

.delay-400 {
    transition-delay: 0.4s !important;
}

.delay-500 {
    transition-delay: 0.5s !important;
}

.delay-600 {
    transition-delay: 0.6s !important;
}

/* ==========================================================================
   SECTION FLOATING ORB BACKGROUND ANIMATIONS
   ========================================================================== */

/* Orb 1 — slow drift top-right to bottom-left */
@keyframes orb-float-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 20px) scale(1.08);
    }

    66% {
        transform: translate(15px, -25px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Orb 2 — slow drift bottom-left to top-right */
@keyframes orb-float-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(25px, -20px) scale(1.06);
    }

    66% {
        transform: translate(-15px, 18px) scale(0.97);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Base section positioning */
section {
    position: relative;
    overflow: hidden;
}

/* Orb 1 — blue glow, top-right */
section::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    top: -80px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 44, 163, 0.13) 0%, rgba(26, 44, 163, 0.04) 55%, transparent 75%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: orb-float-1 14s ease-in-out infinite;
}

/* Orb 2 — amber glow, bottom-left */
section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -60px;
    left: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.12) 0%, rgba(255, 179, 0, 0.04) 55%, transparent 75%);
    filter: blur(25px);
    pointer-events: none;
    z-index: 0;
    animation: orb-float-2 18s ease-in-out infinite 3s;
}

/* Sections with dark overlays — disable orbs (they use ::before for overlay) */
.trust-closer-section::before,
.cta-section::before {
    animation: none;
    background: none;
    filter: none;
}

.trust-closer-section::after,
.cta-section::after {
    animation: none;
    background: none;
    filter: none;
}

/* Make sure section content stays above orbs */
section>* {
    position: relative;
    z-index: 1;
}

/* Reduce on mobile for performance */
@media (max-width: 768px) {
    section::before {
        width: 250px;
        height: 250px;
        filter: blur(20px);
    }

    section::after {
        width: 200px;
        height: 200px;
        filter: blur(18px);
    }
}

/* Disable on very small screens */
@media (max-width: 480px) {

    section::before,
    section::after {
        display: none;
    }
}

/* Force all buttons to be visible on mobile */
@media (max-width: 992px) {
    .trust-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 280px !important;
        max-width: 80% !important;
        height: 52px !important;
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin: 0 !important;
    }
}

/* Small Tablet (768px and below) */
@media (max-width: 768px) {
    .trust-buttons {
        gap: 12px !important;
        margin-bottom: 25px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 260px !important;
        height: 50px !important;
        font-size: 13px !important;
    }
}

/* Mobile Large (576px and below) */
@media (max-width: 576px) {
    .trust-buttons {
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 100% !important;
        max-width: 280px !important;
        height: 48px !important;
        font-size: 12px !important;
        padding: 0 15px !important;
    }
}

/* Mobile Medium (480px and below) */
@media (max-width: 480px) {
    .trust-buttons {
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 90% !important;
        max-width: 260px !important;
        height: 46px !important;
        font-size: 12px !important;
    }
}

/* Mobile Small (375px and below) */
@media (max-width: 375px) {
    .trust-buttons {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 95% !important;
        max-width: 240px !important;
        height: 44px !important;
        font-size: 11px !important;
    }
}

/* Tablet Typography (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    section h3,
    .section h3 {
        font-size: 26px !important;
    }

    section p,
    .section p {
        font-size: 20px !important;
        line-height: 1.6 !important;
    }

    /* Protect intentionally small specific elements */
    section p.review-author {
        font-size: 13px !important;
    }
}

/* Extra Small (320px and below) */
@media (max-width: 320px) {
    .trust-buttons {
        gap: 8px !important;
    }

    .btn-estimate,
    .btn-call,
    .header-call-btn {
        width: 100% !important;
        max-width: 220px !important;
        height: 42px !important;
        font-size: 10px !important;
    }
}

/* Fix for any hidden buttons - Universal fix */
.btn-call,
.header-call-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure buttons are not hidden by any other CSS */
.trust-buttons .btn-call,
.trust-buttons .btn-estimate {
    display: flex !important;
}

/* Fix for hero section call button */
#hero-section .trust-buttons .btn-call,
#hero-section .trust-buttons .btn-estimate {
    display: flex !important;
    visibility: visible !important;
}