/*
 * Ezziweb - Professional Web Development Agency
 * Main Stylesheet
 * Author: Ezziweb
 * Version: 1.0
 */

/* ========================================
   CSS Variables & Root Styles
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #6C5CE7;
    --primary-dark: #5443c7;
    --primary-light: #a29bfe;

    /* Secondary Colors */
    --secondary-color: #00D2D3;
    --secondary-dark: #00b8b9;
    --secondary-light: #55efc4;

    /* Accent Colors */
    --accent-color: #FD79A8;
    --accent-orange: #FF7675;
    --accent-yellow: #FDCB6E;

    /* Neutral Colors */
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #b2bec3;
    --gray-light: #dfe6e9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 15px;

    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 15px;
    color: var(--dark-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================================
   Preloader
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.loader-container {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Top Contact Bar
   ======================================== */
.top-contact-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.contact-item i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* ========================================
   Navigation
   ======================================== */
.navbar-default {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
    top: 40px;
}

.navbar-default.navbar-shrink {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    height: auto;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.logo-img {
    display: block;
    height: 70px;
    width: auto;
    margin-right: 12px;
    transition: var(--transition-fast);
    object-fit: contain;
    /* Color the white logo with purple gradient effect */
    filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(1352%) hue-rotate(229deg) brightness(96%) contrast(92%);
}

.navbar-default.navbar-shrink .logo-img {
    height: 50px;
    width: auto;
}

.brand-text {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-flex;
    align-items: center;
}

.navbar-nav>li>a {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark) !important;
    padding: 20px 18px !important;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.navbar-nav>li>a:hover::after,
.navbar-nav>li.active>a::after {
    width: 30px;
}

.navbar-nav>li>a:hover,
.navbar-nav>li.active>a {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.btn-nav-cta,
.btn-nav-demo {
    padding: 10px 24px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-left: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.btn-nav-cta,
.btn-nav-demo {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-nav-cta:hover,
.btn-nav-demo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.btn-nav-cta::after,
.btn-nav-demo::after {
    display: none !important;
}

/* Mobile Menu */
.navbar-toggle {
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.navbar-toggle .icon-bar {
    background-color: var(--primary-color);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: var(--primary-color);
}

.navbar-toggle:hover .icon-bar {
    background-color: var(--white);
}

/* Hide mobile CTA buttons on desktop */
.mobile-cta-buttons {
    display: none;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 0 100px;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    max-width: 1400px;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white !important;
    margin-top: 158px;
}

.gradient-text {
    color: white !important;
    background: none;
    -webkit-text-fill-color: white;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    margin-top: 50px;
}

.btn-hero {
    margin: 10px;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator a {
    color: var(--white);
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-8px);
    }
}

/* Hero Animated Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--light);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-left .section-title::after {
    left: 0;
    transform: translateX(0);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Service Cards
   ======================================== */
.services-grid {
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-medium);
    height: 100%;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 40px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--dark-light);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
}

.service-link i {
    transition: var(--transition-fast);
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 80px 0;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-item i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ========================================
   Portfolio Section
   ======================================== */
.portfolio-grid {
    margin-top: 60px;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--white);
}

.portfolio-info p {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-details {
    padding: 20px;
}

.portfolio-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.feature-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: var(--white);
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-content p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--dark-light);
}

.video-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 100px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
}

.btn-cta {
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Footer
   ======================================== */
#footer {
    background: var(--dark);
    color: var(--gray-light);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-widget p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--gray);
}

.footer-contact i {
    width: 20px;
    margin-right: 12px;
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.copyright {
    color: var(--gray);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--gray);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

/* ========================================
   Parallax Effect
   ======================================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ========================================
   Utility Classes
   ======================================== */
.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-light);
    margin-bottom: 30px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Professional Dropdown Menu Styles
   ======================================== */

/* Dropdown Menu */
.navbar-nav>li.dropdown:hover>.dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    margin-top: 10px;
    min-width: 250px;
}

.dropdown-menu>li>a {
    padding: 12px 25px;
    color: #2d3436;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-menu>li>a i {
    font-size: 18px;
    color: #6C5CE7;
    transition: all 0.3s ease;
}

.dropdown-menu>li>a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 30px;
}

.dropdown-menu>li>a:hover i {
    color: white;
    transform: scale(1.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Toggle (Services) Hover Effect */
.navbar-nav>li.dropdown>a.dropdown-toggle {
    transition: all 0.3s ease;
}

.navbar-nav>li.dropdown:hover>a.dropdown-toggle,
.navbar-nav>li.dropdown>a.dropdown-toggle:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.navbar-nav>li.dropdown:hover>a.dropdown-toggle .caret,
.navbar-nav>li.dropdown>a.dropdown-toggle:hover .caret {
    border-top-color: #667eea;
    transform: rotate(180deg);
}

/* ========================================
   Testimonials Carousel Section
   ======================================== */
.testimonials-section {
    background: #f8f9fa;
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #FDCB6E;
    font-size: 18px;
    margin-right: 3px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #636e72;
    margin-bottom: 25px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2d3436;
    font-weight: 600;
}

.testimonial-author span {
    color: #b2bec3;
    font-size: 14px;
}

#testimonials-carousel {
    margin-top: 40px;
    margin-bottom: 20px;
}

#testimonials-carousel .carousel-indicators {
    bottom: -30px;
}

