/* Accessibility and Performance Optimizations */
:root {
    --saafe-primary: #4A00E0; /* Vibrant Purple/Blue */
    --saafe-primary-rgb: 74,0,224; /* For use in rgba() */
    --saafe-secondary: #8E2DE2; /* Lighter Purple */
    --saafe-secondary-rgb: 142,45,226; /* For use in rgba() */
    --saafe-accent: #00C9FF; /* Bright Cyan/Blue for accents & CTAs */
    --saafe-accent-rgb: 0,201,255; /* For use in rgba() */
    --saafe-dark: #160542; /* Deep Dark Blue/Purple for backgrounds/text */
    --saafe-text: #2d3748; 
    --saafe-text-rgb: 45,55,72;
    --saafe-text-muted: #718096;
    --saafe-text-muted-rgb: 113,128,150;
    --saafe-light: #f8faff; 
    --saafe-white: #ffffff;
    --saafe-border: #e2e8f0;
    --saafe-success: #28a745;
    --saafe-success-rgb: 40,167,69;
    --saafe-error: #dc3545;

    --gradient-primary: linear-gradient(135deg, var(--saafe-primary), var(--saafe-secondary));
    --gradient-accent: linear-gradient(135deg, var(--saafe-accent), var(--saafe-primary));
    --gradient-hero: linear-gradient(135deg, var(--saafe-dark) 0%, #301060 100%);
    --bg-dark-gradient: linear-gradient(135deg, var(--saafe-dark), #2a0f5c);

    --shadow-sm: 0 2px 4px rgba(45, 55, 72, 0.07);
    --shadow-md: 0 5px 15px rgba(45, 55, 72, 0.1);
    --shadow-lg: 0 10px 30px rgba(45, 55, 72, 0.12);
    --transition-base: all 0.3s ease-in-out;

    --font-primary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Focus styles */
    --focus-outline: 3px solid var(--saafe-accent);
    --focus-outline-offset: 2px;
    
    /* Reduced motion preferences */
    --reduced-motion: (prefers-reduced-motion: reduce);
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Roboto:wght@400;500&family=Fira+Code&display=swap');


/* Base Styles */
body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--saafe-text);
    background-color: var(--saafe-white);
    overflow-x: hidden;
    padding-top: 0;
    will-change: transform; /* Optimize for animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--saafe-dark);
    margin-bottom: 0.75rem;
}
.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6 {
    color: var(--saafe-white);
}

a {
    color: var(--saafe-primary);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--saafe-secondary);
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--saafe-text-muted);
}
.text-light .lead {
    color: rgba(255, 255, 255, 0.85);
}

.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}
.btn::before { /* Shine effect for buttons */
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth transition */
    z-index: -1;
}
.btn:hover::before {
    left: 100%; /* Move across */
}


.btn-primary {
    background: var(--gradient-primary);
    color: var(--saafe-white);
}
.btn-primary:hover {
    background: var(--gradient-primary); 
    opacity: 0.9;
    color: var(--saafe-white);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--saafe-white);
}
.btn-accent:hover {
    background: var(--gradient-accent);
    opacity: 0.9;
    color: var(--saafe-white);
}

.btn-outline-accent {
    border: 2px solid var(--saafe-accent);
    color: var(--saafe-accent);
    background-color: transparent;
}
.btn-outline-accent:hover {
    background: var(--saafe-accent);
    color: var(--saafe-dark);
    border-color: var(--saafe-accent);
}

.btn-outline-light {
    border: 2px solid var(--saafe-white);
    color: var(--saafe-white);
    background-color: transparent;
}
.btn-outline-light:hover {
    background: var(--saafe-white);
    color: var(--saafe-dark);
}

