/* Remove top margin/padding from page sections */
.clients-banner-image,
.about-section,
.testimonials-section,
.services-section,
.contact-section {
    margin-top: -40px !important;
    padding-top: 0 !important;
}

/* Respect reduced-motion preferences to lower CPU/GPU cost */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }
    .hero-floating-elements,
    .animate__animated,
    .tilt-on-hover,
    .hover-glow,
    .border-gradient-animated {
        animation: none !important;
        transform: none !important;
    }
}

/* Remove default body margins and navbar gaps */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure no gap between navbar and content */
.navbar + .clients-banner-image,
.navbar + .about-section,
.navbar + .testimonials-section,
.navbar + .services-section,
.navbar + .contact-section {
    margin-top: -40px !important;
}

/* Modern circular icons for benefit items */
.benefits-list .benefit-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefits-list .benefit-item:hover {
    transform: translateY(-6px);
}
.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), rgba(255,255,255,0) 40%), var(--gradient-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex: 0 0 64px;
}
.benefit-icon i {
    color: #fff !important;
    font-size: 1.25rem; /* visually larger */
}
.benefit-content .benefit-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.benefit-content .benefit-description {
    margin-bottom: 0;
    color: #556;
}

@media (max-width: 768px) {
    .benefit-icon {
        width: 52px;
        height: 52px;
    }
    .benefit-icon i {
        font-size: 1.05rem;
    }
}

/* Disable hover/tilt effects on touch devices to avoid extra GPU work */
.touch-device .tilt-on-hover,
.touch-device .hover-glow {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

/* ===============================================
   HERO SECTION - MOBILE-FIRST RESPONSIVE
   =============================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none;
}

.hero-floating-elements .floating-shape {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0,123,255,0.12), rgba(255,255,255,0.02));
    filter: blur(12px);
    opacity: 0.35;
    transform: translate3d(0,0,0);
    animation: floatY 8s ease-in-out infinite;
}

@keyframes floatY { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-18px); } 
    100% { transform: translateY(0px); } 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-family: 'Roboto', sans-serif;
}

.hero-main-text {
    display: block;
    font-weight: 600;
    font-size: 1.8rem;
}

.hero-subtitle {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-left: 0;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #666;
}

.hero-stats { 
    width: 100%;
    margin: 1.5rem 0;
}

.hero-stats .stat-item { 
    background: transparent; 
    padding: 0.75rem 0;
}

.stat-number {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark-color);
    line-height: 1;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-floating-elements {
        display: block;
    }
    
    .hero-floating-elements .floating-shape:nth-child(1) { left: 5%; top: 10%; width: 180px; height: 180px; }
    .hero-floating-elements .floating-shape:nth-child(2) { right: 8%; top: 6%; width: 260px; height: 260px; animation-duration:10s; }
    .hero-floating-elements .floating-shape:nth-child(3) { left: 20%; bottom: 6%; width: 160px; height: 160px; animation-duration:7s; }
    .hero-floating-elements .floating-shape:nth-child(4) { right: 22%; bottom: 10%; width: 120px; height: 120px; animation-duration:9s; }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 70vh;
    }
}

/* Service statistics (centered, larger, with icons) */
.service-statistics .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
}

.service-statistics .stat-icon i {
    font-size: 1.8rem;
    color: #ffd54f;
    margin-bottom: 0.5rem;
}

.service-statistics .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0.25rem 0;
}

.service-statistics .stat-label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 768px) {
    .service-statistics .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .service-statistics .stat-number { 
        font-size: 2.5rem; 
    }
    
    .service-statistics .stat-icon i { 
        font-size: 2.2rem; 
    }
    
    .service-statistics .stat-label {
        font-size: 0.95rem;
    }
}

/* ===============================================
   BANNER SECTIONS - MOBILE-FIRST RESPONSIVE
   =============================================== */

/* Clients Banner Hero Gradient Overlay */
.clients-banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Clients Banner Animated Shape */
.clients-banner-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    z-index: 2;
    opacity: 0.18;
    pointer-events: none;
}

