/* Modern & Innovative Styles for Dolibarr2 */

:root {
    --primary-color: #117efd;
    --secondary-color: #00edc7;
    --primary-gradient: linear-gradient(135deg, #117efd 0%, #00edc7 100%);
    --secondary-gradient: linear-gradient(135deg, #00edc7 0%, #117efd 100%);
    --accent-gradient: linear-gradient(135deg, #117efd 0%, #0a5fc9 100%);
    --success-gradient: linear-gradient(135deg, #00edc7 0%, #00c4a3 100%);
    --card-shadow: 0 20px 60px rgba(17, 126, 253, 0.1);
    --card-shadow-hover: 0 30px 80px rgba(17, 126, 253, 0.2);
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-soft-blue: #f0f7ff;
    --bg-soft-cyan: #f0fdfb;
    --bg-white: #ffffff;
    --bg-gradient-soft: linear-gradient(135deg, #f0f7ff 0%, #f0fdfb 100%);
}

* {
    box-sizing: border-box;
}

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section Moderne */
.modern-hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #f0fdfb 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(17,126,253,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.modern-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 237, 199, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 126, 253, 0.05) 0%, transparent 70%);
}

.decorative-circle-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
}

.decorative-circle-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(0, 237, 199, 0.05) 0%, transparent 70%);
}

.modern-hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
}

.modern-hero-title {
    text-align: center;
    margin-bottom: 60px;
}

.modern-hero-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.modern-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: var(--text-dark);
    text-shadow: none;
}

.modern-hero h3 {
    color: var(--text-dark);
}

.modern-hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 32px;
    color: var(--text-light);
}

.modern-hero-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.modern-hero-list li {
    padding: 16px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.modern-hero-list li i {
    background: linear-gradient(135deg, #117efd 0%, #00edc7 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(17, 126, 253, 0.2);
}

.modern-hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.modern-hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Modern CTA Button */
.modern-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(17, 126, 253, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(17, 126, 253, 0.4);
    color: white;
}

.modern-btn:hover::before {
    left: 100%;
}

/* Section Moderne */
.modern-section {
    padding: 100px 0;
    position: relative;
}

.modern-section.bg-light {
    background: var(--bg-light);
}

.modern-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.modern-section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.modern-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.modern-section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 24px auto 0;
    line-height: 1.8;
}

/* Modern Card Grid */
.modern-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.modern-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #117efd 0%, #00edc7 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(17, 126, 253, 0.2);
}

.modern-card-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.modern-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Service Cards with Gradient */
.modern-service-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.modern-service-card:nth-child(2)::before {
    background: var(--secondary-gradient);
}

.modern-service-card:nth-child(3)::before {
    background: var(--success-gradient);
}

.modern-service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(17, 126, 253, 0.1) 0%, rgba(0, 237, 199, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.modern-service-icon svg {
    width: 36px;
    height: 36px;
    fill: #117efd;
}

.modern-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.modern-service-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modern-service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    flex-grow: 1;
}

.modern-service-card .modern-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #117efd;
    color: #117efd;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 24px;
    text-align: center;
}

.modern-service-card .modern-btn-outline:hover {
    background: #117efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 126, 253, 0.3);
}

/* Compliance Section */
.modern-compliance {
    background: white;
    border-radius: 32px;
    padding: 80px 60px;
    color: var(--text-dark);
    margin: 80px 0;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--bg-soft-blue);
    box-shadow: 0 20px 60px rgba(17, 126, 253, 0.08);
}

.modern-compliance::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 237, 199, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.modern-compliance h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-dark);
    background-clip: text;
}

.modern-compliance p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-light);
}

.modern-compliance strong {
    color: #117efd;
    font-weight: 700;
}

.modern-compliance h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 48px 0 28px;
    color: var(--text-dark);
}

.modern-compliance ul {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    max-width: 900px;
}

.modern-compliance ul li {
    padding: 16px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.modern-compliance ul li i {
    background: linear-gradient(135deg, #117efd 0%, #00edc7 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(17, 126, 253, 0.2);
}

.modern-compliance small {
    display: block;
    margin-top: 32px;
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: italic;
}

/* Glassmorphism CTA Section */
.modern-cta {
    background: var(--bg-gradient-soft);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.modern-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="rgba(17,126,253,0.05)"/></svg>');
}

.modern-cta-content {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px;
    border: 2px solid rgba(17, 126, 253, 0.1);
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(17, 126, 253, 0.08);
}

.modern-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.modern-cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Calendly Container */
.modern-calendly-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    margin-top: 40px;
}

.modern-calendly-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

/* Buttons Container */
.modern-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.modern-btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: #718096;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.modern-btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
    color: white;
}

.modern-btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(17, 126, 253, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(17, 126, 253, 0.4);
    color: white;
}

/* Sticky Button Modern */
.modern-sticky-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

.modern-sticky-button a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 10px 40px rgba(17, 126, 253, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(17, 126, 253, 0.4);
    }
    50% {
        box-shadow: 0 10px 50px rgba(17, 126, 253, 0.6);
    }
}

.modern-sticky-button a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 50px rgba(17, 126, 253, 0.5);
    color: white;
}

.modern-sticky-button i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-hero-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modern-hero-title {
        margin-bottom: 40px;
    }

    .modern-hero h1 {
        font-size: 2.5rem;
    }

    .modern-section-header h2 {
        font-size: 2.2rem;
    }

    .modern-compliance {
        padding: 60px 40px;
    }

    .modern-cta-content {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 80px 0 60px;
    }

    .modern-hero h1 {
        font-size: 2rem;
    }

    .modern-section {
        padding: 60px 0;
    }

    .modern-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modern-compliance {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .modern-compliance h3 {
        font-size: 1.8rem;
    }

    .modern-sticky-button {
        right: 20px;
        bottom: 20px;
    }

    .modern-sticky-button a {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .modern-sticky-button span {
        display: none;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats badges */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: nowrap;
    margin-bottom: 32px;
}

.stat-badge {
    background: white;
    border: 2px solid var(--bg-soft-blue);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(17, 126, 253, 0.08);
    white-space: nowrap;
}

.stat-badge svg {
    width: 24px;
    height: 24px;
    fill: #117efd;
    flex-shrink: 0;
}

.stat-badge span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 12px;
    }

    .stat-badge {
        padding: 12px 16px;
        gap: 8px;
    }

    .stat-badge svg {
        width: 20px;
        height: 20px;
    }

    .stat-badge span {
        font-size: 0.85rem;
    }
}

.hero-image-desktop {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-image-mobile {
    display: none;
}

@media (max-width: 992px) {
    .hero-image-desktop {
        display: none;
    }

    .hero-image-mobile {
        display: block;
    }
}

/* Image hover effect for clickable images */
.hero-image-desktop a {
    transition: transform 0.3s ease;
    display: block;
}

.hero-image-desktop a:hover img {
    transform: scale(1.02);
    opacity: 0.9;
}

a:hover .hero-image-mobile {
    transform: scale(1.02);
    opacity: 0.9;
}