.btn-success { 
    background-color: var(--saafe-success);
    color: var(--saafe-white);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    body {
        padding-top: 0;
    }
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section-title.text-white::after {
    background: var(--gradient-accent);
}


.section-title-alt { 
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--saafe-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Enhanced Navigation Styles */
.navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem 0;
    background: var(--gradient-hero) !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1030 !important;
    height: auto;
    min-height: 80px;
}

/* Only change navbar style when scrolled past hero section */
.navbar.scrolled:not(.in-hero) {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(var(--saafe-primary-rgb), 0.1);
}

/* Update nav links for hero section navbar */
.navbar:not(.scrolled:not(.in-hero)) .nav-link {
    color: rgba(255, 255, 255, 1) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.navbar:not(.scrolled:not(.in-hero)) .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--saafe-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar:not(.scrolled:not(.in-hero)) .nav-link:hover::after,
.navbar:not(.scrolled:not(.in-hero)) .nav-link.active::after {
    width: 80%;
}

.navbar:not(.scrolled:not(.in-hero)) .nav-link:hover {
    color: var(--saafe-accent) !important;
    transform: translateY(-1px);
}

.navbar:not(.scrolled:not(.in-hero)) .navbar-brand img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.navbar:not(.scrolled:not(.in-hero)) .navbar-brand:hover img {
    transform: translateY(-2px);
}

.navbar:not(.scrolled:not(.in-hero)) .btn-outline-accent {
    border-color: var(--saafe-accent);
    color: var(--saafe-accent);
    background: transparent;
    transition: all 0.3s ease;
}

.navbar:not(.scrolled:not(.in-hero)) .btn-outline-accent:hover {
    background: var(--saafe-accent);
    color: var(--saafe-dark);
    border-color: var(--saafe-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--saafe-accent-rgb), 0.2);
}

.navbar-brand {
    position: relative;
    padding: 0;
    transition: var(--transition-base);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease-in-out;
    transform-origin: left;
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: translateY(-2px);
}

.navbar-nav {
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--saafe-text) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--saafe-primary) !important;
    transform: translateY(-1px);
}

.dropdown-menu {
    padding: 1rem 0;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    min-width: 220px;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--saafe-primary-rgb), 0.1);
    animation: dropdownFade 0.2s ease;
    z-index: 9997;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--saafe-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background-color: rgba(var(--saafe-primary-rgb), 0.08);
    color: var(--saafe-primary);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--saafe-primary);
    font-size: 1.1rem;
}

.navbar .btn-outline-accent {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.navbar .btn-outline-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--saafe-accent-rgb), 0.2);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(var(--saafe-primary-rgb), 0.08);
    color: var(--saafe-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(var(--saafe-primary-rgb), 0.12);
}

.language-selector i {
    font-size: 1rem;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .navbar-collapse {
        background: var(--gradient-hero);
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .nav-link {
        color: rgba(255, 255, 255, 1) !important;
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--saafe-accent) !important;
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .dropdown-menu {
        background: var(--gradient-hero);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .dropdown-item {
        color: rgba(255, 255, 255, 1);
    }
    
    .navbar:not(.scrolled:not(.in-hero)) .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--saafe-accent);
    }
}

/* Add animation for navbar transition */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: fadeInDown 0.5s ease-out;
}

