
:root {
    --primary: #0052ff;
    --primary-dark: #0041cc;
    --secondary: #0f172a;
    --accent: #00d4aa;
    --light: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --gradient-primary: linear-gradient(135deg, #0052ff 0%, #00d4aa 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shadow-sm: 0 4px 6px rgba(0, 82, 255, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 82, 255, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 82, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--secondary);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
}

.section-title.center::before {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 3rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Premium Navigation */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-circle i {
    color: white;
    font-size: 18px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0 10px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Premium Hero Section */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 32px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Section Spacing */
.section-spacing {
    padding: 100px 0;
}

/* About Section */
.about-section {
    position: relative;
}

.about-badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 82, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    background: var(--gradient-light);
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 82, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 82, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* Team Section */
.team-card {
background: white;
border-radius: var(--radius-lg);
padding: 2rem;
text-align: center;
transition: all 0.4s ease;
box-shadow: var(--shadow-sm);
border: 1px solid rgba(0, 82, 255, 0.05);
height: 100%;
}

.team-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-lg);
}

.team-img {
width: 180px;
height: 220px;
border-radius: 50%;
object-fit: cover;
margin: 0 auto 1.5rem;
border: 5px solid white;
box-shadow: var(--shadow-md);
transition: all 0.4s ease;
}

.team-card:hover .team-img {
transform: scale(1.08);
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    background: rgba(0, 82, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Products Section */
.products-section {
    background: var(--gradient-dark);
    color: white;
}

.products-section .section-title,
.products-section .section-subtitle {
    color: white;
}

/* New project card styles */
.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #00bcd4, #ff4081);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}
.project-content {
    padding: 1.2rem 1.1rem;
}
.project-content h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1a237e;
}
.project-content p {
    color: #5f6b7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}
/* .gradient-text {
    background: linear-gradient(135deg, #00bcd4, #ff4081);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */
.section-spacing {
    padding: 80px 0;
}
.bg-light-custom {
    background-color: #ecf0f6;
}

/* Client Logos Section */
.clients-section {
    padding: 80px 0;
    background: white;
}

.client-slider-container {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

.client-slider-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 82, 255, 0.05);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.client-logo img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact-section {
    background: var(--gradient-light);
}

.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 82, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form .form-control {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 82, 255, 0.1);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section::before {
        width: 100%;
        height: 50%;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        opacity: 0.3;
    }

    .hero-section {
        padding: 140px 0 80px;
    }

    .section-spacing {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .client-logo {
        width: 150px;
        margin: 0 20px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .client-logo {
        width: 130px;
        margin: 0 15px;
    }
}


  /* ===== FIXED BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 80px;          /* above floating buttons? no, floating are centered, but we keep bottom 20? adjust */
    z-index: 995;           /* below floating buttons (996) but visible */
    background: #106eea;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.back-to-top i {
    line-height: 0;
}

.back-to-top:hover {
    background: #0052ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* ===== FIXED FLOATING BUTTONS (WhatsApp & Messenger) ===== */
.floating-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-button {
    display: flex;
    align-items: center;
    padding: 12px 18px 12px 15px; /* adjust for icon/text */
    border-radius: 40px 0 0 40px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(70%);
    border: none;
    backdrop-filter: blur(4px);
}

.float-button:hover {
    transform: translateX(0);
    color: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.float-button i {
    font-size: 24px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.float-button:hover i {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25D366;
}

.whatsapp:hover {
    background-color: #128C7E;
}

.messenger {  /* renamed from .appointment for clarity */
    background-color: #0078FF;
}

.messenger:hover {
    background-color: #0063d1;
}

/* Adjust back-to-top bottom to not overlap footer on small screens, but it's fine */
@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .float-button {
        padding: 10px 15px 10px 12px;
        font-size: 14px;
    }
    .float-button i {
        font-size: 20px;
    }
}
/* Fix mobile menu active link background full width */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        display: inline-block;
        width: auto;
        padding: 0.5rem 1rem;
    }

    .navbar-nav .nav-link.active,
    .navbar-nav .nav-link:active {
        background-color: transparent !important;
        color: var(--primary); /* Use your actual primary color variable/value */
    }

    .nav-link::after {
        bottom: -2px; /* adjust if needed */
    }
}
