/* ===================================
   AfricaTec - Custom Styles
   =================================== */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #00aaff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Navbar Styles
   =================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: var(--white) !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.navbar-brand:hover .brand-text {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================
   Slide Menu Styles
   =================================== */
.slide-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.slide-menu.active {
    right: 0;
}

.slide-menu-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.slide-menu-brand {
    display: flex;
    align-items: center;
    flex: 1;
}

.slide-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.slide-brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.close-menu {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.slide-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.slide-menu-list li {
    margin: 0.5rem 0;
}

.slide-menu-list a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.slide-menu-list a:hover {
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--white);
    padding-left: 2.5rem;
}

.slide-menu-list a i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.slide-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slide-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Hero Slideshow Styles
   =================================== */
.hero-slideshow {
    margin-top: 76px;
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slideshow .carousel-item {
    height: 90vh;
}

.hero-slideshow .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Section Styles
   =================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.about-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.icon-box {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.icon-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.icon-box h5 {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 5rem 0;
}

.mission-card,
.vision-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.mission-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.vision-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.mission-icon,
.vision-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.mission-card .card-title,
.vision-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Values Section */
.values-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.value-card {
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Goals Section */
.goals-section {
    padding: 5rem 0;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.goal-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.goal-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.goal-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.goal-content p {
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   Page Header (Services, Training)
   =================================== */
.page-header {
    position: relative;
    margin-top: 76px;
    height: 400px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,102,204,0.8) 0%, rgba(0,68,153,0.8) 100%);
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--white);
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* ===================================
   Services Detail Section
   =================================== */
.services-detail-section {
    padding: 5rem 0;
}

.service-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ===================================
   Training Section
   =================================== */
.training-section {
    padding: 5rem 0;
}

.training-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.training-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.training-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.training-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.training-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(10px);
}

.training-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.training-item:hover i {
    color: var(--white);
}

.training-item h5 {
    margin: 0;
    font-size: 1rem;
}

.hse-card {
    background: linear-gradient(135deg, rgba(0,102,204,0.05) 0%, rgba(0,170,255,0.05) 100%);
}

.hse-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.hse-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.hse-item.certified {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(0,102,204,0.1) 0%, rgba(0,170,255,0.1) 100%);
}

.hse-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hse-item h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0.25rem 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-person {
    font-style: italic;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.social-links {
    text-align: center;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    color: var(--white);
}

/* Form Styles */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

/* ===================================
   Footer Styles
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    margin-top: 5rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer hr {
    border-color: rgba(255,255,255,0.2);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .about-icons {
        grid-template-columns: 1fr;
    }
    
    .slide-menu {
        width: 280px;
        right: -280px;
    }
    
    .hero-slideshow {
        height: 70vh;
    }
    
    .hero-slideshow .carousel-item {
        height: 70vh;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .slide-brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-text {
        display: none;
    }
    
    .slide-brand-text {
        font-size: 0.9rem;
    }
}

/* ===================================
   Scroll Animations
   =================================== */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