/* Enhanced Mobile Typography and Spacing */
@media (max-width: 768px) {
    body {
        padding-top: 0;
        font-size: 0.95rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
        margin-bottom: 1.5rem;
    }
    
    .section-title-alt {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
        margin-bottom: 1.25rem;
    }
    
    .hero-content .lead {
        font-size: clamp(1rem, 3vw, 1.15rem);
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .info-card, .developer-card, .use-case-card {
        padding: 1.5rem;
    }
    
    .info-card h4, .developer-card h4, .use-case-card h4 {
        font-size: 1.25rem;
    }
    
    .client-logos-grid {
        gap: 1.5rem;
    }
    
    .client-logos-grid img {
        max-height: 40px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .section-title-alt {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }
    
    .hero-content .lead {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
    }
    
    .info-card-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .feature-list-alt li {
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .site-footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-logo {
        max-width: 140px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn:hover,
    .nav-link:hover,
    .dropdown-item:hover,
    .blog-card:hover,
    .info-card:hover,
    .developer-card:hover,
    .use-case-card:hover {
        transform: none;
    }
    
    .nav-link:active,
    .dropdown-item:active,
    .btn:active {
        opacity: 0.8;
    }
    
    .blog-card:active,
    .info-card:active,
    .developer-card:active,
    .use-case-card:active {
        transform: scale(0.98);
    }
}

/* Improved Touch Targets */
@media (max-width: 991.98px) {
    .nav-link,
    .dropdown-item,
    .btn,
    .blog-category,
    .blog-card-tags .tag {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control,
    .blog-search .form-control {
        min-height: 44px;
    }
    
    .social-icons a {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: var(--saafe-white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    background: transparent;
}

.particle-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    mix-blend-mode: screen;
    display: block;
    filter: brightness(1.2) contrast(1.1);
}

/* Add decorative SVG elements */
.hero-section .decorative-svg {
    position: absolute;
    width: 250px;
    height: 250px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

.hero-section .decorative-svg.top-right {
    top: 10%;
    right: 5%;
    background-image: url('../clients/Group 90.svg');
    transform: rotate(15deg);
}

.hero-section .decorative-svg.bottom-left {
    bottom: 10%;
    left: 5%;
    background-image: url('../clients/Group 91.svg');
    transform: rotate(-15deg);
}

/* Adjust the gradient overlay for better blending */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(var(--saafe-primary-rgb), 0.1) 0%,
        rgba(var(--saafe-dark-rgb), 0.15) 40%,
        rgba(var(--saafe-dark-rgb), 0.2) 100%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
    mix-blend-mode: screen;
    filter: brightness(1.2);
}

.hero-visual:hover img {
    transform: none;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding: 0 0.1em; 
}

.hero-content .lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    margin: 0;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.animated-float { 
    animation: float 6s ease-in-out infinite;
}

.client-logos-inline {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.client-logos-inline::before,
.client-logos-inline::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.client-logos-inline::before {
    left: 0;
    background: linear-gradient(to right, var(--gradient-hero), transparent);
}

.client-logos-inline::after {
    right: 0;
    background: linear-gradient(to left, var(--gradient-hero), transparent);
}

.client-logos-inline .logos-track {
    display: flex;
    gap: 2rem;
    animation: scrollLogos 25s linear infinite;
}

.client-logos-inline img {
    max-height: 40px; /* Increased size */
    opacity: 0.8;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.client-logos-inline img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes gradientPulse { /* Subtle background movement */
    0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.05) rotate(5deg); opacity: 0.7; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translate3d(0, 30px, 0); /* Use transform3d for GPU acceleration */
    }
    to { 
        opacity: 1; 
        transform: translate3d(0, 0, 0);
    }
}

/* Info Cards for Why Saafe & Others with similar ::before hover effect */
.info-card, .developer-card, .use-case-card {
    background: var(--saafe-white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%; 
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for ::before */
    overflow: hidden; /* Needed for ::before */
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform;
    backface-visibility: hidden;
}
.info-card:hover, .developer-card:hover, .use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.info-card:hover { border-top-color: var(--saafe-primary); }
.developer-card:hover { border-top-color: var(--saafe-accent); }
.use-case-card:hover { border-left-color: var(--saafe-primary); /* use-case had border-left */ }


/* Radial gradient hover effect for cards (uses JS-set --mouse-x/y variables) */
.info-card::before, .developer-card::before, .use-case-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%); /* Default to center if var not set */
    left: var(--mouse-x, 50%);
    width: 0; /* Start small */
    height: 0;
    background: radial-gradient(circle, rgba(var(--saafe-primary-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    pointer-events: none; /* So it doesn't interfere with mouse events on card */
    z-index: 0; /* Behind card content */
}
.info-card:hover::before, .developer-card:hover::before, .use-case-card:hover::before {
    width: 300px; /* Expand size on hover */
    height: 300px;
    opacity: 1;
}
.info-card > *, .developer-card > *, .use-case-card > * {
    position: relative; /* Ensure content is above ::before pseudo-element */
    z-index: 1;
}

.info-card-icon { /* Specific to .info-card */
    font-size: 2.5rem; 
    width: 70px; height: 70px; 
    margin: 0 auto 1.5rem auto;
    background: var(--gradient-primary);
    color: var(--saafe-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(5deg);
}
.info-card h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--saafe-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}
.info-card p { font-size: 0.9rem; color: var(--saafe-text-muted); flex-grow: 1;}


/* Visual Placeholders (Canvas Containers) */
.visual-placeholder {
    border-radius: 12px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(145deg, var(--saafe-light), var(--saafe-white));
    overflow: hidden;
    position: relative; 
}
.visual-placeholder canvas {
    display: block; 
    width: 100%;
    height: 100%;
}
.visually-hidden { 
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


.feature-list-alt { list-style: none; padding-left: 0;}
.feature-list-alt li { margin-bottom: 0.8rem; font-size: 1.05rem; color: var(--saafe-text); display: flex; align-items: flex-start;}
.feature-list-alt i { color: var(--saafe-primary); margin-right: 0.75rem; margin-top: 0.2em; font-size: 1.1em;}

/* Developer Section Cards - general card styles above already apply border-top and hover */
.bg-dark-gradient { background: var(--bg-dark-gradient); }
.developer-card {
    background-color: rgba(255,255,255,0.07); 
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2rem; 
    border-radius: 12px;
    color: var(--saafe-white);
}
.developer-card .dev-icon { font-size: 2.2rem; color: var(--saafe-accent); margin-bottom: 1.25rem;}
.developer-card h4 {
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    color: var(--saafe-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.developer-card p { font-size: 0.95rem; opacity: 0.85; flex-grow: 1; margin-bottom: 1.5rem;}
.stretched-link-custom { color: var(--saafe-accent); font-weight: 600; text-decoration: none; display: inline-block;}
.stretched-link-custom:hover { color: var(--saafe-white); }
.stretched-link-custom i { transition: transform 0.2s ease-in-out; margin-left: 0.3em;}
.stretched-link-custom:hover i { transform: translateX(4px); }


/* Code Visual Styles */
.code-visual-wrapper { max-width: 800px; margin: 0 auto; position: relative;}
.code-visual {
    background: #120338; 
    border-radius: 12px; padding: 1rem; padding-left: 1.5rem; padding-right: 1.5rem;
    color: #e0e0e0; font-family: 'Fira Code', 'SF Mono', 'Courier New', monospace;
    font-size: 0.9rem; line-height: 1.6; min-height: 250px; 
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; overflow-x: auto; text-align: left;
}
.code-visual::before { 
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40px; 
    background: rgba(0,0,0, 0.15); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 11px; border-top-right-radius: 11px;
}
.code-visual::after { 
    content: ''; position: absolute; top: 14px; left: 20px; width: 12px; height: 12px;
    border-radius: 50%; background: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}
.code-visual pre { margin: 0; padding-top: 40px; white-space: pre-wrap; word-break: break-word;}
.code-visual code { display: block; color: #e0e0e0;}
.code-visual.typing code::after { 
    content: '|'; animation: blink 1s step-end infinite;
    color: var(--saafe-accent); font-weight: bold; margin-left: 2px;
}
@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; }}

/* Use Case Cards - general card styles above already apply border-top and hover */
.use-case-card { text-align: left; border-left: 4px solid transparent; } /* Has its own border-left on hover */
.use-case-icon { font-size: 2.5rem; color: var(--saafe-primary); margin-bottom: 1.5rem; display: inline-block; }
.use-case-card h4 {
    font-size: clamp(1.2rem, 2.2vw, 1.35rem);
    margin-bottom: 0.75rem;
    color: var(--saafe-dark);
    line-height: 1.4;
}
.use-case-card p { font-size: 0.95rem; color: var(--saafe-text-muted); }

/* Testimonial Cards */
.testimonial-card {
    background: var(--saafe-white); border-radius: 12px; padding: 2rem;
    box-shadow: var(--shadow-md); margin-bottom: 1.5rem;
    border-left: 5px solid var(--saafe-accent);
}
.testimonial-rating { color: #ffc107; margin-bottom: 0.75rem; }
.testimonial-text { font-style: italic; color: var(--saafe-text-muted); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-right: 1rem; border: 2px solid var(--saafe-light); }
.author-name {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--saafe-dark);
    line-height: 1.4;
}
.author-title { font-size: 0.85rem; color: var(--saafe-text-muted); }

/* Client Logos Grid - in Testimonials section */
.client-logos-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.client-logos-grid::before,
.client-logos-grid::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.client-logos-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--saafe-white), transparent);
}

.client-logos-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--saafe-white), transparent);
}

.client-logos-grid .logos-track {
    display: flex;
    gap: 3rem;
    animation: scrollLogos 30s linear infinite;
}

.client-logos-grid img {
    max-height: 60px; /* Increased size */
    max-width: 150px; /* Increased size */
    opacity: 0.7;
    transition: var(--transition-base);
    filter: grayscale(80%);
    flex-shrink: 0;
}

.client-logos-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--saafe-white); padding: 2.5rem; border-radius: 16px; 
    box-shadow: var(--shadow-lg); border: 1px solid var(--saafe-border);
}
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--saafe-text-muted); margin-bottom: 0.3rem; }
.form-control {
    border-radius: 8px; padding: 0.9rem 1.1rem; border: 1px solid var(--saafe-border);
    transition: var(--transition-base); font-size: 0.95rem; background-color: var(--saafe-light);
}
.form-control:focus {
    border-color: var(--saafe-primary); 
    box-shadow: 0 0 0 0.2rem rgba(var(--saafe-primary-rgb), 0.15); 
    background-color: var(--saafe-white);
}
.contact-info-alt i { transition: transform 0.3s ease; }
.contact-info-alt > div:hover i { transform: scale(1.1) rotate(-5deg); color: var(--saafe-secondary);}
.contact-info-alt p a { color: var(--saafe-text-muted); }
.contact-info-alt p a:hover { color: var(--saafe-primary); text-decoration: underline; }


