/* 
   AFRICORE ADVISORY SOLUTION LTD - Custom Styles
   Author: AI Assistant
   Version: 1.0
*/

/* Global Styles */
:root {
    --primary-color: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3, #007bff);
    --secondary-color: #ffc107;
    --secondary-gradient: linear-gradient(135deg, #e6a800, #ffc107);
    --dark-color: #343a40;
    --dark-gradient: linear-gradient(135deg, #ffffff, #ffffff);
    --light-color: #f8f9fa;
    --light-gradient: linear-gradient(135deg, #e9ecef, #f8f9fa);
    --success-color: #28a745;
    --success-gradient: linear-gradient(135deg, #218838, #28a745);
    --info-color: #17a2b8;
    --info-gradient: linear-gradient(135deg, #138496, #17a2b8);
    --warning-color: #ffc107;
    --warning-gradient: linear-gradient(135deg, #e0a800, #ffc107);
    --danger-color: #dc3545;
    --danger-gradient: linear-gradient(135deg, #c82333, #dc3545);
    --body-color: #f8f9fa;
    --text-color: #343a40;
    --border-radius: 0.25rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #003d7a;
    text-decoration: none;
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004494, #0069d9);
    border-color: #004494;
}

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-divider {
    height: 4px;
    width: 70px;
    background: var(--secondary-gradient);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Datetime Header */
.datetime-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.datetime-header .contact-info span,
.datetime-header #currentDateTime {
    color: none;
}

.social-icons a {
    color: none;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: var(--primary-gradient) !important;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 1rem !important;
}

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

/* Carousel */
.carousel-item {
    height: 80vh;
    min-height: 500px;
    background: no-repeat center center scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

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

.carousel-caption h2 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Services */
.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: var(--light-gradient);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.card:hover .service-icon {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
}

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

.card:hover .service-icon i {
    color: white;
}

/* Footer */
footer a {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Contact Form */
.contact-form-container {
    background: white;
}

/* Map Card */
.map-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* About Page */
.page-header {
    background-size: cover;
    background-position: center;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .datetime-header {
        display: none;
    }
}

/* Hero Slider */
.hero-slider-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-slider-img {
        height: 400px;
    }
}

/* Floating Contact Buttons */
.floating-btn-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: pulse-left 2s infinite;
}

.floating-btn-right {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: pulse-right 2s infinite;
}

.floating-btn-left:hover, .floating-btn-right:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@keyframes pulse-left {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

@keyframes pulse-right {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Map Actions in Contact Page */
.map-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.map-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
}

.map-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--primary-color);
}

.map-action i {
    font-size: 24px;
    margin-bottom: 5px;
}

.map-action span {
    font-size: 12px;
    font-weight: 500;
}
