@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import "header.css";
@import "footer.css";
@import "style.css";

/* CSS Design System - AMVIZ Digital Common Styles */

/* Design Tokens & Theme Variables */
:root {
    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Transition defaults */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Theme colors: Light Only */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F8FD;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(19, 89, 214, 0.08);
    --border-color-hover: rgba(19, 89, 214, 0.16);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Accent & Brand Colors */
    --accent-indigo: #1359D6;        /* Primary Blue */
    --accent-purple: #578FE5;        /* Secondary Blue */
    --accent-pink: #96B9EE;          /* Accent Ice Blue */
    --accent-indigo-glow: rgba(19, 89, 214, 0.08);
    --accent-purple-glow: rgba(87, 143, 229, 0.12);
    --accent-pink-glow: rgba(150, 185, 238, 0.08);

    /* Utility states */
    --priority-low: #1359D6;
    --priority-medium: #f59e0b;
    --priority-high: #ef4444;
    --priority-low-bg: rgba(19, 89, 214, 0.1);
    --priority-medium-bg: rgba(245, 158, 11, 0.1);
    --priority-high-bg: rgba(239, 68, 68, 0.1);

    --glow-opacity: 0.25;
    --blur-strength: 60px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100%;
    overflow: visible; /* Prevents double vertical scrollbars */
    padding-top: 82px; /* Space for larger fixed header */
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

main {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Scrollbar Customization — AMVIZ Brand Colors Only */
html::-webkit-scrollbar {
    width: 8px;
}
html::-webkit-scrollbar-track {
    background: #0f172a;
}
html::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #578FE5, #1359D6);
    border-radius: 99px;
    border: 2px solid #0f172a;
    background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7daef2, #2571f5);
    border: 2px solid #0f172a;
    background-clip: padding-box;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #1359D6 #0f172a;
}

/* Glowing background shapes */
.glow-bg {
    display: none !important; /* Globally disable background glowing circle animations */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(var(--blur-strength));
    opacity: var(--glow-opacity);
    mix-blend-mode: multiply;
    animation: blob-float 20s infinite ease-in-out;
    transition: filter var(--transition-normal), opacity var(--transition-normal);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: transparent;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: transparent;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: transparent;
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(8%, 15%) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-10%, 10%) scale(0.95) rotate(240deg);
    }
}

/* Layout container */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Scroll to Top Button with Circular Progress */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal), background var(--transition-fast);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    stroke: var(--border-color);
}

.progress-ring-circle {
    stroke-dasharray: 125.6; /* 2 * PI * R where R=20 */
    stroke-dashoffset: 125.6;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-top-icon {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.scroll-top-btn:hover .scroll-top-icon {
    transform: translateY(-2px);
}

/* Spinner Animation Utility */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Global Scroll Reveal Animations */
.reveal, .reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active, .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reviews slider controls and card avatar fallback overrides */
.slider-arrow-btn {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(19, 89, 214, 0.15) !important;
    background-color: #ffffff !important;
    color: #1359D6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.slider-arrow-btn:hover:not(:disabled) {
    background-color: #1359D6 !important;
    color: #ffffff !important;
    border-color: #1359D6 !important;
    transform: translateY(-2px) !important;
}
.slider-arrow-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.card-avatar-img {
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    display: block !important;
}