/* Clients Banner Hero Overlay */
.clients-banner-hero {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.clients-banner-overlay {
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 1rem;
    max-width: 90%;
}

.clients-banner-overlay-bg {
    background: rgba(0,0,0,0.35);
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.clients-banner-overlay .text-shadow {
    text-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1.5px 0 #222;
    font-size: 1.25rem;
}

/* Clients Banner Fullscreen Image */
.clients-banner-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: #e3eafc;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Services Banner (mobile-first responsive) */
.services-banner-hero {
    width: 100%;
    height: 35vh;
    position: relative;
    overflow: hidden;
}

.services-banner-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: #e9f4ff;
    border-radius: 0 !important;
    object-position: center center;
}

.services-banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.services-banner-overlay {
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 1rem;
    max-width: 90%;
}

.services-banner-overlay .text-shadow {
    text-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1.5px 0 #222;
    font-size: 1.25rem;
    color: #ffd700;
}

.services-banner-overlay h1,
.services-banner-overlay .display-4 {
    color: #ffd700 !important;
    font-weight: 700;
}

@media (min-width: 576px) {
    .clients-banner-shape {
        width: 250px;
        height: 250px;
    }
    
    .clients-banner-hero,
    .services-banner-hero {
        height: 60vh;
    }
    
    .clients-banner-overlay .text-shadow,
    .services-banner-overlay .text-shadow {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .clients-banner-shape {
        width: 320px;
        height: 320px;
    }
    
    .clients-banner-hero,
    .services-banner-hero {
        height: 70vh;
    }
    
    .clients-banner-overlay .text-shadow,
    .services-banner-overlay .text-shadow {
        font-size: 1.75rem;
    }
}

@media (min-width: 992px) {
    .clients-banner-hero,
    .services-banner-hero {
        width: 100vw;
        height: 60vh;
    }
    
    .clients-banner-full,
    .services-banner-full {
        width: 100vw;
        height: 60vh;
    }
    
    .clients-banner-overlay,
    .services-banner-overlay {
        max-width: 100vw;
    }
}

/* About page responsive */
.about-content .section-header {
    margin-top: -50px !important;
}

.about-image img {
    max-height: 100%;
    width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .about-content .section-header {
        margin-top: -100px !important;
    }
    
    .about-image img {
        max-height: 550px !important;
        width: auto;
    }
}

/* Why Choose Us Image responsive */
.why-choose-image {
    position: relative;
}

.why-choose-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.compliance-badges {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .why-choose-image img {
        max-height: 320px;
    }
    
    .compliance-badges {
        position: static;
        justify-content: center;
        margin-top: 0.75rem;
    }
}

@media (min-width: 768px) {
    .why-choose-image img {
        max-height: 520px;
    }
}
/* Shreeji HR Solutions - Custom Styles */

/* ===============================================
   1. GLOBAL STYLES & TYPOGRAPHY (MOBILE-FIRST)
   =============================================== */

:root {
    --bg-main: #F5F7F4;
    --card-white: #FFFFFF;
    --brand-green: #53B46E;
    --brand-green-dark: #3F9E5B;
    --brand-blue: #183B67;
    --text-dark: #1E293B;
    --text-soft: #64748B;
    --line-soft: #E6ECE8;

    --primary-color: #53B46E;
    --primary-dark: #3F9E5B;
    --primary-light: #7bca91;
    --secondary-color: #64748B;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #183B67;
    --light-color: #f5f7f4;
    --dark-color: #1E293B;
    --white: #ffffff;
    --black: #000000;
    
    --gradient-primary: linear-gradient(135deg, #53B46E 0%, #3F9E5B 100%);
    --gradient-secondary: linear-gradient(135deg, #183B67 0%, #1f4f8f 100%);
    --gradient-light: linear-gradient(135deg, #f7faf8 0%, #eef3ef 100%);
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --shadow-xl: 0 2rem 4rem rgba(0, 0, 0, 0.2);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 2rem;
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--brand-blue);
}

/* Mobile-first typography sizes */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-soft);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.1);
}

a:hover,
a:focus {
    color: var(--primary-color);
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fluid images for responsive layouts */
.fluid-image {
    width: 100%;
    height: auto;
}

/* Container responsive padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    h5 { font-size: 1.25rem; }
    h6 { font-size: 1rem; }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
}

/* ===============================================
   2. LOADING SCREEN (MOBILE-FIRST)
   =============================================== */

#loading-screen {
    display: none !important;
}

.loading,
.skeleton,
.loading-screen {
    display: none !important;
}

.loading-content {
    display: none !important;
    text-align: center;
    color: var(--primary-color);
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 123, 255, 0.1);
    width: 90%;
    max-width: 300px;
}

