/* digiflo Homepage Theme - Pure CSS (No SCSS) */
/* Version: 19.0.1.0.0 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* Root variables */
:root {
    --brand-dark: #0f172a;
    --brand-primary: #013c9e;
    --brand-accent: #32a5dc;
    --brand-accent-light: #91c9e3;
    --brand-light: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --transition-base: 200ms ease-in-out;
}

/* Global Overrides */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--brand-dark);
    color: var(--brand-light);
}

#wrap.oe_structure {
    padding: 0 !important;
    margin: 0 !important;
}

#wrap.oe_structure > .oe_structure {
    padding: 0 !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: var(--brand-primary);
    color: var(--brand-light);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0250c9;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-accent {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.btn-accent:hover {
    background: #5bbae8;
    box-shadow: 0 0 20px rgba(50, 165, 220, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--brand-light);
    border: 2px solid var(--brand-light);
}

.btn-outline:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    transform: translateY(-2px);
}

/* Hero section */
.digiflo-hero,
.digiflo-services,
.digiflo-cta {
    width: 100%;
    max-width: 100%;
}

/* Scroll animations */
.scroll-animate {
    /* Start visible, will be hidden by JS if enabled */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Only hide if JS is enabled */
.js-enabled .scroll-animate:not(.is-visible) {
    opacity: 0;
    transform: translateY(30px);
}

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

.animation-delay-100 {
    transition-delay: 100ms;
}

.animation-delay-200 {
    transition-delay: 200ms;
}

.animation-delay-300 {
    transition-delay: 300ms;
}

.animation-delay-400 {
    transition-delay: 400ms;
}

/* Service cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-item:hover {
    transform: translateY(-4px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 1.5rem;
    padding: 4rem 2.5rem;
    text-align: center;
}

/* Keyframe animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Typewriter styles */
.typewriter-cursor {
    display: inline-block;
    margin-left: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .digiflo-hero {
        min-height: auto !important;
        padding: 2rem 1rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
        min-height: auto !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-cta {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services Section Mobile */
    .digiflo-services {
        padding: 3rem 0 !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .section-description {
        font-size: 1rem !important;
    }

    /* Bento Grid Mobile */
    .bento-item.span-2 {
        grid-column: span 1;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .bento-item,
    .service-card {
        padding: 1.5rem !important;
    }

    .service-title {
        font-size: 1.125rem !important;
    }

    .service-description {
        font-size: 0.875rem !important;
    }

    /* CTA Section Mobile */
    .digiflo-cta {
        padding: 3rem 1rem !important;
    }

    .cta-section {
        padding: 2.5rem 1.5rem !important;
    }

    .cta-title {
        font-size: 1.75rem !important;
    }

    .cta-description {
        font-size: 1rem !important;
    }

    /* Container adjustments */
    .container {
        padding: 0 1rem !important;
    }

    /* Badge adjustments */
    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}
