/* ===================================
   Project Pioneer - Custom Styles
   Bootstrap Agency Theme
   =================================== */

:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #06b6d4;
    --dark-color: #1e293b;
    --light-gray: #f8fafc;
    --gradient-1: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */

#mainNav {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#mainNav.navbar-scrolled {
    background: rgba(30, 58, 138, 1);
    padding: 0.5rem 0;
}

.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* ===================================
   Hero Section with Video Background
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
    z-index: 100;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Floating Particles on top of video */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 30px 8px rgba(6, 182, 212, 0.8), 0 0 50px 12px rgba(59, 130, 246, 0.4);
    animation: rise linear infinite;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.2s ease-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.particle:nth-child(10) {
    left: 15%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(11) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 0s;
}

.particle:nth-child(12) {
    left: 35%;
    animation-duration: 19s;
    animation-delay: 2s;
}

.particle:nth-child(13) {
    left: 45%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.particle:nth-child(14) {
    left: 55%;
    animation-duration: 17s;
    animation-delay: 1s;
}

.particle:nth-child(15) {
    left: 65%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.particle:nth-child(16) {
    left: 75%;
    animation-duration: 16s;
    animation-delay: 5s;
}

.particle:nth-child(17) {
    left: 85%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.particle:nth-child(18) {
    left: 95%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.particle:nth-child(19) {
    left: 5%;
    animation-duration: 13s;
    animation-delay: 4s;
}

.particle:nth-child(20) {
    left: 12%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.particle:nth-child(21) {
    left: 22%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.particle:nth-child(22) {
    left: 32%;
    animation-duration: 16s;
    animation-delay: 0s;
}

.particle:nth-child(23) {
    left: 42%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.particle:nth-child(24) {
    left: 52%;
    animation-duration: 13s;
    animation-delay: 5s;
}

.particle:nth-child(25) {
    left: 62%;
    animation-duration: 19s;
    animation-delay: 1s;
}

.particle:nth-child(26) {
    left: 72%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.particle:nth-child(27) {
    left: 82%;
    animation-duration: 17s;
    animation-delay: 2s;
}

.particle:nth-child(28) {
    left: 92%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.particle:nth-child(29) {
    left: 8%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.particle:nth-child(30) {
    left: 18%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.particle:nth-child(31) {
    left: 28%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.particle:nth-child(32) {
    left: 38%;
    animation-duration: 13s;
    animation-delay: 2s;
}

.particle:nth-child(33) {
    left: 48%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(34) {
    left: 58%;
    animation-duration: 14s;
    animation-delay: 5s;
}

.particle:nth-child(35) {
    left: 68%;
    animation-duration: 16s;
    animation-delay: 1s;
}

.particle:nth-child(36) {
    left: 78%;
    animation-duration: 12s;
    animation-delay: 3s;
}

.particle:nth-child(37) {
    left: 88%;
    animation-duration: 19s;
    animation-delay: 2s;
}

.particle:nth-child(38) {
    left: 3%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.particle:nth-child(39) {
    left: 13%;
    animation-duration: 17s;
    animation-delay: 0s;
}

.particle:nth-child(40) {
    left: 23%;
    animation-duration: 14s;
    animation-delay: 1s;
}

@keyframes rise {
    0% {
        bottom: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 110%;
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta .btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.hero-cta .btn-primary:hover {
    background: #0891b2;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

/* ===================================
   Section Styles
   =================================== */

.section-padding {
    padding: 120px 0;
}

/* First section after hero needs extra top padding */
#expertise {
    padding-top: 480px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* ===================================
   Value Proposition Cards
   =================================== */

.value-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.15);
    z-index: 2;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.value-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Solutions Cards
   =================================== */

.solution-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-light);
    position: relative;
}

.solution-card.with-image {
    padding: 0;
    overflow: hidden;
}

.solution-card.with-image .row {
    margin: 0;
}

.solution-card.with-image .row>div {
    padding: 2.5rem;
}

.solution-card:hover {
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    border-left-color: var(--accent-color);
}

.solution-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-image {
    transform: scale(1.05);
}

.solution-number {
    position: absolute;
    top: -15px;
    right: 30px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(59, 130, 246, 0.1);
    z-index: 1;
}

.solution-card.with-image .solution-number {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin-bottom: 1rem;
}

.solution-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.solution-list {
    list-style: none;
    padding: 0;
}

.solution-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: #64748b;
    font-size: 1.05rem;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===================================
   Case Studies
   =================================== */

.case-study-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.case-study-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--gradient-1);
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.1);
}

.case-study-header {
    background: var(--gradient-1);
    padding: 1.5rem 2rem;
    color: #fff;
}

.case-study-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.case-study-body {
    padding: 2rem;
}

.case-item {
    margin-bottom: 1.5rem;
}

.case-item:last-child {
    margin-bottom: 0;
}

.case-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.case-item h4 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.case-item p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    background: var(--gradient-1);
    padding: 100px 0;
    color: #fff;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.contact-form-container .form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form-container .form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-container .form-control:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.25);
}

.contact-form-container textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form-container .btn-primary {
    background: var(--accent-color);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.contact-form-container .btn-primary:hover {
    background: #0891b2;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.contact-form-container .text-danger {
    color: #fca5a5 !important;
}

.contact-form-container .form-text {
    opacity: 0.8;
}

.contact-form-container .alert {
    border-radius: 10px;
    border: none;
}


/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--dark-color);
    padding: 2rem 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}