.loading-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .loading-content {
        padding: 2rem 3rem;
        max-width: none;
    }
    
    .loading-logo img {
        width: 80px;
        height: 80px;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
}

/* ===============================================
    3. NAVIGATION (MOBILE-FIRST RESPONSIVE)
   =============================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    position: relative;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    padding: 0;
    gap: 0.5rem;
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    max-width: 50px;
    max-height: 50px;
}

.navbar-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    max-width: 48px;
    max-height: 48px;
    border-radius: 8px;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    margin: 0;
}

.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-nav {
    gap: 0;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    color: #555 !important;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 123, 255, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Mobile menu collapse styles */
.navbar-collapse {
    padding-top: 0.5rem;
}

@media (min-width: 992px) {
    .navbar {
        padding: 1rem 0;
        min-height: 50px;
    }
    
    .navbar.scrolled {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
    
    .navbar-brand img {
        width: 65px;
        height: 65px;
        max-width: 65px;
        max-height: 65px;
    }
    
    .navbar-logo {
        width: 64px;
        height: 64px;
        max-width: 64px;
        max-height: 64px;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link::after {
        width: 0;
    }
    
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 80%;
    }
}

.navbar-cta .btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .navbar-cta .btn {
        font-size: 0.9rem;
    }
}

/* ===============================================
   4. BUTTONS (MOBILE-FIRST)
   =============================================== */

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before,
.btn:focus::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius-lg);
    min-height: 48px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 36px;
}

@media (min-width: 768px) {
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===============================================
   5. HERO SECTION
   =============================================== */

.hero-section {
    background: linear-gradient(135deg, #53B46E 0%, #3F9E5B 100%);
    background-image: linear-gradient(135deg, rgba(0, 123, 255, 0.8) 0%, rgba(0, 86, 179, 0.9) 100%),
                      url('../images/hero/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    overflow: hidden;
    height: 705px !important;
    min-height: 500px !important;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { 
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3), 
                    0 0 50px rgba(0, 123, 255, 0.2); 
    }
    100% { 
        box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4), 
                    0 0 80px rgba(0, 123, 255, 0.4); 
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 123, 255, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    animation: overlayPulse 4s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { 
        background: linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 123, 255, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    }
    50% { 
        background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 123, 255, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

/* Floating elements for hero section */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: -0.5s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 70%;
    animation-delay: -1s;
}

.floating-shape:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-main-text {
    color: #ffffff !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 3.5rem;
    display: block;
}

.hero-subtitle {
    color: #ffd700 !important;
    font-weight: 800;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
    display: block;
    margin-left: 0;
}

@keyframes subtitleGlow {
    0% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.5);
    }
    100% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff !important;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-stats .stat-item {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700 !important;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: #ffffff !important;
    opacity: 1;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
}

.hero-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.hero-buttons .btn:hover::after {
    width: 300px;
    height: 300px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, #53B46E, #3F9E5B, #53B46E);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
}

.hero-buttons .btn-outline-primary {
    border: 2px solid #ffd700;
    color: #ffd700;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}

.hero-buttons .btn-outline-primary:hover {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-image {
    position: relative;
}

.hero-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    color: var(--primary-color);
    padding: 1.5rem;

/* Innovative circular glass radial badge */
.radial-badge {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 0 40px rgba(255,255,255,0.06);
    display: grid;
    place-items: center;
    z-index: 2;
}

.radial-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00a2ff, #7bd4ff, #ffd700, #ff8c00, #00a2ff);
    filter: blur(12px);
    opacity: 0.6;
    animation: spinHue 10s linear infinite;
    z-index: -1;
}

.radial-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 0deg, rgba(0,162,255,0.9), rgba(123,212,255,0.9), rgba(255,215,0,0.9), rgba(255,140,0,0.9), rgba(0,162,255,0.9));
    mask: radial-gradient(circle at center, transparent 62%, #000 63%);
    -webkit-mask: radial-gradient(circle at center, transparent 62%, #000 63%);
    animation: spin 12s linear infinite;
}

.radial-core {
    position: relative;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(120px 120px at 30% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.35), 0 4px 20px rgba(0,0,0,0.2);
}

.radial-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.radial-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.25rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinHue {
    0% { filter: hue-rotate(0deg) blur(12px); }
    100% { filter: hue-rotate(360deg) blur(12px); }
}

@media (max-width: 991.98px) {
    .radial-badge {
        width: 180px;
        height: 180px;
    }
    .radial-value { font-size: 1.6rem; }
}
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
}

.hero-badge h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-badge p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.scroll-down:hover {
    color: #ffd700;
    opacity: 1;
    transform: translateY(-5px);
}

/* ===============================================
   6. SECTIONS
   =============================================== */

section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    padding: 0.25rem 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: var(--border-radius-xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.vision-card,
.mission-card,
.value-card {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-md);
}

.vision-card:hover,
.mission-card:hover,
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-features {
    margin-top: 1rem;
    text-align: left;
}

.feature-item {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;

/* ===============================================
   7. PAGE HEADER
   =============================================== */

.page-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 86, 179, 0.1) 100%);
    color: var(--dark-color);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-overlay.png') repeat;
    opacity: 0.05;
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding: 1rem 0;
}