/* Footer */
.site-footer {
    background-color: var(--saafe-dark);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 30px;
    font-size: 0.9rem;
    position: relative;
}
.footer-logo {
    height: 85px;
    width: auto;
    margin-bottom: 1.5rem;
}
.site-footer h5 { color: var(--saafe-white); font-size: 1.05rem; margin-bottom: 1.25rem; font-weight: 600; letter-spacing: 0.5px;}
.footer-links li a, .contact-details li, .contact-details li a { color: rgba(255,255,255,0.75); margin-bottom: 0.6rem; display: inline-block; transition: color 0.2s ease, padding-left 0.2s ease;}
.footer-links li a:hover, .contact-details li a:hover { color: var(--saafe-accent); padding-left: 5px;}
.contact-details i { margin-right: 0.6rem; color: var(--saafe-accent); width: 16px; text-align: center;}
.social-icons a {
    color: rgba(255,255,255,0.7); margin-right: 0.8rem; font-size: 1.1rem; display: inline-flex; 
    align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); transition: var(--transition-base);
}
.social-icons a:hover { background-color: var(--saafe-accent); color: var(--saafe-white); border-color: var(--saafe-accent); transform: translateY(-2px);}
.footer-hr { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; margin-bottom: 2rem;}
.newsletter-form .form-control {  background-color: rgba(255,255,255,0.08);  border: 1px solid rgba(255,255,255,0.15); color:white; font-size: 0.85rem;}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,0.5);}
.newsletter-form .btn-sm { padding: 0.5rem 1rem; } 

