/* 
* LEK Marketing - Enhanced Responsive Stylesheet
* Improved for better visual appeal and mobile responsiveness
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Base Styles */
:root {
    --primary-color: #18cb96;
    --primary-dark: #15b587;
    --primary-light: #7eefd1;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f8f8f8;
    --dark-bg: #000000;
    --dark-card: #333333;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h5 {
    font-size: clamp(1rem, 3vw, 1.25rem);
}

p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.lead {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--box-shadow);
    padding: 0.55rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

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

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2824, 203, 150, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    width: 70%;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    width: 0%;
    z-index: 1100;
    transition: width 0.1s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/b1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    margin-top: 86px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-section .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-section p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-section .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    box-shadow: 0 5px 15px rgba(24, 203, 150, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section.bg-dark {
    background-color: var(--dark-bg) !important;
    color: var(--light-color);
}

.section.bg-white {
    background-color: var(--light-color) !important;
}

.section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    background: var(--gray-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    margin-bottom: 30px;
}

.section.bg-dark .service-card {
    background: var(--dark-card);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

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

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .p-4 {
    padding: 1.5rem !important;
}

.service-card h5 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.section.bg-dark .service-card h5 {
    color: var(--primary-light);
}

.service-card p {
    margin-bottom: 0;
    color: var(--dark-color);
}

.section.bg-dark .service-card p {
    color: #e0e0e0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 203, 150, 0.4);
}

/* Industry Cards */
.industry-card {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--card-shadow);
}

.industry-card:hover {
    background: #444444;
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.industry-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.industry-card:hover svg {
    fill: var(--light-color);
    transform: scale(1.1);
}

.industry-card h5 {
    font-size: 1.1rem;
    color: var(--light-color);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0 30px;
    border-top: 1px solid #e0e0e0;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

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

footer a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .social-icons {
    margin-top: 20px;
}

footer .social-icons a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--dark-color);
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    transition: var(--transition);
}

footer .social-icons a:hover {
    color: var(--light-color);
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

footer .logo img {
    height: 50px;
    margin-bottom: 20px;
}

footer .copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

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

.contact-form textarea.form-control {
    min-height: 150px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
}

.floating-contact:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--box-shadow);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 120px 0;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer .col-md-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .floating-contact, .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