/* Override min-vh classes in page headers to make them smaller */
.page-header .min-vh-50 {
    min-height: auto !important;
    padding: 2rem 0 !important;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: none;
}

.page-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===============================================
   8. CARDS
   =============================================== */

.service-card,
.service-card-detailed,
.team-card,
.testimonial-card,
.testimonial-card-featured {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.service-card::before,
.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover,
.service-card-detailed:hover,
.team-card:hover,
.testimonial-card:hover,
.testimonial-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before,
.service-card-detailed:hover::before {
    transform: scaleX(1);
}

/* Service card title and description styling */
.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.service-description {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.service-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 1rem;
}

.service-icon,
.team-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon,
.team-card:hover .team-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.service-icon,
.team-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.service-features {
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding: 0.3rem 0;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* ===============================================
   9. TEAM SECTION
   =============================================== */

.team-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
}

.team-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-skills {
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* ===============================================
   10. TESTIMONIALS
   =============================================== */

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.testimonial-author h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.rating {
    color: #ffc107;
    margin-top: 0.5rem;
}

.rating i {
    margin-right: 0.2rem;
}

/* ===============================================
   11. STATISTICS
   =============================================== */

.stats-section,
.service-statistics {
    background: var(--gradient-primary);
    color: var(--white);
}

.stat-card,
.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.counter {
    transition: var(--transition-slow);
}

/* ===============================================
   12. FORMS
   =============================================== */

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: var(--white);
}

.form-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    transition: var(--transition);
}

