:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--primary);
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Video Styling */
.hero-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(13, 217, 253, 0.1));
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-video:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(52, 152, 219, 0.3);
}

.hero-video:hover::before {
    opacity: 1;
}

/* Video container styling */
.hero-section .col-lg-6:last-child {
    position: relative;
}

.hero-section .col-lg-6:last-child::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), #0dd9fd);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
    z-index: -1;
}

/* Responsive video adjustments */
@media (max-width: 991.98px) {
    .hero-video {
        max-width: 500px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-video {
        max-width: 400px;
        border-radius: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-video {
        max-width: 100%;
        border-radius: 10px;
    }
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3498db;
    position: relative;
    display: inline-block;
    transform: none !important;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0dd9fd, #6610f2);
    border-radius: 2px;
}

/* Process Step Styles (for Our Services section) */
.process-step {
    background: white;
    border-radius: 20px;
    padding: 40px 25px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s ease;
}

.process-step:hover::before {
    left: 100%;
}

.process-step:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.step-icon {
    margin-bottom: 25px;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.step-icon i {
    font-size: 2.5rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.process-step:hover .step-icon i {
    transform: scale(1.2) rotateY(360deg);
    color: #2980b9;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.process-step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    background: linear-gradient(135deg, var(--secondary), #0dd9fd);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.process-step h4, .process-step .h5 {
    color: var(--dark);
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.process-step h4:after, .process-step .h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #0dd9fd);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.process-step:hover h4:after, .process-step:hover .h5:after {
    width: 80px;
}

.process-step p {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.process-step:hover p {
    color: #495057;
    transform: translateY(2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .process-step {
        margin-bottom: 30px;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.stat-item {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon i {
    color: white;
    font-size: 2.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Counter animation */
@keyframes countUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: countUp 0.8s ease-out forwards;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 35px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-weight: 700;
    color: rgba(52, 152, 219, 0.1);
    font-family: Georgia, serif;
    z-index: 1;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.02), rgba(13, 217, 253, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card .mb-4 {
    position: relative;
    z-index: 2;
}

.testimonial-card p {
    position: relative;
    z-index: 2;
    font-style: italic;
    line-height: 1.8;
    color: #495057;
    font-size: 1.05rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.testimonial-card:hover p {
    color: #2c3e50;
    transform: translateX(5px);
}

.testimonial-card .d-flex {
    position: relative;
    z-index: 2;
}

.client-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--secondary), #0dd9fd) border-box;
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.client-initials {
    transition: all 0.4s ease;
}

.testimonial-card:hover .client-initials {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.testimonial-card h5 {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.testimonial-card:hover h5 {
    color: var(--secondary);
    transform: translateX(3px);
}

.testimonial-card .text-muted {
    transition: all 0.3s ease;
}

.testimonial-card:hover .text-muted {
    color: #6c757d !important;
    transform: translateX(3px);
}

/* Star rating animation */
.testimonial-card .fa-star {
    transition: all 0.3s ease;
    transform-origin: center;
}

.testimonial-card:hover .fa-star {
    transform: scale(1.2) rotate(72deg);
}

.testimonial-card:hover .fa-star:nth-child(2) {
    transform: scale(1.2) rotate(144deg);
}

.testimonial-card:hover .fa-star:nth-child(3) {
    transform: scale(1.2) rotate(216deg);
}

.testimonial-card:hover .fa-star:nth-child(4) {
    transform: scale(1.2) rotate(288deg);
}

.testimonial-card:hover .fa-star:nth-child(5) {
    transform: scale(1.2) rotate(360deg);
}

.footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer h5 {
    margin-bottom: 25px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons 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%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-section {
    padding: 80px 0;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation for services */
.service-card {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }

/* Stagger animation for testimonials */
.testimonial-card {
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.testimonial-card:nth-child(1) { transition-delay: 0.1s; }
.testimonial-card:nth-child(2) { transition-delay: 0.2s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    }
    50% {
        box-shadow: 0 15px 40px rgba(52, 152, 219, 0.25);
    }
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Testimonial Slider Styles */
.testimonial-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonial-slider {
    overflow: hidden;
    border-radius: 15px;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide .row {
    margin: 0 -15px;
}

.testimonial-slide .col-lg-4,
.testimonial-slide .col-md-6 {
    padding: 0 15px;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3498db, #0dd9fd);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.testimonial-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.testimonial-nav.prev {
    left: -25px;
}

.testimonial-nav.next {
    right: -25px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: linear-gradient(135deg, #3498db, #0dd9fd);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background: rgba(52, 152, 219, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments for testimonial slider */
@media (max-width: 991px) {
    .testimonial-slider-container {
        padding: 0 50px;
    }
    
    .testimonial-slide .col-md-6 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .testimonial-slider-container {
        padding: 0 40px;
    }
    
    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .testimonial-nav.prev {
        left: -20px;
    }
    
    .testimonial-nav.next {
        right: -20px;
    }
    
    .testimonial-slide .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .testimonial-slider-container {
        padding: 0 30px;
    }
    
    .testimonial-slide .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
}