/* Florien Technologies — Custom Styles */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: #0284c7;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 1rem;
}

/* Header States */
#site-header {
    background: transparent;
}
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(14, 165, 233, 0.06);
}
#site-header.scrolled .header-inner {
    border-bottom: none;
}

.nav-link {
    color: #475569;
}
.nav-link:hover {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.06);
}
.nav-link.text-sky-600 {
    color: #0284c7 !important;
    background: rgba(14, 165, 233, 0.08);
}

.mobile-nav-link {
    color: #334155;
}
.mobile-nav-link:hover {
    background: #f0f9ff;
    color: #0284c7;
}
.mobile-nav-link.text-sky-600 {
    color: #0284c7 !important;
    background: #f0f9ff;
}

#mobile-menu.open {
    pointer-events: auto;
}
#mobile-menu.open #mobile-overlay {
    opacity: 1;
}
#mobile-menu.open #mobile-panel {
    transform: translateX(0);
}

/* Hero */
.hero-gradient {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 40%, #e0f2fe 100%);
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: pulse-soft 4s ease-in-out infinite;
}
.hero-grid {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Swiper Overrides */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    background: #0ea5e9;
    width: 28px;
    border-radius: 5px;
}
.hero-swiper .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.8s ease;
}
.hero-swiper .swiper-slide-active {
    opacity: 1 !important;
}

/* Cards */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
}
.service-card:hover::before {
    opacity: 1;
}
.service-card .icon-wrap {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .icon-wrap {
    transform: scale(1.1);
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

/* Industry Cards */
.industry-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-card:hover {
    transform: translateY(-4px);
}
.industry-card:hover .industry-img {
    transform: scale(1.08);
}
.industry-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Case Study Cards */
.case-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}
.case-card:hover .case-img {
    transform: scale(1.05);
}
.case-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo Marquee */
.logo-marquee-wrap {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-item {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}
.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* CTA Section */
.cta-gradient {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 60%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Process Steps */
.process-line {
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #e0f2fe, #0ea5e9, #e0f2fe);
}
.process-step {
    transition: all 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
}
.process-step:hover .step-num {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

/* Footer */
.footer-link {
    color: #94a3b8;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #38bdf8;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    transition: all 0.3s;
}
.social-icon:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
}

/* Form */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #1e293b;
    background: white;
    transition: all 0.3s;
    outline: none;
}
.form-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.form-input::placeholder {
    color: #94a3b8;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: #0284c7;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: white;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e0f2fe;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: white;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid #e0f2fe;
}

/* Pillars */
.pillar-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}

/* Back to top visible */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    translate: 0;
}

/* Alert messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-blob, .logo-marquee-wrap .flex {
        animation: none !important;
    }
}
