/* Global Styles */
:root {
    --primary-color: #4e57d4;  /* Main brand color */
    --secondary-color: #2a2f6a; /* Darker shade for contrast */
    --accent-color: #ff6b6b;    /* For highlights and CTAs */
    --light-color: #f8f9fa;     /* Light background */
    --dark-color: #212529;      /* Dark text color */
    --gray-color: #6c757d;      /* For secondary text */
    --transition: all 0.3s ease-in-out;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.btn-accent:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
section {
    padding: 80px 0;
}

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

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

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: visible;
}

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

.dark-mode #header {
    background-color: rgba(33, 37, 41, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode #header.header-scrolled {
    background-color: var(--dark-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

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

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 100%;
}

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

/* Hero Section Styles */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #2b5876 0%, #0ae86a 100%);
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* To account for fixed header */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Services Section Styles - Will be expanded later */
.service-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* About Us Section */
.about-img-container {
    position: relative;
    margin-bottom: 30px;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-experience .years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience .text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding: 20px;
}

.about-feature {
    margin-bottom: 15px;
}

.about-feature .icon-box {
    width: 40px;
    height: 40px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Dark mode styles for about section */
body.dark-mode #about {
    background-color: var(--dark-bg-secondary);
}

body.dark-mode .about-feature .icon-box {
    background-color: rgba(var(--primary-rgb), 0.2);
}

/* Pricing Cards - Will be expanded later */
.pricing-card {
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card.popular {
    transform: scale(1.05);
    z-index: 1;
    border: 2px solid var(--primary-color);
}

.pricing-card.popular:before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
}

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

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color);
}

/* Why Choose Us - Will be expanded later */
.feature-box {
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Client Showcase Section */
.client-slider {
    padding: 20px 0;
}

.client-logo {
    max-width: 150px;
    height: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.overflow-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.overflow-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.overflow-auto::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode styles for client section */
body.dark-mode .client-logo {
    filter: grayscale(100%) brightness(0.8) invert(1);
}

body.dark-mode .client-logo:hover {
    filter: grayscale(0%) brightness(1) invert(1);
}

body.dark-mode #clients {
    background-color: var(--dark-bg-secondary);
}

/* Testimonials Section */
.testimonial-slider {
    position: relative;
    padding: 20px 0;
}

.testimonial-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
    margin-bottom: 30px;
}

.testimonial-card .card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.testimonial-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #ffc107;
    margin-right: 2px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
}

.carousel-indicators {
    position: relative;
    margin-top: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-controls {
    position: relative;
    height: 0;
}

/* Dark mode styles for testimonials */
body.dark-mode .testimonial-card .card {
    background-color: var(--dark-bg-secondary);
    color: var(--dark-text);
}

body.dark-mode .testimonial-card .card .text-muted {
    color: var(--dark-text-muted) !important;
}

body.dark-mode .carousel-indicators [data-bs-target] {
    background-color: #555;
}

body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
    filter: brightness(0.8);
}

/* CTA Section */
.cta-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.cta-buttons .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
    border: 1px solid #eee;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    height: 100%;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

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

/* Dark mode styles for contact section */
body.dark-mode .contact-form {
    background-color: var(--dark-bg-secondary);
}

body.dark-mode .contact-form .form-control {
    background-color: var(--dark-bg);
    border-color: #444;
    color: var(--dark-text);
}

body.dark-mode .contact-info {
    background-color: var(--dark-bg-secondary);
    border: 1px solid var(--primary-color);
}

/* Footer Styles */
#footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.8);
}

#footer h5 {
    font-weight: 600;
    color: white;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 5px;
}

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

.footer-social .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
}

.list-inline-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.list-inline-item a:hover {
    color: var(--primary-color);
}

/* Dark mode footer styles */
body.dark-mode #footer {
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer-links a,
body.dark-mode .list-inline-item a {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .footer-links a:hover,
body.dark-mode .list-inline-item a:hover {
    color: var(--primary-color);
}

body.dark-mode hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer - Will be expanded later */
#footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.8);
}

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

#footer a:hover {
    color: white;
    text-decoration: none;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.dark-mode .service-card,
.dark-mode .pricing-card,
.dark-mode .testimonial-card,
.dark-mode .contact-form {
    background-color: #2d3748;
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .navbar-light .navbar-toggler {
    background-color: var(--light-color);
}

/* Navbar toggler button for mobile view */
.navbar-toggler {
    border: none;
    padding: 0;
    position: relative;
    z-index: 1001;
    display: block;
}

/* Ensure mobile view doesn't have horizontal scrolling */
body {
    overflow-x: hidden;
}

/* Ensure fixed elements are always visible in mobile view */
@media (max-width: 576px) {
    .navbar-toggler {
        position: relative;
        z-index: 1001;
        display: block !important;
    }
    
    /* Prevent horizontal scrolling in mobile view */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Responsive styling for login/register buttons */
    .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 15px;
        width: 100%;
    }
    
    .navbar-collapse .d-flex .btn {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    #darkModeToggle {
        position: absolute;
        top: 15px;
        right: 60px;
    }
}

.dark-mode .btn-secondary {
    color: var(--light-color);
}

.dark-mode .fa-moon {
    color: #f1c40f;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    #hero {
        height: auto;
        padding: 100px 0;
    }
    
    .navbar-collapse {
        background-color: var(--light-color);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .dark-mode .navbar-collapse {
        background-color: #2d3748;
    }
    
    .navbar-nav {
        margin-bottom: 15px;
    }
}

/* WhatsApp Support Button */
.whatsapp-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-support .support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-support:hover .support-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments for WhatsApp button */
@media (max-width: 576px) {
    .whatsapp-support {
        bottom: 20px;
        right: 20px;
        position: fixed;
        z-index: 1001;
        display: block !important;
        overflow-x: visible;
    }
    
    .whatsapp-support .support-icon {
        width: 50px;
        height: 50px;
    }
}

.whatsapp-support:hover .support-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-accent {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .whatsapp-support {
        bottom: 20px;
        right: 20px;
        position: fixed;
        z-index: 1001;
        display: block !important;
        overflow-x: visible;
    }
    
    .whatsapp-support .support-icon {
        width: 50px;
        height: 50px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}

/* Card Hover Effect */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}