/* ============================================
   BAC Consulting - Custom Styling
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0f172a;
    --accent-teal: #14b8a6;
    --accent-orange: #f97316;
    --light-gray: #f1f5f9;
    --dark-gray: #64748b;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   General Styling
   ============================================ */

* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

/* ============================================
   Section Title Styling
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-teal));
    margin-top: 0.75rem;
}

/* ============================================
   Navbar Styling
   ============================================ */

.navbar {
    background-color: var(--secondary-color) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin-left: 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-teal);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 58, 138, 0.85));
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease-out;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

.hero-section .btn {
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    transition: var(--transition);
}

.hero-section .btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.hero-section .btn-primary:hover {
    background-color: var(--accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.hero-section .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ============================================
   About Section
   ============================================ */

#about {
    padding: 80px 0;
}

#about img {
    transition: var(--transition);
}

#about img:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-box {
    padding: 20px;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    transition: var(--transition);
    text-align: center;
}

.feature-box:hover {
    background: var(--light-gray);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-box h5 {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* ============================================
   Services Section
   ============================================ */

#services {
    padding: 80px 0;
}

.service-card {
    padding: 30px 25px;
    border-radius: var(--border-radius);
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-teal);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
}

.bg-teal-gradient {
    background: linear-gradient(135deg, var(--accent-teal), #06b6d4);
}

.bg-orange-gradient {
    background: linear-gradient(135deg, var(--accent-orange), #fb923c);
}

.bg-violet-gradient {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.service-card h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.service-card a:hover {
    color: var(--accent-teal);
}

/* ============================================
   Careers Section
   ============================================ */

#careers {
    padding: 80px 0;
}

#careers ul li {
    font-size: 1.05rem;
    color: var(--dark-gray);
}

/* ============================================
   Contact Section
   ============================================ */

#contact {
    padding: 80px 0;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.15);
    background-color: #fff;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    background-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.contact-info h6 {
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-info a {
    color: var(--dark-gray);
}

.contact-info a:hover {
    color: var(--accent-teal);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

#contact .social-icon {
    background-color: #f1f5f9;
}

.social-icon:hover {
    background-color: var(--accent-teal);
    color: #fff;
    transform: translateY(-3px);
}

#contact .social-icon:hover {
    background-color: var(--primary-color);
}

footer .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ============================================
   Newsletter Section
   ============================================ */

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6) !important;
}

.bg-primary .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
}

.bg-primary .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.bg-primary .btn-dark:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
}

footer h6 {
    color: #fff;
    font-size: 1rem;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-teal);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   Button Styles
   ============================================ */

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============================================
   Modal Styling
   ============================================ */

.modal-content {
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.modal-header {
    background-color: var(--light-gray);
}

.modal-header h5 {
    color: var(--secondary-color);
}

.modal .form-control,
.modal .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.15);
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link::after {
        bottom: -10px;
    }

    .contact-form .form-control,
    .contact-form .form-select {
        font-size: 1rem;
    }

    .service-card {
        padding: 25px 15px;
    }

    #about,
    #services,
    #careers,
    #contact {
        padding: 60px 0;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-title::after {
        width: 50px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .contact-form .btn-primary {
        padding: 12px 20px;
    }

    .feature-box {
        padding: 15px;
    }

    .solution-number {
        font-size: 2rem;
    }
}

/* ============================================
   AOS Animation Settings
   ============================================ */

[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ============================================
   Utility Classes
   ============================================ */

.rounded-lg {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.text-muted-custom {
    color: var(--dark-gray);
}
