/*
* Rapid IT - Main Stylesheet
* Modern, clean design for IT services company
*/

/* ======= Base Styles ======= */
:root {
    /* Brand Colors */
    --primary-color: #2B3990;
    --secondary-color: #00A551;
    --dark-color: #1A1A1A;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --light-gray: #EEEEEE;
    
    /* Typography */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-spacing: 100px;
    --content-spacing: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 42px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: capitalize;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

/* ======= Header Styles ======= */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    padding: 10px 0; /* Adjusted to accommodate larger logo */
    background-color: rgba(255, 255, 255, 0.98); /* Made background more solid */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-area.sticky {
    padding: 10px 0;
}

.navbar-brand img {
    max-height: 100px; /* Increased logo size */
    width: auto;
}

.navbar-nav .nav-link {
    padding: 15px;
    font-weight: 600; /* Made font weight bolder */
    color: var(--dark-color);
    position: relative;
    font-size: 17px; /* Increased font size for better proportion with larger logo */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: calc(100% - 30px);
}

.dropdown-menu {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    background-color: #fff;
    min-width: 240px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 25px;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background-color: rgba(43, 57, 144, 0.05);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 30px;
}

/* Add arrow to dropdown */
.dropdown-toggle::after {
    border-width: 5px;
    vertical-align: 3px;
}

.navbar-nav .btn {
    margin-left: 15px;
}

/* ======= Hero Area ======= */
.hero-area {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--light-color);
    overflow: hidden;
}

.hero-area:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 38, 59, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

/* ======= Services Area ======= */
.service-box {
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 25px;
    height: 80px;
    width: 80px;
    line-height: 80px;
    text-align: center;
    background: rgba(43, 57, 144, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 40px;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
}

.service-box h4 {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-box:hover h4 {
    color: var(--primary-color);
}

.service-box p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.service-box .read-more {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 10px;
}

.service-box .read-more i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.service-box .read-more:hover i {
    margin-left: 10px;
}

/* ======= About Area ======= */
.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 30px;
}

.about-content ul {
    margin-bottom: 30px;
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.about-content ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image .experience {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--primary-color);
    padding: 25px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image .experience h3 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 5px;
}

.about-image .experience p {
    margin-bottom: 0;
    font-weight: 500;
}

/* ======= Features Area ======= */
.features-area {
    background-color: var(--light-color);
}

.feature-box {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.feature-box h4 {
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* ======= CTA Area ======= */
.cta-area {
    padding: 80px 0;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.cta-area:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/pattern.png');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 30px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 0 10px 10px;
}

.cta-buttons .btn-white {
    background: #fff;
    color: var(--primary-color);
}

.cta-buttons .btn-white:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* ======= Footer Area ======= */
.footer-area {
    background: var(--dark-color);
    padding-top: 100px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 25px;
    max-width: 180px;
}

.footer-widget p {
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-widget h4 {
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.copyright-area {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 30px;
}

.copyright-area p {
    margin-bottom: 0;
}

.copyright-area p i {
    color: #ff5e5e;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* ======= Testimonials Area ======= */
.testimonial-box {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--gray-color);
}

.testimonial-content i.fa-quote-left {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h5 {
    margin-bottom: 5px;
}

.client-details p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ======= Contact Area ======= */
.contact-info-box {
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--light-gray);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-info-box i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: rgba(43, 57, 144, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-info-box:hover i {
    background: var(--primary-color);
    color: #fff;
}

.contact-info-box h4 {
    margin-bottom: 15px;
}

.contact-info-box p {
    margin-bottom: 0;
    color: var(--gray-color);
}

.contact-form {
    padding: 40px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 55px;
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    font-size: 16px;
    transition: all 0.3s ease;
}

textarea.form-control {
    height: 180px;
    resize: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.google-map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

/* ======= Blog Area ======= */
.blog-post {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-image {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    transition: all 0.3s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.blog-meta {
    margin-bottom: 15px;
}

.blog-meta span {
    display: inline-block;
    margin-right: 15px;
    color: var(--gray-color);
}

.blog-meta span i {
    margin-right: 5px;
    color: var(--primary-color);
}

.blog-content h4 {
    margin-bottom: 15px;
}

.blog-content h4 a {
    color: var(--dark-color);
}

.blog-content h4 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 20px;
}

/* ======= Portfolio Area ======= */
.portfolio-filter {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filter li {
    display: inline-block;
    margin: 0 5px 10px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.portfolio-filter li.filter-active,
.portfolio-filter li:hover {
    background: var(--primary-color);
    color: #fff;
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-wrap img {
    width: 100%;
    transition: all 0.3s ease;
}

.portfolio-wrap:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    transition: all 0.3s ease;
}

.portfolio-wrap:hover .portfolio-info {
    bottom: 0;
}

.portfolio-info h4 {
    color: #fff;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.portfolio-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.portfolio-links a:hover {
    background: var(--secondary-color);
}

/* ======= Team Area ======= */
.team-member {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.team-image img {
    width: 100%;
    transition: all 0.3s ease;
}

.team-member:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 57, 144, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .team-social {
    opacity: 1;
}

.team-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--secondary-color);
    color: #fff;
}

.team-content {
    padding: 20px;
    background: #fff;
    text-align: center;
    border-radius: 0 0 10px 10px;
    flex-grow: 1;
}

.team-content h4 {
    margin-bottom: 5px;
}

.team-content p {
    margin-bottom: 0;
    color: var(--gray-color);
}

/* ======= Preloader ======= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
}

.loader span {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.loader span:nth-child(2) {
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    animation: spin 2s linear infinite;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Contact Form Responsive Improvements */
.contact-form .form-control {
    padding: 12px 15px;
    height: auto;
    font-size: 15px;
}

.contact-form textarea.form-control {
    min-height: 120px;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 16px;
}

@media only screen and (max-width: 767px) {
    /* Add proper spacing for form elements on mobile */
    .contact-form .form-group {
        margin-bottom: 20px;
    }
    
    .contact-form .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .alert {
        padding: 12px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 575px) {
    /* Responsive accordion improvements */
    .accordion-button {
        padding: 15px;
        font-size: 15px;
    }
    
    .accordion-body {
        padding: 15px;
        font-size: 14px;
    }
}