.form-group:focus-within .form-icon {
    color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.submit-note {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* ===============================================
   13. CONTACT CARDS
   =============================================== */

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    /* use a subtle neutral background so icons stay clear and readable */
    background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-card:hover .contact-icon {
    transform: scale(1.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, rgba(0,123,255,0.08), rgba(0,123,255,0.04));
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* ===============================================
   14. SIDEBAR
   =============================================== */

.contact-sidebar {
    padding-left: 2rem;
}

.sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.sidebar-features .feature-item {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.quick-contact .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.business-hours .hours-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.day {
    font-weight: 500;
}

.time {
    color: var(--secondary-color);
}

.hours-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* ===============================================
   15. MAP
   =============================================== */

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.google-map {
    width: 100%;
    height: 400px;
    border: 0;
}

.map-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}

.map-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.map-info p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ===============================================
   16. ACCORDIONS
   =============================================== */

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: left;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    background: var(--light-color);
    color: var(--secondary-color);
}

/* ===============================================
   17. FOOTER
   =============================================== */

.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-brand h5 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #ffff00 !important;
    font-weight: 600;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.footer-description {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff !important;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffd700 !important;
    padding-left: 0.5rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.footer-contact .contact-item i {
    margin-right: 0.5rem;
    width: 20px;
    color: #ffffff !important;
}

.footer-contact a {
    color: #ffffff !important;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #ffd700 !important;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.footer .social-link {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.copyright-text {
    color: #ffffff !important;
}

.footer-badges .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ===============================================
   18. BACK TO TOP BUTTON
   =============================================== */

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===============================================
   19. ANIMATIONS
   =============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   20. UTILITIES
   =============================================== */

.min-vh-50 {
    min-height: 50vh;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   21. RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 1.5rem;
        color: #ffffff !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 1.5rem;
        color: #ffffff !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .contact-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .map-overlay {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        color: #ffffff !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .hero-badge {
        position: static;
        margin-top: 2rem;
        min-width: auto;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        padding: 1rem;
    }
    
    .sidebar-card {
        padding: 1rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        text-align: center;
    }
    
    .cta-buttons .btn {
        display: block;
        margin-bottom: 1rem;
    }
}

/* ===============================================
   22. PRINT STYLES
   =============================================== */

@media print {
    .navbar,
    .hero-scroll-indicator,
    #backToTop,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .page-header {
        background: none !important;
        color: var(--dark-color) !important;
    }
    
    .section-title::after {
        display: none;
    }
}

/* ===============================================
   23. CUSTOM SCROLLBAR
   =============================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===============================================
   24. SELECTION STYLES
   =============================================== */

::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ===============================================
   25. FOCUS STYLES
   =============================================== */

.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===============================================
   26. LOADING STATES
   =============================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================================
   27. ERROR STATES
   =============================================== */

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===============================================
   28. SUCCESS STATES
   =============================================== */

.form-control.is-valid {
    border-color: var(--success-color);
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* ===============================================
   29. ADDITIONAL COMPONENTS
   =============================================== */

.testimonial-card-extended {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card-extended:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.author-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.author-info {
    margin-left: 1rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.carousel-testimonial {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.industry-testimonial,
.industry-card,
.value-card,
.certification-card,
.benefit-card,
.achievement-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem; /* reduced padding to make industry cards smaller */
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-md);
}

.industry-testimonial:hover,
.industry-card:hover,
.value-card:hover,
.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.industry-icon,
.value-icon,
.cert-icon,
.benefit-icon,
.achievement-icon {
    width: 48px; /* match reduced icon size */
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.industry-card:hover .industry-icon,
.value-card:hover .value-icon,
.certification-card:hover .cert-icon {
    transform: scale(1.1);
}

.rating-text {
    margin-left: 0.5rem;
    font-weight: 600;
}

.client-logo-card {
    background: transparent; /* let logos show naturally */
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.client-logo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.client-logo-card img {
    max-height: 80px;
    width: auto;
    opacity: 1;
    transition: transform 300ms var(--transition-fast), opacity 250ms ease;
    object-fit: contain;
    filter: none; /* show original colors */
}

.client-logo-card:hover img {
    transform: translateY(-4px) scale(1.03);
    opacity: 1;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* remove heavy blue overlay; keep a minimal subtle tint if needed */
    background: linear-gradient(180deg, rgba(0,123,255,0.02), rgba(0,123,255,0.01));
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; /* stay hidden by default */
    transition: opacity 220ms ease;
}

/* subtle shimmer on hover (light, non-distracting) */
.client-logo-card::after {
    content: '';
    position: absolute;
    left: -60%;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg);
    transition: transform 600ms ease, left 600ms ease, opacity 600ms ease;
    opacity: 0;
    pointer-events: none;
}
.client-logo-card:hover::after {
    left: 120%;
    opacity: 1;
}

.client-logo-card:hover .logo-overlay {
    opacity: 1;
}

.logo-overlay h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.logo-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===============================================
   30. FINAL RESPONSIVE ADJUSTMENTS
   =============================================== */

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .service-card,
    .service-card-detailed,
    .team-card,
    .testimonial-card,
    .contact-card {
        padding: 0.75rem; /* tighten padding for a smaller card footprint */
    }
    
    .stat-card,
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .testimonial-card-extended {
        padding: 1.5rem;
    }
    
    .quote-mark {
        font-size: 3rem;
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.gpu-acceleration {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-high-contrast: active) {
    .btn-primary {
        border: 2px solid;
    }
    
    .service-card,
    .team-card,
    .testimonial-card {
        border: 1px solid;
    }
}

/* Page Content Top Margin for Fixed Navigation */
.page-content {
    margin-top: 90px;
}

/* Home page should not have extra margin */
.home-page .page-content {
    margin-top: 0;
}

/* Hero highlight card (right column) */
.hero-highlight-card {
    position: absolute;
    /* Position slightly above true vertical center */
    top: calc(50% - 150px);
    right: 0;
    transform: translateY(-50%);
    width: min(360px, 90%);
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    color: #fff;
    z-index: 2;
}

.highlight-header {
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0;
    font-weight: 600;
}

.highlight-cta .btn {
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .hero-highlight-card {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Hero client logos scroller removed */

/* ===============================================
   31. GLOBAL ANIMATIONS & MICROINTERACTIONS
   =============================================== */

/* Scroll reveal utilities */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-zoom,
.reveal-rotate {
    opacity: 0;
    visibility: hidden;
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(0.96); }
.reveal-rotate { transform: translateY(20px) rotateX(6deg); transform-origin: top; }

.reveal.visible,
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-zoom.visible,
.reveal-rotate.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Keyframes for optional use */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    60% { opacity: 1; transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes fadeInBlur {
    0% { opacity: 0; filter: blur(6px); }
    100% { opacity: 1; filter: blur(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Click ripple for buttons */
.ripple-circle {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.45);
    animation: ripple-anim 650ms ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes ripple-anim {
    0% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(35); }
}

/* Image skeleton for lazy images */
img.lazy,
.skeleton {
    background: linear-gradient(100deg, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.05) 60%);
    background-size: 300% 100%;
    animation: shimmer 1.3s linear infinite;
    border-radius: 8px;
}

/* Scroll progress bar at top */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 50%, #ffd700 100%);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* Tilt on hover helper (paired with JS) */
.tilt-on-hover {
    transform-style: preserve-3d;
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.tilt-on-hover:hover {
    box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}

/* Hover glow utility */
.hover-glow:hover {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15), 0 10px 30px rgba(0,123,255,0.25) !important;
}

/* Subtle card accent (replaces animated circular gradient) */
.border-gradient-animated {
    position: relative;
    z-index: 0;
    /* Gentle shadow and rounded corners for a modern card look */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: visible;
}
.border-gradient-animated::before {
    /* soft gradient outline (no animation) */
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0,123,255,0.06), rgba(0,0,0,0) 40%, rgba(0,123,255,0.04));
    z-index: -2;
}
.border-gradient-animated::after {
    /* inner background to preserve content contrast */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--white);
    z-index: -1;
}

/* Section divider helper */
.section-divider {
    height: 3px;
    width: 120px;
    margin: 1rem auto 2rem;
    background: linear-gradient(90deg, transparent, #53B46E, #ffd700, transparent);
    border-radius: 2px;
}

/* Reduce motion: keep content visible */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-zoom,
    .reveal-rotate {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }
    .ripple-circle { display: none !important; }
}

/* Make service description concise visually: clamp to 2 lines */
.service-description {
    display: -webkit-box;
    line-clamp: 2; /* standard property for newer browsers */
    -webkit-line-clamp: 2; /* show at most 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

/* Slightly smaller service title */
.service-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
/* ===============================================
   30. GLOBAL THEME ALIGNMENT (DIGITAL CARD SYSTEM)
   =============================================== */
:root {
    --bg-main: #F5F7F4;
    --card-white: #FFFFFF;
    --brand-green: #53B46E;
    --brand-green-dark: #3F9E5B;
    --brand-blue: #183B67;
    --text-dark: #1E293B;
    --text-soft: #64748B;
    --line-soft: #E6ECE8;
}

body,
section {
    background-color: var(--bg-main);
}

.section-title,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-blue);
}

p,
.text-muted,
.stat-label,
.contact-note {
    color: var(--text-soft) !important;
}

.card,
.contact-card,
.sidebar-card,
.trusted-partner-card,
.stats-container,
.service-item,
.feature-card {
    background: var(--card-white) !important;
    border-radius: 16px !important;
    border: 1px solid var(--line-soft) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary,
a.bg-primary,
button.bg-primary {
    background: linear-gradient(135deg, #53B46E, #3F9E5B) !important;
    border-color: #53B46E !important;
    color: #ffffff !important;
    border-radius: 30px !important;
}

.btn-primary:hover,
a.bg-primary:hover,
button.bg-primary:hover {
    background: linear-gradient(135deg, #49a764, #358a50) !important;
    border-color: #3F9E5B !important;
}

.btn-outline-primary {
    border-color: #53B46E !important;
    color: #3F9E5B !important;
}

.btn-outline-primary:hover {
    background: #53B46E !important;
    color: #ffffff !important;
}

.navbar,
header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--line-soft) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-green) !important;
}

hr,
.border,
.border-top,
.border-bottom,
.border-left,
.border-right {
    border-color: var(--line-soft) !important;
}

.footer,
footer {
    background: #183B67 !important;
}

