/* 
* Devmatix Solutions - Company Website Styles
* Modern, professional design with blue color scheme
*/

:root {
    --primary-color: #0077b6; /* Primary blue */
    --secondary-color: #00b4d8; /* Secondary blue */
    --accent-color: #00e5ff; /* Accent blue */
    --dark-color: #003049; /* Dark blue */
    --light-color: #f8f9fa; /* Light gray */
    --text-color: #2b2d42; /* Dark text */
    --text-light: #8d99ae; /* Light text */
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
body.company-site {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Ensure all interactive elements are clickable - GLOBAL FIX */
body.company-site * {
    pointer-events: auto !important;
}

/* Reset pointer-events for chatbot widget (it will handle its own) */
body.company-site .ai-chatbot-widget {
    pointer-events: none !important;
}

body.company-site .ai-chatbot-widget .chatbot-toggle {
    pointer-events: auto !important;
}

body.company-site .ai-chatbot-widget.open .chatbot-window,
body.company-site .ai-chatbot-widget.open .chatbot-window * {
    pointer-events: auto !important;
}

/* Ensure proper cursors */
body.company-site a,
body.company-site button {
    cursor: pointer;
}

body.company-site input,
body.company-site textarea,
body.company-site select {
    cursor: text;
}

/* Ensure no space above navbar on mobile */
@media (max-width: 991px) {
    body.company-site {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    html {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header Styles */
.company-header {
    padding-top: 90px; /* Account for fixed navbar */
}

/* Remove space above navbar on mobile */
@media (max-width: 991px) {
    .company-header {
        padding-top: 0; /* No padding on mobile - navbar is at top */
    }
    
    .navbar {
        top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Add padding to main content to account for fixed navbar */
    main {
        padding-top: 70px; /* Height of navbar on mobile */
    }
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1030; /* Ensure navbar is above chatbot */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
}

/* Mobile navbar - ensure no space above */
@media (max-width: 991px) {
    .navbar {
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Ensure navbar toggle button works on mobile */
.navbar-toggler {
    z-index: 1031;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    pointer-events: auto !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 119, 182, 0.25);
    outline: none;
}

.navbar-collapse {
    z-index: 1030;
    position: relative;
}

/* Mobile navigation styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        margin-top: 15px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: var(--box-shadow);
        z-index: 1030;
        position: relative;
        pointer-events: auto !important;
    }
    
    .navbar-nav {
        pointer-events: auto !important;
        z-index: 1031;
        position: relative;
    }
    
    .navbar-nav .nav-item {
        pointer-events: auto !important;
        z-index: 1032;
        position: relative;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        pointer-events: auto !important;
        cursor: pointer;
        z-index: 1033;
        position: relative;
        display: block;
        width: 100%;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 119, 182, 0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.company-logo {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    pointer-events: auto !important;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: calc(100% - 2rem);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    padding: 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    background-color: rgba(0, 119, 182, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.service-icon i {
    font-size: 30px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Project Cards */
.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.project-info {
    padding: 25px;
    background: var(--white);
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tag {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-links a {
    margin-right: 15px;
    color: var(--text-color);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

/* Team Member Cards */
.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    /* Make images circular */
    border-radius: 50%;
    max-width: 220px;
    max-height: 220px;
    margin: 20px auto;
    display: block;
    border: 5px solid rgba(0, 119, 182, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:after {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(0, 119, 182, 0.1);
    font-size: 3rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.client-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.client-company {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-rating {
    color: #ffc107;
}

/* Client Logos */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.client-logo {
    height: 80px;
    margin: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Contact Section */
.contact-info-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: rgba(0, 119, 182, 0.1);
    border-radius: 50%;
    margin-right: 20px;
    color: var(--primary-color);
}

.contact-icon i {
    font-size: 20px;
}

.contact-details h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-light);
}

.contact-form .form-control {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Stats Counter */
.stats-counter {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    color: var(--white);
}

.counter-box {
    text-align: center;
    margin-bottom: 30px;
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.company-footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.company-footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    width: 25px;
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
    }
}

/* Animations */
.animate-up {
    animation: fadeInUp 1s ease-out;
}

.animate-down {
    animation: fadeInDown 1s ease-out;
}

.animate-left {
    animation: fadeInLeft 1s ease-out;
}

.animate-right {
    animation: fadeInRight 1s ease-out;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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