/* Scroll & Utility Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.fade-up.is-visible { /* This is combined with animate-on-scroll */
    opacity: 1 !important; /* Ensure it overrides if needed */
    transform: translateY(0) !important;
    /* Transition defined on .animate-on-scroll already, or add more specific transition here */
}


@keyframes float {  0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); }}
.animated-float { animation: float 6s ease-in-out infinite;} /* hero image uses this directly */

.parallax {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.gradient-text {
    background: linear-gradient(90deg, var(--saafe-primary), var(--saafe-secondary), var(--saafe-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientTextAnim 4s ease-in-out infinite alternate; /* Added 'Anim' and alternate */
}
@keyframes gradientTextAnim {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.floating { animation: float 3s ease-in-out infinite; /* Use same keyframes as .animated-float */}

.shine { position: relative; overflow: hidden; }
.shine::after {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient( 45deg, transparent, rgba(255,255,255,0.15), transparent ); /* Slightly more visible */
    animation: shineAnim 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite; /* Smoother, adjusted speed */
}
@keyframes shineAnim {
    0% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); } /* Pass completely through */
    100% { transform: translateX(100%) rotate(45deg); } /* Hold at end before reset */
}

/* Dashboard Section Styles */
.dashboard-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: translateY(-5px);
}

.dashboard-preview img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* FIU Process Section Styles */
.fiu-step {
    text-align: center;
    padding: 1.5rem;
    background: var(--saafe-white);
    border-radius: 12px;
    transition: var(--transition-base);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fiu-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.fiu-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.fiu-step:hover::before {
    opacity: 1;
}

.fiu-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.fiu-image-link::after {
    content: '\f00e'; /* Font Awesome search icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--saafe-white);
    font-size: 2rem;
    background: rgba(var(--saafe-primary-rgb), 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.fiu-image-link:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.fiu-image-link img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.fiu-image-link:hover img {
    transform: scale(1.05);
}

.fiu-step h4 {
    color: var(--saafe-dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.fiu-step p {
    color: var(--saafe-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Add animation for FIU steps */
.fiu-step {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.fiu-step:nth-child(1) { animation-delay: 0.1s; }
.fiu-step:nth-child(2) { animation-delay: 0.2s; }
.fiu-step:nth-child(3) { animation-delay: 0.3s; }
.fiu-step:nth-child(4) { animation-delay: 0.4s; }

/* Remove lightbox styles */
.fiu-lightbox,
.fiu-lightbox.active,
.fiu-lightbox-content,
.fiu-lightbox-close {
    display: none;
}

/* Scroll to Top Progress Button */
.scroll-to-top-progress {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--saafe-primary-rgb), 0.9);
    color: var(--saafe-white);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999; /* Keep scroll-to-top below connect button */
}

.scroll-to-top-progress.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-progress:hover {
    background-color: var(--saafe-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.scroll-to-top-progress .progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scroll-to-top-progress .progress-circle path {
    stroke-width: 4px;
    stroke: var(--saafe-accent);
    fill: none;
    stroke-dasharray: 307.919;
    stroke-dashoffset: 307.919;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-to-top-progress i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.scroll-to-top-progress:hover i {
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .scroll-to-top-progress {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top-progress.visible {
        bottom: 85px; /* Adjusted to stay above floating contact button */
        right: 25px;
    }
    
    .floating-connect-btn {
        bottom: 25px;
        right: 25px;
        z-index: 9998; /* Slightly lower than scroll-to-top button */
    }
}

/* Dashboard Slideshow */
.dashboard-slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dashboard-slideshow a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.dashboard-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
    pointer-events: auto; /* Changed from none to auto to allow clicks on all slides */
}

.dashboard-slide.active {
    opacity: 1;
    z-index: 1; /* Added z-index to ensure active slide is clickable */
}

.dashboard-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.dashboard-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.dashboard-slideshow:hover .dashboard-nav-btn {
    opacity: 1;
    transform: scale(1);
}

.dashboard-nav-btn:hover {
    background: var(--saafe-white);
    box-shadow: var(--shadow-md);
}

.dashboard-nav-btn i {
    color: var(--saafe-primary);
    font-size: 1.2rem;
}

.dashboard-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.dashboard-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-dot.active {
    background: var(--saafe-white);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 3.5vw, 2.2rem);
    }
    
    .section-title-alt {
        font-size: clamp(1.5rem, 3vw, 1.75rem);
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    }
    
    .hero-content .lead {
        font-size: clamp(1rem, 1.8vw, 1.2rem);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .section-title-alt {
        font-size: clamp(1.35rem, 2.5vw, 1.5rem);
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-content .lead {
        font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    }
}

/* Future Finance Section Styles */
#future-finance {
    background: var(--bg-dark-gradient);
    position: relative;
}

#future-finance .section-title {
    color: var(--saafe-white);
}

#future-finance .lead {
    color: rgba(255, 255, 255, 0.9);
}

#future-finance .feature-list-alt li {
    color: rgba(255, 255, 255, 0.9);
}

#future-finance .feature-list-alt i {
    color: var(--saafe-accent);
}

