/* =========================================
   Gidi Afrique Ltd - Custom Styles
   ========================================= */

/* CSS Variables */
:root {
    --primary-color: #1a5276;
    --primary-dark: #0e3a5c;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand .brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Carousel */
#heroCarousel {
    margin-top: -76px;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.6);
}

.carousel-caption {
    bottom: 30%;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* About Section */
#about {
    background-color: var(--white);
}

#about img {
    border-radius: 10px;
}

#about .lead {
    color: var(--text-dark);
    font-size: 1.15rem;
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card .card-title {
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Footer */
footer {
    background-color: #1a1a2e !important;
}

footer h5 {
    color: var(--accent-color);
    font-size: 1.2rem;
}

footer a {
    color: #adb5bd;
}

footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.social-links a i {
    font-size: 1.2rem;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Contact Form */
#contactForm .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem 1rem;
}

#contactForm .form-control::placeholder {
    color: #adb5bd;
}

#contactForm .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
    color: var(--white);
}

#formResponse {
    padding: 10px;
    border-radius: 5px;
    display: none;
}

#formResponse.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

#formResponse.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 10px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 66px;
    }

    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }

    .carousel-caption {
        bottom: 20%;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
        display: none;
    }

    .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand .brand-text {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        height: 40px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-item.active .carousel-caption h1,
.carousel-item.active .carousel-caption p,
.carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 0.8s ease forwards;
}

.carousel-item.active .carousel-caption p {
    animation-delay: 0.2s;
}

.carousel-item.active .carousel-caption .btn {
    animation-delay: 0.4s;
}
