/* Main Variables */
/*@import 'animate.css/animate.min.css';*/
:root {
    --primary: #1e8b7c;
    --primary-dark: #176f63;
    --primary-light: rgba(30, 139, 124, 0.1);
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --darker: #1a1e21;
    --white: #ffffff;
    --black: #000000;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1000; /* Add this line */
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: #f9fbfa;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 139, 124, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.hero-section h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section .text-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards - Shared Styles */
.service-card,
.case-study-card,
.service-category-card,
.pricing-card,
.tech-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.service-card:hover,
.service-category-card:hover,
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.case-study-card:hover,
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.case-study-card img {
    transition: all 0.5s ease;
}

.case-study-card:hover img {
    transform: scale(1.05);
}

/* Icon Box */
.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

/* Testimonials */
.bg-primary-light {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Grayscale Effect */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 12px;
}

/* Utility Classes */
.bg-primary-soft {
    background-color: var(--primary-light);
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.bg-darker {
    background-color: var(--darker) !important;
}

.hover-white:hover {
    color: var(--white) !important;
}

/* Services Page */
.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list li:last-child {
    border-bottom: none;
}

/* Pricing Page */
.pricing-toggle-wrapper {
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card.border-primary {
    border-width: 2px !important;
}

.pricing-card .card-header {
    border-bottom: none;
}

/* Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    border-bottom-width: 1px;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(30, 139, 124, 0.05);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Process Page Specific Styles */
.process-timeline {
    position: relative;
    padding-left: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(30, 139, 124, 0.2));
}

.process-step {
    position: relative;
    padding-bottom: 60px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(30, 139, 124, 0.3);
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.step-body {
    margin-bottom: 20px;
}

.step-image {
    border-radius: 8px;
    overflow: hidden;
}

.step-image img {
    transition: all 0.5s ease;
}

.step-content:hover .step-image img {
    transform: scale(1.03);
}

.card-img-overlay.bg-dark-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Contact Page Specific Styles */
.contact-info li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info li:last-child {
    border-bottom: none;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links .icon-box {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.social-links .icon-box:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
}

.map-container {
    border: 1px solid #dee2e6;
}

/* Form Styles */
#contactForm .form-control,
#contactForm .form-select {
    padding: 12px;
    border-radius: 8px;
}

#contactForm .form-control:focus,
#contactForm .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(30, 139, 124, 0.25);
}

/* Team Card Styles */
.team-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.team-card img {
    transition: all 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sticky-top {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .contact-info li {
        padding: 10px 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .process-timeline {
        padding-left: 40px;
    }
    
    .step-number {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .process-timeline::before {
        left: 19px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-header .badge {
        margin-left: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section::before {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
    }
    
    .pricing-card,
    .service-category-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.1rem;
    }
    
    .table-responsive {
        border: 0;
    }
    
    .table thead {
        display: none;
    }
    
    .table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-clients {
        justify-content: center;
        text-align: center;
    }
}