/* ===================================
   Africa Global Services Company
   Custom Styles
   =================================== */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* African Pattern Background */
.african-pattern {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.1) 35px, rgba(212, 175, 55, 0.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(34, 139, 34, 0.1) 35px, rgba(34, 139, 34, 0.1) 70px);
}

/* Header Styles - Glassmorphism au Scroll */
#header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Marges et Bords Arrondis */
    margin: 12px 20px 0 20px;
    border-radius: 16px;
    padding: 0;

    /* Ombre Élégante */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    /* Bordure Subtile */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* Animation douce du contenu du nav au scroll */
#header.scrolled nav {
    padding: 12px 24px;
}

#header.scrolled .h-20 {
    height: 70px;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Service Tabs */
.service-tab {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-tab.active {
    background: linear-gradient(135deg, #228B22, #1B6B1B) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(34, 139, 34, 0.3);
}

.service-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Service Image Container */
.service-image-container {
    position: relative;
    overflow: hidden;
}

.service-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(34, 139, 34, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-image-container:hover::before {
    opacity: 1;
}

/* Filter Buttons */
.filter-btn {
    padding: 12px 28px;
    border: 2px solid #E5E7EB;
    background: white;
    color: #374151;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Project Cards */
.project-card {
    transition: all 0.3s ease;
}

.project-card.hidden {
    display: none;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D4AF37, #228B22);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B8941F, #1B6B1B);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37, #228B22, #4169E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: white;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Team Member Cards */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Blog Card Hover */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    margin: 60px auto;
    max-width: 200px;
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}



/* Sticky Contact Button Pulse */
#stickyContactBtn {
    position: relative;
}

#stickyContactBtn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    opacity: 0.5;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Scroll to Top Button */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-5px);
}

/* Image Overlay Effect */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(34, 139, 34, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Card Gradient Border */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #D4AF37, #228B22, #4169E1);
}

.card-gradient-border>div {
    background: white;
    border-radius: 14px;
    padding: 24px;
}

/* Text Shadow for Headers */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid Pattern Background */
.grid-pattern {
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    #stickyContactBtn,
    #scrollToTop,
    #contactModal {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .gradient-text {
        -webkit-text-fill-color: #D4AF37;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Custom Selection Color */
::selection {
    background: #D4AF37;
    color: white;
}

::-moz-selection {
    background: #D4AF37;
    color: white;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Disable transitions on images for performance */
img {
    transition: none;
}

img:hover {
    transition: transform 0.3s ease;
}