/* ============================================
   Modern Design System - Code Node
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #1a1a2e;
    --secondary: #262262;
    --accent: #4e4ecb;
    --dark: #0f0f1a;
    --darker: #05050a;
    --light: #f8fafc;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(226, 232, 240, 0.6);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Overrides to remove default blue */
.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

/* Header Styles */
.main-header {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header.scrolled {
    background-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
    .main-header.scrolled {
        background-color: rgba(26, 26, 46, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
}


.navbar-brand img {
    height: 45px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.8rem 1.2rem !important;
    position: relative;
    font-size: 0.95rem;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

.nav-link:hover {
    color: var(--white) !important;
}

.nav-link.active {
    color: var(--white) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        transition: none !important;
        /* Prevent any toggle animations from affecting scroll */
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: none !important;
    }

    .nav-link::after {
        display: none;
    }
}


.navbar-toggler {
    color: var(--white) !important;
    font-size: 1.25rem;
    padding: 0;
    transition: var(--transition);
}

.navbar-toggler .fa-times {
    display: none;
}

.navbar-toggler:not(.collapsed) .fa-bars {
    display: none;
}

.navbar-toggler:not(.collapsed) .fa-times {
    display: inline-block;
}


/* Footer Styles */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.newsletter-box {
    background: var(--secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-top: -140px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}


body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Reusable Components */

.section-padding {
    padding: 100px 0;
}

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    gap: 0.5rem;
}

.btn-primary-dark {
    background-color: var(--dark);
    color: var(--white);
}

.btn-primary-dark:hover {
    background-color: #2a2f45;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon-box-lg {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(26, 26, 46, 0.05);
    color: var(--primary);
    transition: var(--transition);
}

.card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-modern:hover .btn-outline {
    background: var(--primary);
    color: var(--white) !important;
}

.card-modern:hover .icon-box-lg {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.badge-modern {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: #f1f5f9;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* What We Do Section Styles */
.what-we-do-section {
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.service-item-modern:hover {
    transform: translateX(8px);
    border-color: #262262;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.service-icon-small {
    width: 45px;
    height: 45px;
    background: rgba(38, 34, 98, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262262;
    /* Using explicit secondary color since var handled differently sometimes */
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-item-modern:hover .service-icon-small {
    background: #262262;
    color: var(--white);
    transform: scale(1.1);
}

/* Services Icons Floating Animation - Mobile Only */
@media (max-width: 768px) {
    .service-icon-small {
        animation: iconFloat 4s ease-in-out infinite;
    }
}

.service-item-modern span {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.expertise-content .text-success {
    color: #22c55e !important;
    font-size: 1.25rem;
}

.feat-item {
    transition: var(--transition);
}

.feat-item:hover {
    transform: translateX(5px);
}

.feat-item .fw-semibold {
    color: #1a1a2e;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .what-we-do-section {
        padding: 60px 0;
    }

    .expertise-content {
        margin-top: 2rem;
        padding-left: 0 !important;
    }
}

/* Expertise Section Styles (Dark) */
.section-expertise-dark {
    background-color: var(--primary);
    /* Same as footer: #1a1a2e */
    color: var(--white);
    padding: 70px 0 !important;
}

.card-expertise {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    /* Reduced card padding */
    width: 380px;
    /* Fixed width as requested */
    max-width: 100%;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-expertise:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #262262;
    transform: translateY(-10px);
}

.expertise-icon-wrapper {
    width: 70px;
    /* Slightly smaller */
    height: 70px;
    background: transparent;
    /* Background removed as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    /* Increased icon size since bg is gone */
    color: #ffffff;
    /* Primary accent color for the icon */
    margin-bottom: 1.5rem;
    box-shadow: none;
    /* Shadow removed with bg */
}

/* Continuous Floating Animation */
.animate-icon-float {
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.text-secondary-light {
    color: #94a3b8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card-expertise {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
}

/* About Us Section Styles */
.about-us-section {
    position: relative;
    overflow: hidden;
}

.card-about {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: var(--transition);
}

.card-about:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.about-icon-sm {
    width: 60px;
    height: 60px;
    background: rgba(38, 34, 98, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .card-about {
        padding: 2rem;
    }
}

/* Testimonials Section Styles */
.testimonial-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.25rem;
    /* Reduced card padding */
    position: relative;
    height: 100%;
    /* Ensure uniform height for slides */
    transition: var(--transition);
}

.testimonial-card-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Same as normal - hover removal requested */
    border-color: rgba(255, 255, 255, 0.1);
}

.quote-icon-top {
    font-size: 2.5rem;
    color: #4e4ecb;
    opacity: 0.3;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    /* Slightly smaller for 3-col layout */
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #262262 0%, #4e4ecb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.testimonial-swiper {
    padding-bottom: 40px !important;
}

.swiper-pagination-bullet {
    background: #4e4ecb !important;
    width: 12px;
    height: 12px;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .testimonial-card-modern {
        padding: 2rem 1.5rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }
}

/* UI Utilities */
.opacity-75 {
    opacity: 0.75;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition {
    transition: var(--transition);
}

.text-decoration-none {
    text-decoration: none !important;
}

.w-fit {
    width: fit-content;
}