#future-finance .gradient-text {
    background: linear-gradient(90deg, var(--saafe-accent), var(--saafe-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--saafe-primary);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animated-float,
    .floating,
    .shine::after,
    .btn::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Performance Optimizations */
img {
    content-visibility: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .btn,
    .nav-link,
    .dropdown-item {
        border: 2px solid currentColor;
    }
    
    .section-title::after {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* About Section Styles */
.about-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.3s;
}

.about-feature {
    background: var(--saafe-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid rgba(var(--saafe-primary-rgb), 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.about-feature:nth-child(1) {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

.about-feature:nth-child(2) {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.8s;
}

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px) perspective(1000px) rotateY(-5deg);
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) perspective(1000px) rotateY(-5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(-5deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add hover animations */
.about-feature:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--saafe-primary-rgb), 0.2);
}

.about-feature .feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--saafe-white);
    font-size: 1.25rem;
    transition: var(--transition-base);
    transform-origin: center;
}

.about-feature:hover .feature-icon {
    transform: rotate(-10deg) scale(1.1);
    background: var(--gradient-accent);
}

.about-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(var(--saafe-primary-rgb), 0.1),
        rgba(var(--saafe-secondary-rgb), 0.1)
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover .about-image-overlay {
    opacity: 1;
}

/* Add animation for the "Get Started" button */
.about-content .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 1s;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-right: 0 !important;
        margin-bottom: 2rem;
        animation: slideInUp 0.8s ease forwards;
        animation-delay: 0.3s;
    }
    
    .about-image-wrapper {
        animation: slideInUp 0.8s ease forwards;
        animation-delay: 0.5s;
        transform: none;
    }
    
    .about-feature {
        margin-bottom: 1rem;
    }
}