#testimonials-carousel .carousel-indicators li {
    background-color: #ddd;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

#testimonials-carousel .carousel-indicators .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#testimonials-carousel .carousel-control {
    background: none;
    width: 50px;
    opacity: 1;
    display: none;
}

#testimonials-carousel .carousel-control i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #667eea;
    transition: all 0.3s ease;
}

#testimonials-carousel .carousel-control:hover i {
    color: #764ba2;
    transform: translateY(-50%) scale(1.2);
}

#testimonials-carousel .carousel-control.left i {
    left: 20px;
}

#testimonials-carousel .carousel-control.right i {
    right: 20px;
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 20px;
        min-height: auto;
    }

    #testimonials-carousel .carousel-control {
        display: none;
    }
}

/* ========================================
   Particles Effect for CTA Section
   ======================================== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Footer Compact & Newsletter Styles
   ======================================== */
.footer-main {
    padding: 40px 0 20px;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.6;
}

.whatsapp-link {
    background: #25D366 !important;
}

.whatsapp-link:hover {
    background: #128C7E !important;
    transform: scale(1.1);
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-form .input-group {
    display: flex;
    align-items: stretch;
}

.newsletter-form .input-group-btn {
    display: flex;
}

.newsletter-form .form-control {
    flex: 1;
    border-radius: 25px 0 0 25px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    height: auto;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 20px;
    color: white;
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .btn i {
    font-size: 16px;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.footer-contact li {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-links li {
    margin-bottom: 8px;
}

/* Footer Bottom Centered */
.footer-bottom {
    padding: 15px 0;
}

.footer-bottom .copyright {
    margin: 0;
    font-size: 13px;
}

/* ========================================
   SEO Audit CTA Section - Minimal Style
   ======================================== */
.seo-cta-section {
    margin-top: 50px;
    padding: 30px 20px;
}

.seo-cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
}

.seo-cta-subtitle {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 25px;
}

.btn-seo-audit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 60px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-seo-audit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
    color: white;
    text-decoration: none;

}

.btn-seo-audit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
}

#testimonials-carousel .carousel-control.right i {
    right: 20px;
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 20px;
        min-height: auto;
    }

    #testimonials-carousel .carousel-control {
        display: none;
    }
}

/* ========================================
   Particles Effect for CTA Section
   ======================================== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Footer Compact & Newsletter Styles
   ======================================== */
.footer-main {
    padding: 40px 0 20px;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.6;
}

.whatsapp-link {
    background: #25D366 !important;
}

.whatsapp-link:hover {
    background: #128C7E !important;
    transform: scale(1.1);
}

.newsletter-form {
    margin-top: 15px;
}

.newsletter-form .input-group {
    display: flex;
    align-items: stretch;
}

.newsletter-form .input-group-btn {
    display: flex;
}

.newsletter-form .form-control {
    flex: 1;
    border-radius: 25px 0 0 25px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 14px;
    height: auto;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 20px;
    color: white;
    transition: all 0.3s ease;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form .btn i {
    font-size: 16px;
}

.newsletter-form .btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.footer-contact li {
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-links li {
    margin-bottom: 8px;
}

/* Footer Bottom Centered */
.footer-bottom {
    padding: 15px 0;
}

.footer-bottom .copyright {
    margin: 0;
    font-size: 13px;
}

/* ========================================
   SEO Audit CTA Section - Minimal Style
   ======================================== */
.seo-cta-section {
    margin-top: 50px;
    padding: 30px 20px;
}

.seo-cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
}

.seo-cta-subtitle {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 25px;
}

.btn-seo-audit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-seo-audit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
}

.btn-seo-audit i {
    font-size: 1rem;
}

/* Service Link Inline - Button Style */
.service-link-inline {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    min-width: 140px;
}

.service-link-inline:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.service-link-inline i {
    font-size: 0.85em;
    transition: transform 0.3s ease;
}

.service-link-inline:hover i {
    transform: translateX(3px);
}

/* Align service cards and links */
.service-card {
    display: flex;
    flex-direction: column;
}


.service-features-list {
    flex-grow: 1;
    margin-bottom: 0 !important;
}


/* Force equal height for service cards row */
.services-section .row {
    display: flex;
    flex-wrap: wrap;
}

.services-section .col-md-4 {
    display: flex;
}

.service-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

.service-card .service-features-list {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
}

