/* 
   Bassr - Software & Digital Marketing Agency
   Custom CSS Styles
*/

/* ===== General Styles ===== */
:root {
    --primary-color: #254D42;
    --secondary-color: #254D42;
    --accent-color: #3ca188;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #495057;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

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

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

.btn {
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline-primary.active {
    background-color: var(--primary-color);
    color: #fff;
}

.section-padding {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.section-header p {
    color: var(--text-color);
    font-size: 18px;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== Navbar ===== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-toggler {
    border: none;
    font-size: 20px;
    padding: 0;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

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

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

.nav-link:hover:after, .nav-link.active:after {
    width: calc(100% - 30px);
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

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

/* ===== Hero Section ===== */
.hero-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    top: -10px;
}

.hero-btns {
    margin-top: 30px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* ===== Services Section ===== */
.service-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 77, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon-box i {
    font-size: 30px;
    color: var(--primary-color);
}

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

.service-card p {
    margin-bottom: 20px;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== About Section ===== */
.about-stats .stat-item {
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.about-stats .stat-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-stats .stat-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* ===== Portfolio Section ===== */
.portfolio-filters {
    margin-bottom: 30px;
}

.portfolio-filters .btn {
    margin: 0 5px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.portfolio-container {
    position: relative;
}

.portfolio-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.portfolio-card img {
    transition: var(--transition);
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 77, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-info h4 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

/* Isotope animation */
.isotope,
.isotope .portfolio-item {
    transition-duration: 0.8s;
}

.isotope {
    transition-property: height, width;
}

.isotope .portfolio-item {
    transition-property: transform, opacity;
}

/* ===== Testimonials Section ===== */
.testimonial-item {
    padding: 30px;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid rgba(26, 77, 60, 0.1);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.testimonial-content .title {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.rating i {
    color: #ffc107;
    margin: 0 1px;
}

.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev i, .carousel-control-next i {
    color: #fff;
    font-size: 16px;
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
}

.cta-section h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ===== Contact Section ===== */
.contact-info {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 77, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: var(--border-radius);
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

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

textarea.form-control {
    height: auto;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 2px;
    width: 40px;
    background-color: var(--accent-color);
}

.footer-about p {
    margin-bottom: 20px;
}

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

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

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.footer-newsletter .form-control {
    border: none;
}

.footer-newsletter .btn {
    padding: 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .hero-section {
        padding: 130px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .carousel-control-prev, .carousel-control-next {
        display: none;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .portfolio-filters .btn {
        margin-bottom: 10px;
    }
}

/* ===== Enhanced Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge span {
    font-size: 14px;
    font-weight: 500;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero-section h1 .highlight {
    position: relative;
    display: inline-block;
    color: #fff;
}

.hero-section h1 .highlight:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background-color: rgba(60, 161, 136, 0.5);
    z-index: -1;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    top: -10px;
}

.hero-features {
    margin: 25px 0;
    position: relative;
    top: -20px;
}


.hero-feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.hero-feature i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 18px;
}

.hero-feature span {
    font-weight: 500;
}

.hero-btns {
    margin-top: 30px;
}

.hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 4s infinite;
}

.hero-main-image {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
    width: 70%;
}

.floating-card {
    position: absolute;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    min-width: 200px;
}

.floating-card .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 77, 60, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.floating-card .icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.floating-card .content h5 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--dark-color);
}

.floating-card .content p {
    font-size: 12px;
    margin-bottom: 0;
    color: var(--text-color);
}

.floating-card-1 {
    top: 20%;
    left: 0;
    animation: float 5s ease-in-out infinite;
}

.floating-card-2 {
    bottom: 20%;
    right: 0;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 40px;
    }
    
    .floating-card {
        min-width: 180px;
    }
    
    .floating-card-1 {
        top: 15%;
        left: 5%;
    }
    
    .floating-card-2 {
        bottom: 15%;
        right: 5%;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 32px;
    }
}