/* Add animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .about-content,
    .about-feature,
    .about-image-wrapper,
    .about-content .btn {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments for decorative elements */
@media (max-width: 768px) {
    .hero-section .decorative-svg {
        width: 180px;
        height: 180px;
    }
    
    .hero-section .decorative-svg.top-right {
        top: 5%;
        right: -50px;
    }
    
    .hero-section .decorative-svg.bottom-left {
        bottom: 5%;
        left: -50px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 70px 0 50px;
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-section .decorative-svg {
        width: 120px;
        height: 120px;
    }
}

/* Products & Solutions Section Styles */
#products-solutions {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

#products-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(74, 0, 224, 0.2) 50%, 
        transparent 100%
    );
}

#products-solutions .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

#products-solutions .lead {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

/* Products Navigation Tabs */
#productsTab {
    border: none;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

#productsTab .nav-item {
    margin: 0 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

#productsTab .nav-item:nth-child(1) { animation-delay: 0.5s; }
#productsTab .nav-item:nth-child(2) { animation-delay: 0.6s; }
#productsTab .nav-item:nth-child(3) { animation-delay: 0.7s; }
#productsTab .nav-item:nth-child(4) { animation-delay: 0.8s; }

#productsTab .nav-link {
    color: #495057;
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#productsTab .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

#productsTab .nav-link:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.15);
}

#productsTab .nav-link:hover::before {
    opacity: 1;
}

#productsTab .nav-link.active {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.2);
    transform: translateY(-2px);
}

#productsTab .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

#productsTab .nav-link:hover i {
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(74, 0, 224, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.3s; }
.product-card:nth-child(2) { animation-delay: 0.4s; }
.product-card:nth-child(3) { animation-delay: 0.5s; }
.product-card:nth-child(4) { animation-delay: 0.6s; }

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(74, 0, 224, 0.1);
    border-color: transparent;
}

.product-card:hover::after {
    transform: scaleX(1);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.product-card:hover .product-icon {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(74, 0, 224, 0.2);
}

.product-icon i {
    font-size: 2rem;
    color: white;
    transition: transform 0.5s ease;
}

.product-card:hover .product-icon i {
    transform: scale(1.1);
}

.product-card h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    transition: color 0.3s ease;
}

.product-card:hover h4 {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.product-card:hover p {
    color: #495057;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-features .badge {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 50px;
    background: rgba(74, 0, 224, 0.05);
    color: #4A00E0;
    border: 1px solid rgba(74, 0, 224, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover .product-features .badge {
    background: rgba(74, 0, 224, 0.1);
    transform: translateY(-2px);
}

.product-cta {
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.8s;
}

.product-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-cta .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: left 0.5s ease;
}

.product-cta .btn:hover::before {
    left: 100%;
}

.product-cta .btn-outline-primary {
    border: 2px solid #4A00E0;
    color: #4A00E0;
    background: transparent;
}

.product-cta .btn-outline-primary:hover {
    background: #4A00E0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.2);
}

.product-cta .btn-primary {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    border: none;
    color: white;
}

.product-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
}

/* Tab Content Animation */
.tab-pane {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    #productsTab .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .product-icon {
        width: 60px;
        height: 60px;
    }
    
    .product-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    #productsTab {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    #productsTab::-webkit-scrollbar {
        display: none;
    }
    
    #productsTab .nav-item {
        flex: 0 0 auto;
    }
    
    .product-features {
        justify-content: center;
    }
    
    .product-cta {
        justify-content: center;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add hover effect for touch devices */
@media (hover: none) {
    .product-card:hover,
    .product-card:hover .product-icon,
    .product-card:hover h4,
    .product-features .badge:hover,
    .product-cta .btn:hover {
        transform: none;
    }
    
    .product-card:active,
    .product-cta .btn:active {
        transform: scale(0.98);
    }
}

/* Remove default dropdown arrows */
.dropdown-toggle::after {
    display: none !important;
}

/* Custom dropdown arrow styling - remove this entire block */
.nav-link.dropdown-toggle i.fa-chevron-down {
    display: none !important;
}

.dropdown.show .nav-link.dropdown-toggle i.fa-chevron-down {
    display: none !important;
}

#productsTab .nav-link:hover,
#productsTab .nav-link.active {
    color: white !important;
}