/* Service Button Wrapper */
.service-btn-wrapper {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.service-btn-wrapper .service-link-inline {
    width: 100%;
    /* Make button full width if desired, or remove for auto width */
    justify-content: center;
    margin: 0;
}

/* Reset previous forced list styles if needed */


/* Ensure perfect alignment for service cards */
.service-card-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-content-main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.service-features-list {
    flex-grow: 1;
    /* Pushes the button wrapper to the bottom */
}

.service-btn-wrapper {
    margin-top: auto;
    /* Ensures button stays at bottom */
    padding-top: 20px;
}

/* Back to Top Button Fixed Alignment */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex !important;
    /* Force flex */
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.back-to-top i {
    font-size: 20px;
    line-height: 0;
    /* Fix line-height offset */
    margin: 0;
    padding: 0;
}

/* ========================================
   Responsive Fixes for Mobile
   ======================================== */
@media (max-width: 768px) {

    /* Top Contact Bar */
    .top-contact-bar {
        padding: 5px 0;
        height: auto;
    }

    .top-contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-item {
        font-size: 11px;
    }

    /* Top Bar - Hide on Mobile */
    .top-bar {
        display: none;
    }

    /* Navbar */
    .navbar {
        min-height: 60px !important;
    }

    .navbar-default {
        min-height: 60px !important;
        padding: 5px 0;
        top: 45px !important;
        /* Push below fixed top bar */
    }

    body {
        padding-top: 60px !important;
        /* Push below fixed top bar */
    }

    /* Mobile Header Alignment Fix */
    .navbar-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 15px !important;
        min-height: 60px !important;
        height: 60px !important;
    }

    /* Mobile CTA Buttons */
    .mobile-cta-buttons {
        display: flex;
        gap: 8px;
        margin-left: auto;
    }

    .btn-mobile-cta {
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .btn-demo {
        background: #00d4aa;
        color: white;
    }

    .btn-demo:hover {
        background: #00b894;
        color: white;
    }

    .btn-devis {
        background: #6C5CE7;
        color: white;
    }

    .btn-devis:hover {
        background: #5f4fd1;
        color: white;
    }

    /* Hide desktop CTA on mobile */
    .navbar-nav .cta-nav {
        display: none !important;
    }

    .navbar-toggle {
        margin: 0 !important;
        /* Remove bootstrap margins for perfect flex centering */
    }

    .navbar-brand {
        padding: 10px 15px !important;
        height: auto;
    }

    /* Footer Newsletter Overflow Fix */
    .newsletter-form .input-group {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
    }

    .newsletter-form .form-control {
        min-width: 0;
        /* Critical for flex input shrinking */
        flex: 1;
        width: 100%;
    }

    .newsletter-form .btn {
        flex-shrink: 0;
    }

    /* General Typography & Spacing */
    h1 {
        font-size: 2rem !important;
    }

    h2,
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* Ensure no horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* SEO Section Alignment Fix */
    .seo-cta-section {
        text-align: left !important;
    }

    .btn-seo-audit {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .seo-services-card {
        text-align: left;
    }

    /* Generic CTA Alignment (Web, etc) */
    .cta-section {
        text-align: left !important;
    }

    .cta-section .text-center {
        text-align: left !important;
    }

    .cta-section h2,
    .cta-section p {
        text-align: left !important;
    }

    /* Handle button container */
    .cta-section div[style*="background"] {
        /* Exclude overlays if any? No */
    }

    .cta-section div[style*="display: flex"] {
        justify-content: flex-start !important;
        flex-direction: column;
        width: 100%;
    }

    .cta-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Compact Newsletter Form on Mobile */
    .footer-widget .newsletter-form {
        max-width: 100%;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .footer-widget .newsletter-form .input-group {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        margin: 0 !important;
    }

    .footer-widget {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .footer-widget .newsletter-form .input-group .form-control,
    .footer-widget .newsletter-form .input-group-btn .btn {
        height: 32px !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
        line-height: 1.2 !important;
    }

    .footer-widget .newsletter-form .form-control {
        border-radius: 16px 0 0 16px !important;
        flex: 1;
        min-width: 0 !important;
        max-width: calc(100% - 50px) !important;
        width: 100% !important;
    }

    .footer-widget .newsletter-form .btn {
        border-radius: 0 16px 16px 0 !important;
        padding: 6px 12px !important;
        min-width: 45px;
        flex-shrink: 0;
    }

    .footer-widget .newsletter-form .btn i {
        font-size: 12px !important;
    }

    /* Reduce Logo Size for Mobile */
    .logo-img {
        height: 35px !important;
        width: auto !important;
        max-width: 200px;
        margin-left: 0 !important;
    }

    .navbar-brand {
        padding: 8px 15px 8px 5px !important;
    }

    /* Modern Toggle Button */
    .navbar-toggle {
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .navbar-toggle:hover,
    .navbar-toggle:focus {
        background: transparent !important;
    }

    .navbar-toggle .icon-bar {
        background-color: #6C5CE7 !important;
        /* Purple lines */
        width: 25px;
        height: 3px;
    }
}

```