/* Responsive Media Queries - Preserving Existing Design */

/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Medium screens (992px and below) */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Tablets and small desktops (768px and below) */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 1.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Products Section Responsive Buttons */
@media (max-width: 768px) {
    #products-solutions .product-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    #products-solutions .product-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
}

@media (max-width: 576px) {
    #products-solutions .product-cta .btn {
        max-width: 100%;
    }
}

/* Navigation Buttons Responsive Layout */
@media (max-width: 768px) {
    #productsTab .nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    #productsTab .nav-item {
        width: 100%;
        text-align: center;
    }

    #productsTab .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0;
    }
}

@media (max-width: 576px) {
    #productsTab .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Navigation Buttons Vertical Stack */
@media (max-width: 768px) {
    #productsTab .nav {
        display: block;
        width: 100%;
    }

    #productsTab .nav-item {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    #productsTab .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        margin: 0;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    #productsTab .nav-item {
        margin-bottom: 8px;
    }

    #productsTab .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Override Bootstrap Navigation for Vertical Stack */
@media (max-width: 768px) {
    #productsTab.nav-pills {
        display: block !important;
        width: 100%;
    }

    #productsTab.nav-pills .nav-item {
        display: block !important;
        width: 100%;
        margin-bottom: 10px;
    }

    #productsTab.nav-pills .nav-link {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        margin: 0;
        border-radius: 8px;
    }

    #productsTab.nav-pills.justify-content-center {
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    #productsTab.nav-pills .nav-item {
        margin-bottom: 8px;
    }

    #productsTab.nav-pills .nav-link {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Hamburger Button Color Control */
.navbar:not(.scrolled:not(.in-hero)) .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar:not(.scrolled:not(.in-hero)) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* When navbar is scrolled and not in hero section */
.navbar.scrolled:not(.in-hero) .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar.scrolled:not(.in-hero) .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hide Hero Images in Product Pages for Mobile */
@media (max-width: 768px) {
    .products-page .hero-visual,
    .products-page .hero-section img,
    .products-page .hero-image {
        display: none !important;
    }
    
    .products-page .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .products-page .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Hide Hero Images in Developers Page for Mobile */
@media (max-width: 768px) {
    .developers-page .hero-visual,
    .developers-page .hero-section img,
    .developers-page .hero-image {
        display: none !important;
    }
    
    .developers-page .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .developers-page .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* Hide Hero Images in About Us Page for Mobile */
@media (max-width: 768px) {
    .about-page .hero-section .col-lg-6:last-child,
    .about-page .hero-section .hero-visual,
    .about-page .hero-section .hero-visual img,
    .about-page .hero-section img {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        overflow: hidden !important;
    }
    
    .about-page .hero-section .col-lg-6:first-child {
        width: 100% !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }
    
    .about-page .hero-section {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }
}

.content-box .nav-pills {
    background: transparent;
    padding: 0.5rem;
    border-radius: 50px;
    display: inline-flex;
}

.content-box .nav-pills .nav-link {
    color: var(--saafe-text);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    white-space: nowrap;
    background: var(--saafe-light);
    border: 1px solid var(--saafe-border);
}

.content-box .nav-pills .nav-link:hover {
    background: var(--saafe-light);
    color: var(--saafe-primary);
    border-color: var(--saafe-primary);
}

.content-box .nav-pills .nav-link.active {
    background: var(--saafe-primary);
    color: var(--saafe-white) !important;
    border-color: var(--saafe-primary);
    box-shadow: var(--shadow-sm);
}

.content-box .nav-pills .nav-link.active i {
    color: var(--saafe-white);
}

.content-box .nav-pills .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.content-box .nav-pills .nav-link:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .content-box .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-box .nav-pills {
        width: 100%;
        justify-content: center;
    }
}

.client-logos-container {
    padding-bottom: 60px;
}

.client-logos-marquee {
    display: flex;
    overflow: hidden;
    position: relative;
}